Skip to content

Commit

Permalink
kernel/events: Add a missing prototype for arch_perf_update_userpage()
Browse files Browse the repository at this point in the history
... in order to fix a -Wmissing-prototype warning.

No functional changes.

Signed-off-by: Benjamin Thiel <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
  • Loading branch information
Benjamin Thiel authored and Ingo Molnar committed Jan 28, 2020
1 parent 07c5972 commit f1ec3a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit f1ec3a5

Please sign in to comment.