aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2017-10-23 14:18:42 -0500
committerThomas Gleixner <[email protected]>2017-10-24 09:10:51 +0200
commitb3270a5210229ee543339d34b74ba527f978c55b (patch)
treed89c5bb42ff5cc29ecb0b61cd446625df5227041
parentc0fc9b1350a317da22b310d68117b0d01cb9065e (diff)
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Prarit Bhargava <[email protected]> Cc: Dimitri Sivanich <[email protected]> Cc: Russ Anderson <[email protected]> Cc: Andrew Banman <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Bin Gao <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
-rw-r--r--arch/x86/kernel/apic/x2apic_uv_x.c2
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;