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
This commit is contained in:
mike.travis@hpe.com 2017-10-23 14:18:42 -05:00 committed by Thomas Gleixner
parent c0fc9b1350
commit b3270a5210
1 changed files with 1 additions and 1 deletions

View 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;