* [PATCH] vmstat: fix section mismatch warning
@ 2007-10-29 18:20 Randy Dunlap, Randy Dunlap
2007-10-29 18:42 ` Christoph Lameter
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap, Randy Dunlap @ 2007-10-29 18:20 UTC (permalink / raw)
To: linux-mm; +Cc: christoph, akpm
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>
---
mm/vmstat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2624-rc1g4-v1.orig/mm/vmstat.c
+++ linux-2624-rc1g4-v1/mm/vmstat.c
@@ -803,7 +803,7 @@ static void vmstat_update(struct work_st
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);
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] vmstat: fix section mismatch warning
2007-10-29 18:20 [PATCH] vmstat: fix section mismatch warning Randy Dunlap, Randy Dunlap
@ 2007-10-29 18:42 ` Christoph Lameter
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2007-10-29 18:42 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-mm, akpm
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-29 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 18:20 [PATCH] vmstat: fix section mismatch warning Randy Dunlap, Randy Dunlap
2007-10-29 18:42 ` Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).