[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1614240402-9003-1-git-send-email-jiapeng.chong@linux.alibaba.com>
Date: Thu, 25 Feb 2021 16:06:42 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: peterz@...radead.org
Cc: mingo@...hat.com, acme@...nel.org, mark.rutland@....com,
alexander.shishkin@...ux.intel.com, jolsa@...hat.com,
namhyung@...nel.org, ast@...nel.org, daniel@...earbox.net,
andrii@...nel.org, kafai@...com, songliubraving@...com, yhs@...com,
john.fastabend@...il.com, kpsingh@...nel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
bpf@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Subject: [PATCH] perf/core: make perf_pmu_snapshot_aux static
Fix the following sparse warning:
kernel/events/core.c:6539:6: warning: symbol 'perf_pmu_snapshot_aux' was
not declared. Should it be static?
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
kernel/events/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
1.8.3.1
Powered by blists - more mailing lists