diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2017-05-17 20:14:15 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-12-04 07:04:01 -0500 |
commit | c4bfd39d7fa5203d4b387c283d360e9a108e85b3 (patch) | |
tree | c17bb3b8dd9cdc212dd8cd419df62f3f074dc24c | |
parent | 2dde6b0034dbc050957cdb6539ce28eca57e8cdf (diff) |
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>
-rw-r--r-- | kernel/trace/ring_buffer.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 91874a95060d..c87766c1c204 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -1799,12 +1799,6 @@ void ring_buffer_change_overwrite(struct ring_buffer *buffer, int val) | |||
1799 | } | 1799 | } |
1800 | EXPORT_SYMBOL_GPL(ring_buffer_change_overwrite); | 1800 | EXPORT_SYMBOL_GPL(ring_buffer_change_overwrite); |
1801 | 1801 | ||
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 | |||
1808 | static __always_inline void *__rb_page_index(struct buffer_page *bpage, unsigned index) | 1802 | static __always_inline void *__rb_page_index(struct buffer_page *bpage, unsigned index) |
1809 | { | 1803 | { |
1810 | return bpage->page->data + index; | 1804 | return bpage->page->data + index; |