[PATCH] perf/x86/intel/rapl: make array rapl_attr_groups static

From: Colin King
Date: Thu Aug 10 2017 - 12:10:32 EST


From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
---
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