Skip to contentSkip to conversation

Fix BUG() decl warning in smp.h for UP

PATCH New Rusty Russell 1 participant 1 message Nov 4, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix BUG() decl warning in smp.h for UP

x86 always seems to include asm/page.h, PPC (and presumably others) don't.

include/linux/smp.h +1 -0
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .22822-2.5.45-bk-module-ppc.pre/include/linux/smp.h .22822-2.5.45-bk-module-ppc/include/linux/smp.h
@@ -79,6 +79,7 @@ extern void unregister_cpu_notifier(stru
 
 int cpu_up(unsigned int cpu);
 #else /* !SMP */
+#include <asm/page.h> /* For BUG() */
 
 /*
  *	These macros fold the SMP functionality into a single CPU system

--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.