public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf: Mark perf_data_size() inline
@ 2011-08-18  2:24 Li Zefan
  0 siblings, 0 replies; only message in thread
From: Li Zefan @ 2011-08-18  2:24 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Peter Zijlstra, Frederic Weisbecker, LKML

Otherwise we'll get compile warning if internal.h is included but
perf_data_size() is not used.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
 kernel/events/internal.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/events/internal.h b/kernel/events/internal.h
index 09097dd..a318056 100644
--- a/kernel/events/internal.h
+++ b/kernel/events/internal.h
@@ -64,7 +64,7 @@ static inline int page_order(struct ring_buffer *rb)
 }
 #endif
 
-static unsigned long perf_data_size(struct ring_buffer *rb)
+static inline unsigned long perf_data_size(struct ring_buffer *rb)
 {
 	return rb->nr_pages << (PAGE_SHIFT + page_order(rb));
 }
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-18  2:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-18  2:24 [PATCH] perf: Mark perf_data_size() inline Li Zefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox