[tip: perf/urgent] kernel/events: Add a missing prototype for arch_perf_update_userpage()

From: tip-bot2 for Benjamin Thiel
Date: Wed Jan 29 2020 - 06:33:58 EST


The following commit has been merged into the perf/urgent branch of tip:

Commit-ID: f1ec3a517b4352e78dbef6b1e591f43202ecb3fe
Gitweb: https://git.kernel.org/tip/f1ec3a517b4352e78dbef6b1e591f43202ecb3fe
Author: Benjamin Thiel <b.thiel@xxxxxxxxx>
AuthorDate: Thu, 09 Jan 2020 14:13:51 +01:00
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitterDate: Tue, 28 Jan 2020 21:26:44 +01:00

kernel/events: Add a missing prototype for arch_perf_update_userpage()

... in order to fix a -Wmissing-prototype warning.

No functional changes.

Signed-off-by: Benjamin Thiel <b.thiel@xxxxxxxxx>
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
Link: https://lkml.kernel.org/r/20200109131351.9468-1-b.thiel@xxxxxxxxx
---
include/linux/perf_event.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 6d4c22a..52928e0 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -1544,4 +1544,8 @@ int perf_event_exit_cpu(unsigned int cpu);
#define perf_event_exit_cpu NULL
#endif

+extern void __weak arch_perf_update_userpage(struct perf_event *event,
+ struct perf_event_mmap_page *userpg,
+ u64 now);
+
#endif /* _LINUX_PERF_EVENT_H */