LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] ring-buffer: Fix typo in comment
@ 2018-05-18 20:31 Vasyl Gomonovych
2018-05-23 0:55 ` Steven Rostedt
0 siblings, 1 reply; 3+ messages in thread
From: Vasyl Gomonovych @ 2018-05-18 20:31 UTC (permalink / raw)
To: linux-kernel
Cc: Vasyl Gomonovych, Steven Rostedt, Ingo Molnar,
Philippe Ombredanne, Al Viro, Greg Kroah-Hartman, Levin,
Alexander (Sasha Levin),
Andrew Morton
Fix typo in the words 'reserved', 'been'
Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
---
include/linux/ring_buffer.h | 2 +-
kernel/trace/ring_buffer.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
index 7d9eb39fa76a..aa500da87f2a 100644
--- a/include/linux/ring_buffer.h
+++ b/include/linux/ring_buffer.h
@@ -63,7 +63,7 @@ void *ring_buffer_event_data(struct ring_buffer_event *event);
/*
* ring_buffer_discard_commit will remove an event that has not
- * ben committed yet. If this is used, then ring_buffer_unlock_commit
+ * been committed yet. If this is used, then ring_buffer_unlock_commit
* must not be called on the discarded event. This function
* will try to remove the event from the ring buffer completely
* if another event has not been written after it.
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index dcf1c4dd3efe..a8a8eb23c489 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -2776,7 +2776,7 @@ rb_reserve_next_event(struct ring_buffer *buffer,
* @buffer: the ring buffer to reserve from
* @length: the length of the data to reserve (excluding event header)
*
- * Returns a reseverd event on the ring buffer to copy directly to.
+ * Returns a reserved event on the ring buffer to copy directly to.
* The user of this interface will need to get the body to write into
* and can use the ring_buffer_event_data() interface.
*
--
2.14.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ring-buffer: Fix typo in comment
2018-05-18 20:31 [PATCH] ring-buffer: Fix typo in comment Vasyl Gomonovych
@ 2018-05-23 0:55 ` Steven Rostedt
2018-05-23 0:59 ` Steven Rostedt
0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2018-05-23 0:55 UTC (permalink / raw)
To: Vasyl Gomonovych
Cc: linux-kernel, Ingo Molnar, Philippe Ombredanne, Al Viro,
Greg Kroah-Hartman, Levin, Alexander (Sasha Levin),
Andrew Morton
On Fri, 18 May 2018 22:31:28 +0200
Vasyl Gomonovych <gomonovych@gmail.com> wrote:
> Fix typo in the words 'reserved', 'been'
Thanks, but someone sent me a bunch of spelling fixes for that file
which included these. I'll be pushing that to linux-next soon.
-- Steve
>
> Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
> ---
> include/linux/ring_buffer.h | 2 +-
> kernel/trace/ring_buffer.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
> index 7d9eb39fa76a..aa500da87f2a 100644
> --- a/include/linux/ring_buffer.h
> +++ b/include/linux/ring_buffer.h
> @@ -63,7 +63,7 @@ void *ring_buffer_event_data(struct ring_buffer_event *event);
>
> /*
> * ring_buffer_discard_commit will remove an event that has not
> - * ben committed yet. If this is used, then ring_buffer_unlock_commit
> + * been committed yet. If this is used, then ring_buffer_unlock_commit
> * must not be called on the discarded event. This function
> * will try to remove the event from the ring buffer completely
> * if another event has not been written after it.
> diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
> index dcf1c4dd3efe..a8a8eb23c489 100644
> --- a/kernel/trace/ring_buffer.c
> +++ b/kernel/trace/ring_buffer.c
> @@ -2776,7 +2776,7 @@ rb_reserve_next_event(struct ring_buffer *buffer,
> * @buffer: the ring buffer to reserve from
> * @length: the length of the data to reserve (excluding event header)
> *
> - * Returns a reseverd event on the ring buffer to copy directly to.
> + * Returns a reserved event on the ring buffer to copy directly to.
> * The user of this interface will need to get the body to write into
> * and can use the ring_buffer_event_data() interface.
> *
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ring-buffer: Fix typo in comment
2018-05-23 0:55 ` Steven Rostedt
@ 2018-05-23 0:59 ` Steven Rostedt
0 siblings, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2018-05-23 0:59 UTC (permalink / raw)
To: Vasyl Gomonovych
Cc: linux-kernel, Ingo Molnar, Philippe Ombredanne, Al Viro,
Greg Kroah-Hartman, Levin, Alexander (Sasha Levin),
Andrew Morton
On Tue, 22 May 2018 20:55:57 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:
> On Fri, 18 May 2018 22:31:28 +0200
> Vasyl Gomonovych <gomonovych@gmail.com> wrote:
>
> > Fix typo in the words 'reserved', 'been'
>
> Thanks, but someone sent me a bunch of spelling fixes for that file
> which included these. I'll be pushing that to linux-next soon.
I stand corrected. ring_buffer.c was fixed, but the "been" typo in
ring_buffer.h was not. I'll add that part of this patch.
-- Steve
>
> >
> > Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
> > ---
> > include/linux/ring_buffer.h | 2 +-
> > kernel/trace/ring_buffer.c | 2 +-
> > 2 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
> > index 7d9eb39fa76a..aa500da87f2a 100644
> > --- a/include/linux/ring_buffer.h
> > +++ b/include/linux/ring_buffer.h
> > @@ -63,7 +63,7 @@ void *ring_buffer_event_data(struct ring_buffer_event *event);
> >
> > /*
> > * ring_buffer_discard_commit will remove an event that has not
> > - * ben committed yet. If this is used, then ring_buffer_unlock_commit
> > + * been committed yet. If this is used, then ring_buffer_unlock_commit
> > * must not be called on the discarded event. This function
> > * will try to remove the event from the ring buffer completely
> > * if another event has not been written after it.
> > diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
> > index dcf1c4dd3efe..a8a8eb23c489 100644
> > --- a/kernel/trace/ring_buffer.c
> > +++ b/kernel/trace/ring_buffer.c
> > @@ -2776,7 +2776,7 @@ rb_reserve_next_event(struct ring_buffer *buffer,
> > * @buffer: the ring buffer to reserve from
> > * @length: the length of the data to reserve (excluding event header)
> > *
> > - * Returns a reseverd event on the ring buffer to copy directly to.
> > + * Returns a reserved event on the ring buffer to copy directly to.
> > * The user of this interface will need to get the body to write into
> > * and can use the ring_buffer_event_data() interface.
> > *
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-23 0:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-18 20:31 [PATCH] ring-buffer: Fix typo in comment Vasyl Gomonovych
2018-05-23 0:55 ` Steven Rostedt
2018-05-23 0:59 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).