perf/x86/uncore: Add __init for uncore_cpumask_init()
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Wed, 5 Mar 2014 09:58:36 +0000 (17:58 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Mar 2014 10:57:56 +0000 (11:57 +0100)
Commit:

  411cf180fa00 perf/x86/uncore: fix initialization of cpumask

introduced the function uncore_cpumask_init(), which is only
called in __init intel_uncore_init(). But it is not marked
with __init, which produces the following warning:

WARNING: vmlinux.o(.text+0x2464a): Section mismatch in reference from the function uncore_cpumask_init() to the function .init.text:uncore_cpu_setup()
The function uncore_cpumask_init() references
the function __init uncore_cpu_setup().
This is often because uncore_cpumask_init lacks a __init
annotation or the annotation of uncore_cpu_setup is wrong.

This patch marks uncore_cpumask_init() with __init.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Acked-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: http://lkml.kernel.org/r/1394013516-4964-1-git-send-email-yangds.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c

index b262c6124cf3091a0190c19d1107d96cb711543e..5c2537af0a25fb6dc44fa0772a6e83ad1296a5b5 100644 (file)
@@ -4229,7 +4229,7 @@ static int __init uncore_pmus_register(void)
        return 0;
 }
 
-static void uncore_cpumask_init(void)
+static void __init uncore_cpumask_init(void)
 {
        int cpu;