[PATCH 0/3] Fix some build warnings in perf/events subsystem.
From: Haocheng Xie
Date: Wed May 26 2021 - 07:55:00 EST
I have got these warnings when building kernel with 'W=1' options:
kernel/events/core.c:6670:6: warning: no previous prototype for 'perf_pmu_snapshot_aux' [-Wmissing-prototypes]
kernel/events/core.c:143: warning: Function parameter or member 'cpu' not described in 'cpu_function_call'
kernel/events/core.c:11924: warning: Function parameter or member 'flags' not described in 'sys_perf_event_open'
kernel/events/core.c:12382: warning: Function parameter or member 'overflow_handler' not described in 'perf_event_create_kernel_counter'
kernel/events/core.c:12382: warning: Function parameter or member 'context' not described in 'perf_event_create_kernel_counter'
kernel/events/hw_breakpoint.c:461: warning: Function parameter or member 'context' not described in 'register_user_hw_breakpoint'
kernel/events/hw_breakpoint.c:560: warning: Function parameter or member 'context' not described in 'register_wide_hw_breakpoint'
The 3-patch series will fix these warnings.
Haocheng Xie (3):
perf core: Make local function perf_pmu_snapshot_aux() static
perf core: Fix some kernel-doc warnings.
perf/hw_breakpoint: Fix kernel-doc warnings in perf hw_breakpoint
kernel/events/core.c | 6 +++++-
kernel/events/hw_breakpoint.c | 2 ++
2 files changed, 7 insertions(+), 1 deletion(-)
--
2.9.5