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

From: Rusty Russell (rusty@rustcorp.com.au)
Date: Mon Nov 04 2002 - 02:32:05 EST


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

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
--- .22822-2.5.45-bk-module-ppc.pre/include/linux/smp.h 2002-10-15 15:19:44.000000000 +1000
+++ .22822-2.5.45-bk-module-ppc/include/linux/smp.h 2002-11-04 18:28:52.000000000 +1100
@@ -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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:32 EST