x86, tsc: fix section mismatch warning
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 10 Aug 2008 22:07:44 +0000 (00:07 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 Aug 2008 05:48:07 +0000 (07:48 +0200)
commitd554d9a4295dd0595d12eeccbc55d1f495b15176
tree75ff080c7da2d1239648bdfbccec2a8064d6f7d1
parent3c3b5c3b0bf798316a410e27e3d7e6f015663602
x86, tsc: fix section mismatch warning

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

tsc_read_refs is called from native_calibrate_tsc which is not __init
and native_calibrate_tsc cannot be marked __init

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/tsc.c