[PATCH v2 0/3] perf/events: Fix some build warnings in perf/events subsystem.

From: Haocheng Xie
Date: Wed May 26 2021 - 23:20:16 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.

Changes from v1:
- optimize the commit message format.
- remove superfluous whitespace in the subject.
- align the arguments of modified function.

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 | 12 ++++++++----
kernel/events/hw_breakpoint.c | 2 ++
2 files changed, 10 insertions(+), 4 deletions(-)

--
2.9.5