]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ppc64: add missing include guards, from Nathan Lynch
authorAndrew Morton <akpm@osdl.org>
Sat, 31 Jan 2004 01:56:15 +0000 (17:56 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 31 Jan 2004 01:56:15 +0000 (17:56 -0800)
From: Anton Blanchard <anton@samba.org>

add missing include guards, from Nathan Lynch

include/asm-ppc64/bugs.h
include/asm-ppc64/hvcall.h
include/asm-ppc64/percpu.h
include/asm-ppc64/ppc_asm.h
include/asm-ppc64/ptrace-common.h
include/asm-ppc64/serial.h

index 3b95d97ab75dd78a6b5f8939f66ceec9b53129bf..861074b3cf71591e98e530553da84cbeb164723b 100644 (file)
@@ -3,6 +3,10 @@
  * bugs.
  *
  */
+#ifndef _ASM_PPC64_BUGS_H
+#define _ASM_PPC64_BUGS_H
 
 static void check_bugs(void) {
 }
+
+#endif /* _ASM_PPC64_BUGS_H */
index d963feaa077c76584aacd0ac387a8b1a3b60df37..13b78b8fc2b4f5825b353987afb04fdb2dcf3c55 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef _PPC64_HVCALL_H
+#define _PPC64_HVCALL_H
 
 #define H_Success      0
 #define H_Busy         1       /* Hardware busy -- retry later */
@@ -138,3 +140,4 @@ long plpar_hcall_4out(unsigned long opcode,
                      unsigned long *out3,
                      unsigned long *out4);
 
+#endif /* _PPC64_HVCALL_H */
index 5764afa4b6a4b4a690a595cad8df504a8b43cf8c..60a659a4ce1fe28dc6753116698673a2e6748d0e 100644 (file)
@@ -1,6 +1,6 @@
-#ifndef __ARCH_I386_PERCPU__
-#define __ARCH_I386_PERCPU__
+#ifndef __ARCH_PPC64_PERCPU__
+#define __ARCH_PPC64_PERCPU__
 
 #include <asm-generic/percpu.h>
 
-#endif /* __ARCH_I386_PERCPU__ */
+#endif /* __ARCH_PPC64_PERCPU__ */
index a33d6347bd63465be84530948f63cc032bb747bf..6ac08bb267e042c3753fc2ea496f735958f25018 100644 (file)
@@ -11,6 +11,8 @@
  *  2 of the License, or (at your option) any later version.
  */
 
+#ifndef _PPC64_PPC_ASM_H
+#define _PPC64_PPC_ASM_H
 /*
  * Macros for storing registers into and loading registers from
  * exception frames.
 #define        vr29    29
 #define        vr30    30
 #define        vr31    31
+
+#endif /* _PPC64_PPC_ASM_H */
index b3295b1bf99204a00f6e993764af09e92547379d..3dbd3e5847b309428f6a368b27e6005eaa788472 100644 (file)
@@ -9,6 +9,8 @@
  * this archive for more details.
  */
 
+#ifndef _PPC64_PTRACE_COMMON_H
+#define _PPC64_PTRACE_COMMON_H
 /*
  * Set of msr bits that gdb can change on behalf of a process.
  */
@@ -64,3 +66,5 @@ static inline void clear_single_step(struct task_struct *task)
        if (regs != NULL)
                regs->msr &= ~MSR_SE;
 }
+
+#endif /* _PPC64_PTRACE_COMMON_H */
index 64c4e0eef7000c531f18e02dd96574d5f22e1305..edf5886c24c37505d8225c0bb1db984de91c3e23 100644 (file)
@@ -1,6 +1,8 @@
 /*
- * include/asm-ppc/serial.h
+ * include/asm-ppc64/serial.h
  */
+#ifndef _PPC64_SERIAL_H
+#define _PPC64_SERIAL_H
 
 #include <linux/config.h>
 
        EXTRA_SERIAL_PORT_DEFNS         \
        HUB6_SERIAL_PORT_DFNS           \
        MCA_SERIAL_PORT_DFNS
+
+#endif /* _PPC64_SERIAL_H */