[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170810155709.7094-1-colin.king@canonical.com>
Date: Thu, 10 Aug 2017 16:57:09 +0100
From: Colin King <colin.king@...onical.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H . Peter Anvin" <hpa@...or.com>, x86@...nel.org,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Peter Zijlstra <peterz@...radead.org>,
Will Deacon <will.deacon@....com>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] perf/x86/intel/bts: make bts_pmu static
From: Colin Ian King <colin.king@...onical.com>
The structure bts_pmu is local to the source and do not need to be in
global scope, so make it static.
Cleans up sparse warning:
warning: symbol 'bts_pmu' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
arch/x86/events/intel/bts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/events/intel/bts.c b/arch/x86/events/intel/bts.c
index 8ae8c5ce3a1f..ddd8d3516bfc 100644
--- a/arch/x86/events/intel/bts.c
+++ b/arch/x86/events/intel/bts.c
@@ -69,7 +69,7 @@ struct bts_buffer {
struct bts_phys buf[0];
};
-struct pmu bts_pmu;
+static struct pmu bts_pmu;
static size_t buf_size(struct page *page)
{
--
2.11.0
Powered by blists - more mailing lists