linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [patch] powerpc: move PAGE_SIZE outside #ifdef __KERNEL__
@ 2006-04-20 17:24 Geoff Levand
  2006-04-20 17:31 ` David Howells
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Geoff Levand @ 2006-04-20 17:24 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev

The procps package needs PAGE_SIZE, defined in asm-powerpc/page.h,
but it is defined inside "#ifdef __KERNEL__".

This moves the PAGE_SIZE definition outside of "#ifdef __KERNEL__".

From: Hiroaki Fuse
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---

Index: powerpc.git/include/asm-powerpc/page.h
===================================================================
--- powerpc.git.orig/include/asm-powerpc/page.h	2006-03-19 21:53:29.000000000 -0800
+++ powerpc.git/include/asm-powerpc/page.h	2006-04-19 12:30:04.000000000 -0700
@@ -10,7 +10,6 @@
  * 2 of the License, or (at your option) any later version.
  */

-#ifdef __KERNEL__
 #include <linux/config.h>
 #include <asm/asm-compat.h>

@@ -37,6 +36,7 @@
  */
 #define PAGE_MASK      (~((1 << PAGE_SHIFT) - 1))

+#ifdef __KERNEL__
 /*
  * KERNELBASE is the virtual address of the start of the kernel, it's often
  * the same as PAGE_OFFSET, but _might not be_.

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

end of thread, other threads:[~2006-04-21 17:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20 17:24 [patch] powerpc: move PAGE_SIZE outside #ifdef __KERNEL__ Geoff Levand
2006-04-20 17:31 ` David Howells
2006-04-20 17:37 ` Arnd Bergmann
2006-04-20 18:00   ` Geoff Levand
2006-04-20 20:59 ` Benjamin Herrenschmidt
2006-04-20 23:07 ` Paul Mackerras
2006-04-21 15:23   ` Geoff Levand
2006-04-21 17:03 ` Christoph Hellwig

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).