public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [TRIVIAL] Fix BUG() decl warning in smp.h for UP
@ 2002-11-08  8:28 Rusty Trivial Russell
  0 siblings, 0 replies; 2+ messages in thread
From: Rusty Trivial Russell @ 2002-11-08  8:28 UTC (permalink / raw)
  To: torvalds, linux-kernel

From:  Rusty Russell <rusty@rustcorp.com.au>

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

--- trivial-2.5-bk/include/linux/smp.h.orig	2002-11-08 18:47:06.000000000 +1100
+++ trivial-2.5-bk/include/linux/smp.h	2002-11-08 18:47:06.000000000 +1100
@@ -79,6 +79,7 @@
 
 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
-- 
  Don't blame me: the Monkey is driving
  File: Rusty Russell <rusty@rustcorp.com.au>: [PATCH] Fix BUG() decl warning in smp.h for UP

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [TRIVIAL] Fix BUG() decl warning in smp.h for UP
@ 2003-01-06  4:02 Rusty Trivial Russell
  0 siblings, 0 replies; 2+ messages in thread
From: Rusty Trivial Russell @ 2003-01-06  4:02 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

From:  Rusty Russell <rusty@rustcorp.com.au>

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

--- trivial-2.5-bk/include/linux/smp.h.orig	2003-01-06 14:10:59.000000000 +1100
+++ trivial-2.5-bk/include/linux/smp.h	2003-01-06 14:10:59.000000000 +1100
@@ -86,6 +86,7 @@
 void smp_prepare_boot_cpu(void);
 
 #else /* !SMP */
+#include <asm/page.h> /* For BUG() */
 
 /*
  *	These macros fold the SMP functionality into a single CPU system
-- 
  Don't blame me: the Monkey is driving
  File: Rusty Russell <rusty@rustcorp.com.au>: [PATCH] Fix BUG() decl warning in smp.h for UP

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-06  4:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-06  4:02 [TRIVIAL] Fix BUG() decl warning in smp.h for UP Rusty Trivial Russell
  -- strict thread matches above, loose matches on Subject: below --
2002-11-08  8:28 Rusty Trivial Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox