diff mbox series

perf/core: make perf_pmu_snapshot_aux static

Message ID 1614069337-50399-1-git-send-email-jiapeng.chong@linux.alibaba.com (mailing list archive)
State Superseded
Headers show
Series perf/core: make perf_pmu_snapshot_aux static | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Jiapeng Chong Feb. 23, 2021, 8:35 a.m. UTC
Fix the following sparse warning:

kernel/events/core.c:6524:6: warning: symbol 'perf_pmu_snapshot_aux' was
not declared. Should it be static?

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 kernel/events/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/kernel/events/core.c b/kernel/events/core.c
index 129dee5..45cb62f 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -6521,7 +6521,7 @@  static unsigned long perf_prepare_sample_aux(struct perf_event *event,
 	return data->aux_size;
 }
 
-long perf_pmu_snapshot_aux(struct perf_buffer *rb,
+static long perf_pmu_snapshot_aux(struct perf_buffer *rb,
 			   struct perf_event *event,
 			   struct perf_output_handle *handle,
 			   unsigned long size)