[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171204070551.3b891648@vmware.local.home>
Date: Mon, 4 Dec 2017 07:05:51 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Matthias Kaehlcke <mka@...omium.org>
Cc: Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
Douglas Anderson <dianders@...omium.org>
Subject: Re: [PATCH] ring-buffer: Remove unused function
__rb_data_page_index()
On Wed, 17 May 2017 17:14:15 -0700
Matthias Kaehlcke <mka@...omium.org> wrote:
> This fixes the following warning when building with clang:
>
> kernel/trace/ring_buffer.c:1842:1: error: unused function
> '__rb_data_page_index' [-Werror,-Wunused-function]
Ug, I this patch somehow fell through. I'm applying it now.
-- Steve
>
> Signed-off-by: Matthias Kaehlcke <mka@...omium.org>
> ---
> kernel/trace/ring_buffer.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
> index 4ae268e687fe..a6b87582c4ff 100644
> --- a/kernel/trace/ring_buffer.c
> +++ b/kernel/trace/ring_buffer.c
> @@ -1800,12 +1800,6 @@ void ring_buffer_change_overwrite(struct ring_buffer *buffer, int val)
> }
> EXPORT_SYMBOL_GPL(ring_buffer_change_overwrite);
>
> -static __always_inline void *
> -__rb_data_page_index(struct buffer_data_page *bpage, unsigned index)
> -{
> - return bpage->data + index;
> -}
> -
> static __always_inline void *__rb_page_index(struct buffer_page *bpage, unsigned index)
> {
> return bpage->page->data + index;
Powered by blists - more mailing lists