* [PATCH] perf/x86/intel/rapl: make array rapl_attr_groups static
@ 2017-08-10 16:09 Colin King
0 siblings, 0 replies; only message in thread
From: Colin King @ 2017-08-10 16:09 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, x86,
David Carrillo-Cisneros, Peter Zijlstra, Vince Weaver,
Srinivas Pandruvada, Borislav Petkov, Harry Pan
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.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@canonical.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-10 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-10 16:09 [PATCH] perf/x86/intel/rapl: make array rapl_attr_groups static Colin King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).