projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10337e9
)
perf/core: Make local function perf_pmu_snapshot_aux() static
author
Haocheng Xie
<xiehaocheng.cn@gmail.com>
Thu, 27 May 2021 03:19:45 +0000
(11:19 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
Thu, 27 May 2021 07:35:21 +0000
(09:35 +0200)
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
kernel/events/core.c
patch
|
blob
|
history
diff --git
a/kernel/events/core.c
b/kernel/events/core.c
index
2e947a4
..
4c6b320
100644
(file)
--- 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;