diff options
author | mike.travis@hpe.com <mike.travis@hpe.com> | 2017-10-23 21:18:42 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-10-24 09:10:51 +0200 |
commit | b3270a5210229ee543339d34b74ba527f978c55b (patch) | |
tree | d89c5bb42ff5cc29ecb0b61cd446625df5227041 /arch/x86 | |
parent | x86/tsc: Make CONFIG_X86_TSC=n build work again (diff) | |
download | linux-b3270a5210229ee543339d34b74ba527f978c55b.tar.xz linux-b3270a5210229ee543339d34b74ba527f978c55b.zip |
x86/platform/UV: Mark tsc_check_sync as an init function
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
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/apic/x2apic_uv_x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index 440825478bbd..5eda48a72617 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -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; |