Skip to content

Commit

Permalink
x86_64: fix section mismatch warning in hpet.c
Browse files Browse the repository at this point in the history
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: Sam Ravnborg <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
sravnborg authored and Linus Torvalds committed Jul 22, 2007
1 parent a284b05 commit 7aa6ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7aa6ec5

Please sign in to comment.