Skip to content

Commit c4bfd39

Browse files
mkaehlckerostedt
authored andcommitted
ring-buffer: Remove unused function __rb_data_page_index()
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] Link: http://lkml.kernel.org/r/20170518001415.5223-1-mka@chromium.org Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 2dde6b0 commit c4bfd39

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎kernel/trace/ring_buffer.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,12 +1799,6 @@ void ring_buffer_change_overwrite(struct ring_buffer *buffer, int val)
17991799
}
18001800
EXPORT_SYMBOL_GPL(ring_buffer_change_overwrite);
18011801

1802-
static __always_inline void *
1803-
__rb_data_page_index(struct buffer_data_page *bpage, unsigned index)
1804-
{
1805-
return bpage->data + index;
1806-
}
1807-
18081802
static __always_inline void *__rb_page_index(struct buffer_page *bpage, unsigned index)
18091803
{
18101804
return bpage->page->data + index;

0 commit comments

Comments
 (0)