]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sched: arch_destroy_sched_domains warning fix
authorAndrew Morton <akpm@osdl.org>
Mon, 18 Oct 2004 16:08:58 +0000 (09:08 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 16:08:58 +0000 (09:08 -0700)
kernel/sched.c:4114: warning: `arch_destroy_sched_domains' defined but not used

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c

index aa0fdc14b3d4b217a0ab155be991583a399375a2..e357737c730db521f595ed05e5e1247ab0f052d6 100644 (file)
@@ -4560,10 +4560,12 @@ static void __devinit arch_init_sched_domains(void)
        }
 }
 
+#ifdef CONFIG_HOTPLUG_CPU
 static void __devinit arch_destroy_sched_domains(void)
 {
        /* Do nothing: everything is statically allocated. */
 }
+#endif
 
 #undef SCHED_DOMAIN_DEBUG
 #ifdef SCHED_DOMAIN_DEBUG