[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20170810160918.7461-1-colin.king@canonical.com>
Date: Thu, 10 Aug 2017 17:09:18 +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,
David Carrillo-Cisneros <davidcc@...gle.com>,
Peter Zijlstra <peterz@...radead.org>,
Vince Weaver <vincent.weaver@...ne.edu>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Borislav Petkov <bp@...e.de>, Harry Pan <harry.pan@...el.com>
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] perf/x86/intel/rapl: make array rapl_attr_groups static
From: Colin Ian King <colin.king@...onical.com>
The array rapl_attr_groups is local to the source and do not need to be in
global scope, so make it static.
Cleans up sparse warning:
warning: symbol 'rapl_attr_groups' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
arch/x86/events/intel/rapl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c
index a45e2114a846..8e2457cb6b4a 100644
--- a/arch/x86/events/intel/rapl.c
+++ b/arch/x86/events/intel/rapl.c
@@ -559,7 +559,7 @@ static struct attribute_group rapl_pmu_format_group = {
.attrs = rapl_formats_attr,
};
-const struct attribute_group *rapl_attr_groups[] = {
+static const struct attribute_group *rapl_attr_groups[] = {
&rapl_pmu_attr_group,
&rapl_pmu_format_group,
&rapl_pmu_events_group,
--
2.11.0
Powered by blists - more mailing lists