linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/8] fix include wrapper
@ 2005-09-24 22:43 Roman Zippel
  0 siblings, 0 replies; only message in thread
From: Roman Zippel @ 2005-09-24 22:43 UTC (permalink / raw)
  To: linuxppc-dev


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

---

 include/asm-ppc/current.h |    4 ++--
 include/asm-ppc/io.h      |    5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)

Index: linux/include/asm-ppc/current.h
===================================================================
--- linux.orig/include/asm-ppc/current.h	2005-09-23 16:19:24.000000000 +0200
+++ linux/include/asm-ppc/current.h	2005-09-23 16:20:24.000000000 +0200
@@ -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: linux/include/asm-ppc/io.h
===================================================================
--- linux.orig/include/asm-ppc/io.h	2005-09-23 16:19:24.000000000 +0200
+++ linux/include/asm-ppc/io.h	2005-09-23 16:20:24.000000000 +0200
@@ -1,6 +1,6 @@
-#ifdef __KERNEL__
 #ifndef _PPC_IO_H
 #define _PPC_IO_H
+#ifdef __KERNEL__
 
 #include <linux/config.h>
 #include <linux/string.h>
@@ -546,8 +546,6 @@ struct pci_dev;
 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
 extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
 
-#endif /* _PPC_IO_H */
-
 #ifdef CONFIG_8260_PCI9
 #include <asm/mpc8260_pci9.h>
 #endif
@@ -564,3 +562,4 @@ extern void pci_iounmap(struct pci_dev *
 #define xlate_dev_kmem_ptr(p)	p
 
 #endif /* __KERNEL__ */
+#endif /* _PPC_IO_H */

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

only message in thread, other threads:[~2005-09-24 22:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-24 22:43 [PATCH 4/8] 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;
as well as URLs for NNTP newsgroup(s).