diff options
author | Haocheng Xie <xiehaocheng.cn@gmail.com> | 2021-05-27 11:19:45 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-05-27 09:35:21 +0200 |
commit | 32961aecf9da85c9e4c98d91ab8337424e0c8372 (patch) | |
tree | 53102967964590a349f3ebbf97a2b98b31953322 /kernel/events | |
parent | 10337e95e04c9bcd15d9bf5b26f194c92c13da56 (diff) | |
download | linux-32961aecf9da85c9e4c98d91ab8337424e0c8372.tar.bz2 |
perf/core: Make local function perf_pmu_snapshot_aux() static
Fixes the following W=1 kernel build warning:
kernel/events/core.c:6670:6: warning: no previous prototype for 'perf_pmu_snapshot_aux' [-Wmissing-prototypes]
Signed-off-by: Haocheng Xie <xiehaocheng.cn@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210527031947.1801-2-xiehaocheng.cn@gmail.com
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 2e947a485898..4c6b3205051a 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -6674,10 +6674,10 @@ out: return data->aux_size; } -long perf_pmu_snapshot_aux(struct perf_buffer *rb, - struct perf_event *event, - struct perf_output_handle *handle, - unsigned long size) +static long perf_pmu_snapshot_aux(struct perf_buffer *rb, + struct perf_event *event, + struct perf_output_handle *handle, + unsigned long size) { unsigned long flags; long ret; |