[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <162210110309.29796.12559510690660075400.tip-bot2@tip-bot2>
Date: Thu, 27 May 2021 07:38:23 -0000
From: "tip-bot2 for Haocheng Xie" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Haocheng Xie <xiehaocheng.cn@...il.com>,
Ingo Molnar <mingo@...nel.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: perf/core] perf/core: Make local function
perf_pmu_snapshot_aux() static
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 32961aecf9da85c9e4c98d91ab8337424e0c8372
Gitweb: https://git.kernel.org/tip/32961aecf9da85c9e4c98d91ab8337424e0c8372
Author: Haocheng Xie <xiehaocheng.cn@...il.com>
AuthorDate: Thu, 27 May 2021 11:19:45 +08:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Thu, 27 May 2021 09:35:21 +02:00
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@...il.com>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Link: https://lore.kernel.org/r/20210527031947.1801-2-xiehaocheng.cn@gmail.com
---
kernel/events/core.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 2e947a4..4c6b320 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;
Powered by blists - more mailing lists