Skip to contentSkip to conversation

x86_64: fix section mismatch warning in hpet.c

PATCH Applied Sam Ravnborg 1 participant 1 message Jul 20, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 4/7 x86_64: fix section mismatch warning in hpet.c

Fix following warnings:
WARNING: vmlinux.o(.text+0x945e): Section mismatch: reference to .init.text:__set_fixmap (between 'hpet_arch_init' and 'hpet_mask_rtc_irq_bit')
WARNING: vmlinux.o(.text+0x9474): Section mismatch: reference to .init.text:__set_fixmap (between 'hpet_arch_init' and 'hpet_mask_rtc_irq_bit')

hpet_arch_init is only used from __init context so mark it __init.

---
 arch/x86_64/kernel/hpet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86_64/kernel/hpet.c +1 -1
index b828696..3dc68d1 100644
@@ -133,7 +133,7 @@ struct clocksource clocksource_hpet = {
 	.vread		= vread_hpet,
 };
 
-int hpet_arch_init(void)
+int __init hpet_arch_init(void)
 {
 	unsigned int id;
 	u64 tmp;
Signature · 1 line
1.5.1.rc3.g84b7-dirty