Skip to content

Commit

Permalink
vmstat: fix section mismatch warning
Browse files Browse the repository at this point in the history
Mark start_cpu_timer() as __cpuinit instead of __devinit.
Fixes this section warning:

WARNING: vmlinux.o(.text+0x60e53): Section mismatch: reference to .init.text:start_cpu_timer (between 'vmstat_cpuup_callback' and 'vmstat_show')

Signed-off-by: Randy Dunlap <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rddunlap authored and Linus Torvalds committed Nov 15, 2007
1 parent 579d6d9 commit 42614fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ static void vmstat_update(struct work_struct *w)
sysctl_stat_interval);
}

static void __devinit start_cpu_timer(int cpu)
static void __cpuinit start_cpu_timer(int cpu)
{
struct delayed_work *vmstat_work = &per_cpu(vmstat_work, cpu);

Expand Down

0 comments on commit 42614fc

Please sign in to comment.