Commit 7aa6ec56 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

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.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a284b051
...@@ -133,7 +133,7 @@ struct clocksource clocksource_hpet = { ...@@ -133,7 +133,7 @@ struct clocksource clocksource_hpet = {
.vread = vread_hpet, .vread = vread_hpet,
}; };
int hpet_arch_init(void) int __init hpet_arch_init(void)
{ {
unsigned int id; unsigned int id;
u64 tmp; u64 tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment