mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
vmstat: fix section mismatch warning
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 <randy.dunlap@oracle.com> Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
579d6d93ca
commit
42614fcde7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user