LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/7] fix include wrapper
@ 2004-05-25  0:28 Roman Zippel
  0 siblings, 0 replies; only message in thread
From: Roman Zippel @ 2004-05-25  0:28 UTC (permalink / raw)
  To: linuxppc-dev


Outside the include protection must only be comments, so that
cpp can optimize the header scan.

Index: 2.6/include/asm-ppc/current.h
diff -u 2.6/include/asm-ppc/current.h:1.1.1.1 2.6/include/asm-ppc/current.h:1.2
--- 2.6/include/asm-ppc/current.h:1.1.1.1	Sat Jan 31 15:43:32 2004
+++ 2.6/include/asm-ppc/current.h	Wed Feb  4 13:21:36 2004
@@ -1,11 +1,11 @@
-#ifdef __KERNEL__
 #ifndef _PPC_CURRENT_H
 #define _PPC_CURRENT_H
+#ifdef __KERNEL__

 /*
  * We keep `current' in r2 for speed.
  */
 register struct task_struct *current asm ("r2");

-#endif /* !(_PPC_CURRENT_H) */
 #endif /* __KERNEL__ */
+#endif /* !(_PPC_CURRENT_H) */
Index: 2.6/include/asm-ppc/io.h
diff -u 2.6/include/asm-ppc/io.h:1.1.1.3 2.6/include/asm-ppc/io.h:1.5
--- 2.6/include/asm-ppc/io.h:1.1.1.3	Sun May 23 15:31:13 2004
+++ 2.6/include/asm-ppc/io.h	Mon May 24 13:32:36 2004
@@ -1,6 +1,6 @@
-#ifdef __KERNEL__
 #ifndef _PPC_IO_H
 #define _PPC_IO_H
+#ifdef __KERNEL__

 #include <linux/config.h>
 #include <linux/types.h>
@@ -426,5 +433,5 @@
 #define consistent_sync_page(pg, off, sz, rw)	do { } while (0)

 #endif /* ! CONFIG_NOT_COHERENT_CACHE */
-#endif /* _PPC_IO_H */
 #endif /* __KERNEL__ */
+#endif /* _PPC_IO_H */

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-25  0:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-25  0:28 [PATCH 4/7] fix include wrapper Roman Zippel

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