From: Colin Ian King <colin.k...@canonical.com>

The array p4_event_aliases is local to the source and do not need to be in
global scope, so make it static.

Cleans up sparse warning:
warning: symbol 'p4_event_aliases' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.k...@canonical.com>
---
 arch/x86/events/intel/p4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/events/intel/p4.c b/arch/x86/events/intel/p4.c
index eb0533558c2b..d32c0eed38ca 100644
--- a/arch/x86/events/intel/p4.c
+++ b/arch/x86/events/intel/p4.c
@@ -587,7 +587,7 @@ static __initconst const u64 p4_hw_cache_event_ids
  * P4_CONFIG_ALIASABLE or bits for P4_PEBS_METRIC, they are
  * either up to date automatically or not applicable at all.
  */
-struct p4_event_alias {
+static struct p4_event_alias {
        u64 original;
        u64 alternative;
 } p4_event_aliases[] = {
-- 
2.11.0

Reply via email to