[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4E4C77D0.4020601@cn.fujitsu.com>
Date: Thu, 18 Aug 2011 10:24:16 +0800
From: Li Zefan <lizf@...fujitsu.com>
To: Ingo Molnar <mingo@...e.hu>
CC: Peter Zijlstra <peterz@...radead.org>,
Frederic Weisbecker <fweisbec@...il.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] perf: Mark perf_data_size() inline
Otherwise we'll get compile warning if internal.h is included but
perf_data_size() is not used.
Signed-off-by: Li Zefan <lizf@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists