Skip to contentSkip to conversation

perf: Mark perf_data_size() inline

PATCH New Li Zefan 1 participant 1 message Aug 18, 2011 perf events

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 perf: Mark perf_data_size() inline

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

---
 kernel/events/internal.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/events/internal.h +1 -1
index 09097dd..a318056 100644
@@ -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));
 }
Signature · 1 line
1.7.3.1