kernel/events/core.c defines an empty stub of arch_perf_update_userpage
with __weak, for use on architectures without an alternate
implementation.  Define a prototype of that function, to satisfy gcc
(-Wmissing-prototypes) and Sparse (-Wdecl).

arch/x86/kernel/cpu/perf_event.c:1692:6: warning: no previous prototype for 
‘arch_perf_update_userpage’ [-Wmissing-prototypes]

Signed-off-by: Josh Triplett <[email protected]>
---
 kernel/events/core.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/events/core.c b/kernel/events/core.c
index 543638a..69ab633 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -3353,6 +3353,8 @@ static void calc_timer_values(struct perf_event *event,
        *running = ctx_time - event->tstamp_running;
 }
 
+void arch_perf_update_userpage(struct perf_event_mmap_page *userpg, u64 now);
+
 void __weak arch_perf_update_userpage(struct perf_event_mmap_page *userpg, u64 
now)
 {
 }
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to