]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] powerpc: Standardize on _ASM_POWERPC header symbol prefix
authorjdl@freescale.com <jdl@freescale.com>
Wed, 7 Sep 2005 20:27:09 +0000 (15:27 -0500)
committerPaul Mackerras <paulus@samba.org>
Fri, 9 Sep 2005 12:11:34 +0000 (22:11 +1000)
Standardize on _ASM_POWERPC_... prefix for all #include
exclusion symbols.  Fixup all the non-compilers.

Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
22 files changed:
include/asm-powerpc/8253pit.h
include/asm-powerpc/agp.h
include/asm-powerpc/bugs.h
include/asm-powerpc/errno.h
include/asm-powerpc/ioctl.h
include/asm-powerpc/ioctls.h
include/asm-powerpc/linkage.h
include/asm-powerpc/mc146818rtc.h
include/asm-powerpc/mman.h
include/asm-powerpc/module.h
include/asm-powerpc/namei.h
include/asm-powerpc/poll.h
include/asm-powerpc/sembuf.h
include/asm-powerpc/shmbuf.h
include/asm-powerpc/shmparam.h
include/asm-powerpc/siginfo.h
include/asm-powerpc/socket.h
include/asm-powerpc/sockios.h
include/asm-powerpc/string.h
include/asm-powerpc/termbits.h
include/asm-powerpc/termios.h
include/asm-powerpc/unaligned.h

index 862708a749b0fb1383c1d83551fc09ae26e5a2cd..b70d6e53b303519a7e22ae6eb43e28be6dbd2f4b 100644 (file)
@@ -1,10 +1,10 @@
+#ifndef _ASM_POWERPC_8253PIT_H
+#define _ASM_POWERPC_8253PIT_H
+
 /*
  * 8253/8254 Programmable Interval Timer
  */
 
-#ifndef _8253PIT_H
-#define _8253PIT_H
-
 #define PIT_TICK_RATE  1193182UL
 
-#endif
+#endif /* _ASM_POWERPC_8253PIT_H */
index ca9e423307f4c881f177260b83b390cebb61a1ff..885b4631a6cf047560c40a5be44c8fc173cbd606 100644 (file)
@@ -1,10 +1,8 @@
-#ifndef AGP_H
-#define AGP_H 1
+#ifndef _ASM_POWERPC_AGP_H
+#define _ASM_POWERPC_AGP_H
 
 #include <asm/io.h>
 
-/* nothing much needed here */
-
 #define map_page_into_agp(page)
 #define unmap_page_from_agp(page)
 #define flush_agp_mappings()
@@ -20,4 +18,4 @@
 #define free_gatt_pages(table, order)  \
        free_pages((unsigned long)(table), (order))
 
-#endif
+#endif /* _ASM_POWERPC_AGP_H */
index 310187d0e33ac21303e629b74917dec3d3ddcbeb..f5caee8558bf8304754555e29ea0eb45531e5e22 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_BUGS_H
-#define _POWERPC_BUGS_H
+#ifndef _ASM_POWERPC_BUGS_H
+#define _ASM_POWERPC_BUGS_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -15,4 +15,4 @@
 
 extern void check_bugs(void);
 
-#endif /* _POWERPC_BUGS_H */
+#endif /* _ASM_POWERPC_BUGS_H */
index 19f20bd41ae6184e4851fbf638f05c25de19a612..8c145fd17d8678afee558d61327175d25a292bf1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _PPC_ERRNO_H
-#define _PPC_ERRNO_H
+#ifndef _ASM_POWERPC_ERRNO_H
+#define _ASM_POWERPC_ERRNO_H
 
 #include <asm-generic/errno.h>
 
@@ -8,4 +8,4 @@
 
 #define _LAST_ERRNO    516
 
-#endif
+#endif /* _ASM_POWERPC_ERRNO_H */
index 93c6acfdd0fdfc868a4cd49f56648559dd720053..8eb99848c40247b3d86a9012b3e13de9fdff652e 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _PPC_IOCTL_H
-#define _PPC_IOCTL_H
+#ifndef _ASM_POWERPC_IOCTL_H
+#define _ASM_POWERPC_IOCTL_H
 
 
 /*
@@ -66,4 +66,4 @@ extern unsigned int __invalid_size_argument_for_IOC;
 #define IOCSIZE_MASK   (_IOC_SIZEMASK << _IOC_SIZESHIFT)
 #define IOCSIZE_SHIFT  (_IOC_SIZESHIFT)
 
-#endif
+#endif /* _ASM_POWERPC_IOCTL_H */
index f5b7f2b055e77753a65edbdda0832cc23bc4e530..5b94ff489b8b42c4d8bded2b088e1c62438d0d6b 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _ASM_PPC_IOCTLS_H
-#define _ASM_PPC_IOCTLS_H
+#ifndef _ASM_POWERPC_IOCTLS_H
+#define _ASM_POWERPC_IOCTLS_H
 
 #include <asm/ioctl.h>
 
 #define TIOCMIWAIT     0x545C  /* wait for a change on serial input line(s) */
 #define TIOCGICOUNT    0x545D  /* read serial port inline interrupt counts */
 
-#endif /* _ASM_PPC_IOCTLS_H */
+#endif /* _ASM_POWERPC_IOCTLS_H */
index 291c2d01c44f29dad20f7623783b8bad362eaddf..e1c4ac1cc4bab0c4260e31043a78a5ee03dbff4b 100644 (file)
@@ -1,6 +1,6 @@
-#ifndef __ASM_LINKAGE_H
-#define __ASM_LINKAGE_H
+#ifndef _ASM_POWERPC_LINKAGE_H
+#define _ASM_POWERPC_LINKAGE_H
 
 /* Nothing to see here... */
 
-#endif
+#endif /* _ASM_POWERPC_LINKAGE_H */
index a5619a2a1393b3c532f2f4b4199eb5556523b33f..f2741c8b59a1de0ed8bba2c1d14ca4b1d46d2d82 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_MC146818RTC_H
-#define _POWERPC_MC146818RTC_H
+#ifndef _ASM_POWERPC_MC146818RTC_H
+#define _ASM_POWERPC_MC146818RTC_H
 
 /*
  * Machine dependent access functions for RTC registers.
@@ -33,4 +33,4 @@ outb_p((val),RTC_PORT(1)); \
 })
 
 #endif /* __KERNEL__ */
-#endif /* _POWERPC_MC146818RTC_H */
+#endif /* _ASM_POWERPC_MC146818RTC_H */
index f2d55988d749db110f974266f624d6b89bf447e3..f5e5342fcac52f94761089e9b4c12f0aebb23b96 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_MMAN_H
-#define _POWERPC_MMAN_H
+#ifndef _ASM_POWERPC_MMAN_H
+#define _ASM_POWERPC_MMAN_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -49,4 +49,4 @@
 #define MAP_ANON       MAP_ANONYMOUS
 #define MAP_FILE       0
 
-#endif /* _POWERPC_MMAN_H */
+#endif /* _ASM_POWERPC_MMAN_H */
index 4438f4fd65246c108a0a6f58d235dcc5c49dab9c..7ecd05e0305196d3e4b387ec3a56d5f2bfc1519b 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_MODULE_H
-#define _POWERPC_MODULE_H
+#ifndef _ASM_POWERPC_MODULE_H
+#define _ASM_POWERPC_MODULE_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -74,4 +74,4 @@ struct exception_table_entry;
 void sort_ex_table(struct exception_table_entry *start,
                   struct exception_table_entry *finish);
 
-#endif /* _POWERPC_MODULE_H */
+#endif /* _ASM_POWERPC_MODULE_H */
index 29c9ec832133fd518c492d21a2902fe9c7c67d10..657443474a6a15d924b4e983b16acf24a0de6cf6 100644 (file)
@@ -1,14 +1,14 @@
+#ifndef _ASM_POWERPC_NAMEI_H
+#define _ASM_POWERPC_NAMEI_H
+
+#ifdef __KERNEL__
+
 /*
- * include/asm-ppc/namei.h
  * Adapted from include/asm-alpha/namei.h
  *
  * Included from fs/namei.c
  */
 
-#ifdef __KERNEL__
-#ifndef __PPC_NAMEI_H
-#define __PPC_NAMEI_H
-
 /* This dummy routine maybe changed to something useful
  * for /usr/gnemul/ emulation stuff.
  * Look at asm-sparc/namei.h for details.
@@ -16,5 +16,5 @@
 
 #define __emul_prefix() NULL
 
-#endif /* __PPC_NAMEI_H */
-#endif /* __KERNEL__ */
+#endif /* __KERNEL__ */
+#endif /* _ASM_POWERPC_NAMEI_H */
index be5024913c62c4ced082b86089c6cc770560fe3e..edd2054da86b49d3b83503b7aed2962ab3f416af 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __PPC_POLL_H
-#define __PPC_POLL_H
+#ifndef _ASM_POWERPC_POLL_H
+#define _ASM_POWERPC_POLL_H
 
 #define POLLIN         0x0001
 #define POLLPRI                0x0002
@@ -20,4 +20,4 @@ struct pollfd {
        short revents;
 };
 
-#endif
+#endif /* _ASM_POWERPC_POLL_H */
index c98fc18fe805f491c14808df0baba1fe2954bcf8..99a41938ae3db94fe42c31e48d6c42b5c2b00d70 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_SEMBUF_H
-#define _POWERPC_SEMBUF_H
+#ifndef _ASM_POWERPC_SEMBUF_H
+#define _ASM_POWERPC_SEMBUF_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -33,4 +33,4 @@ struct semid64_ds {
        unsigned long   __unused4;
 };
 
-#endif /* _POWERPC_SEMBUF_H */
+#endif /* _ASM_POWERPC_SEMBUF_H */
index 29632db3b1788634528fee93eacf06234671a067..dca582a4f68d12f570ac03c1a48e9299e3526fd4 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_SHMBUF_H
-#define _POWERPC_SHMBUF_H
+#ifndef _ASM_POWERPC_SHMBUF_H
+#define _ASM_POWERPC_SHMBUF_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -56,4 +56,4 @@ struct shminfo64 {
        unsigned long   __unused4;
 };
 
-#endif /* _POWERPC_SHMBUF_H */
+#endif /* _ASM_POWERPC_SHMBUF_H */
index d6250602ae642d7ec3d61329df63257351474a77..5cda42a6d39ed411a801d7fe231216cbd1c578aa 100644 (file)
@@ -1,6 +1,6 @@
-#ifndef _PPC_SHMPARAM_H
-#define _PPC_SHMPARAM_H
+#ifndef _ASM_POWERPC_SHMPARAM_H
+#define _ASM_POWERPC_SHMPARAM_H
 
 #define        SHMLBA PAGE_SIZE                 /* attach addr a multiple of this */
 
-#endif /* _PPC_SHMPARAM_H */
+#endif /* _ASM_POWERPC_SHMPARAM_H */
index ae70b8010b199da3ea9cabde0ad0e1283343ff28..538ea8ef509b99f4d2ec3350d64e12bd27450332 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_SIGINFO_H
-#define _POWERPC_SIGINFO_H
+#ifndef _ASM_POWERPC_SIGINFO_H
+#define _ASM_POWERPC_SIGINFO_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -15,4 +15,4 @@
 
 #include <asm-generic/siginfo.h>
 
-#endif /* _POWERPC_SIGINFO_H */
+#endif /* _ASM_POWERPC_SIGINFO_H */
index 51a0cf5ee9f0e054b02b5f7dc36fda5c26ae16a2..e4b8177d4acc48313dbb905bbf59400d659f0253 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_SOCKET_H
-#define _POWERPC_SOCKET_H
+#ifndef _ASM_POWERPC_SOCKET_H
+#define _ASM_POWERPC_SOCKET_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -56,4 +56,4 @@
 
 #define SO_PEERSEC             31
 
-#endif /* _POWERPC_SOCKET_H */
+#endif /* _ASM_POWERPC_SOCKET_H */
index ef7ff664167e894e8a8851c4f5e383fc44ca7189..590078d8ed28da51c46bcfbfbd03fc87b2962b3a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_SOCKIOS_H
-#define _POWERPC_SOCKIOS_H
+#ifndef _ASM_POWERPC_SOCKIOS_H
+#define _ASM_POWERPC_SOCKIOS_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -16,4 +16,4 @@
 #define SIOCATMARK     0x8905
 #define SIOCGSTAMP     0x8906          /* Get stamp */
 
-#endif /* _POWERPC_SOCKIOS_H */
+#endif /* _ASM_POWERPC_SOCKIOS_H */
index 225575997392a99db649a8018f58297450e35cfa..8606a696c088187ae65457c905f5a492b4ad2ac1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _PPC_STRING_H_
-#define _PPC_STRING_H_
+#ifndef _ASM_POWERPC_STRING_H
+#define _ASM_POWERPC_STRING_H
 
 #ifdef __KERNEL__
 
@@ -29,4 +29,4 @@ extern void * memchr(const void *,int,__kernel_size_t);
 
 #endif /* __KERNEL__ */
 
-#endif
+#endif /* _ASM_POWERPC_STRING_H */
index 2c5bf85a8c3c2c30a8a36ea8b0ccba15e0b26d03..ebf6055481dcb0f4547ecd5c9f1d6e7c1afea896 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_TERMBITS_H
-#define _POWERPC_TERMBITS_H
+#ifndef _ASM_POWERPC_TERMBITS_H
+#define _ASM_POWERPC_TERMBITS_H
 
 /*
  * This program is free software; you can redistribute it and/or
@@ -188,4 +188,4 @@ struct termios {
 #define        TCSADRAIN       1
 #define        TCSAFLUSH       2
 
-#endif /* _POWERPC_TERMBITS_H */
+#endif /* _ASM_POWERPC_TERMBITS_H */
index 237533bb0e9f1a3e640c4906d8b350deafd315b9..c5b8e5358f830c337d026ea3f1c68bc345a35178 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _POWERPC_TERMIOS_H
-#define _POWERPC_TERMIOS_H
+#ifndef _ASM_POWERPC_TERMIOS_H
+#define _ASM_POWERPC_TERMIOS_H
 
 /*
  * Liberally adapted from alpha/termios.h.  In particular, the c_cc[]
@@ -233,4 +233,4 @@ struct termio {
 
 #endif /* __KERNEL__ */
 
-#endif /* _POWERPC_TERMIOS_H */
+#endif /* _ASM_POWERPC_TERMIOS_H */
index 45520d9b85d1184a84bd830af980e1b4eed5c02b..6c95dfa2652f332cbdcf73b04565d7c3e546cad0 100644 (file)
@@ -1,6 +1,7 @@
+#ifndef _ASM_POWERPC_UNALIGNED_H
+#define _ASM_POWERPC_UNALIGNED_H
+
 #ifdef __KERNEL__
-#ifndef __PPC_UNALIGNED_H
-#define __PPC_UNALIGNED_H
 
 /*
  * The PowerPC can do unaligned accesses itself in big endian mode.
@@ -14,5 +15,5 @@
 
 #define put_unaligned(val, ptr) ((void)( *(ptr) = (val) ))
 
-#endif
-#endif /* __KERNEL__ */
+#endif /* __KERNEL__ */
+#endif /* _ASM_POWERPC_UNALIGNED_H */