x86/platform/UV: Mark tsc_check_sync as an init function
authormike.travis@hpe.com <mike.travis@hpe.com>
Mon, 23 Oct 2017 19:18:42 +0000 (14:18 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 24 Oct 2017 07:10:51 +0000 (09:10 +0200)
Fix build problem:

>> WARNING: vmlinux.o(.text+0x4223a): Section mismatch in
   reference from the function uv_tsc_check_sync() to the function
   .init.text:uv_early_read_mmr() The function uv_tsc_check_sync()
   references the function __init uv_early_read_mmr().  This is often
   because uv_tsc_check_sync lacks a __init

Signed-off-by: Mike Travis <mike.travis@hpe.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Dimitri Sivanich <dimitri.sivanich@hpe.com>
Cc: Russ Anderson <russ.anderson@hpe.com>
Cc: Andrew Banman <andrew.banman@hpe.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Bin Gao <bin.gao@linux.intel.com>
Link: https://lkml.kernel.org/r/20171023191841.985614692@stormcage.americas.sgi.com
arch/x86/kernel/apic/x2apic_uv_x.c

index 440825478bbd6fd1e2d74a2227f3348b0775bdb6..5eda48a726179117369c8bdbd2cfe172948cb1cb 100644 (file)
@@ -154,7 +154,7 @@ static int __init early_get_pnodeid(void)
        return pnode;
 }
 
-static void uv_tsc_check_sync(void)
+static void __init uv_tsc_check_sync(void)
 {
        u64 mmr;
        int sync_state;