]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
MIPS: SNI: Fix conflicting wrapper symbols for headers.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 27 Jun 2011 08:45:42 +0000 (09:45 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 20 Oct 2011 14:00:18 +0000 (15:00 +0100)
If Open Firmware / Device Tree support is enabled on a SNI RM kernel both
<asm/mipsprom.h> and <asm/prom.h> will be included into some .c files.
Since both headers use the same wrapper symbol only the inclusion of the
first file will have an effect but the 2nd file will be ignored resulting
in a build error.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mipsprom.h
arch/mips/include/asm/prom.h

index 146d41b67adc301462407abbc80dce0c11475d99..e93943fabeac7ba4877b2f79a8c7ab262f674dc0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __ASM_MIPS_PROM_H
-#define __ASM_MIPS_PROM_H
+#ifndef __ASM_MIPSPROM_H
+#define __ASM_MIPSPROM_H
 
 #define PROM_RESET             0
 #define PROM_EXEC              1
@@ -73,4 +73,4 @@
 
 extern char *prom_getenv(char *);
 
-#endif /* __ASM_MIPS_PROM_H */
+#endif /* __ASM_MIPSPROM_H */
index 857d9b7858ad6265a6406d355c71eb68e7a45a3e..7a6e82ef449b3bf4e8747974dd3ed81c2a231401 100644 (file)
@@ -8,8 +8,8 @@
  * published by the Free Software Foundation.
  *
  */
-#ifndef __ASM_MIPS_PROM_H
-#define __ASM_MIPS_PROM_H
+#ifndef __ASM_PROM_H
+#define __ASM_PROM_H
 
 #ifdef CONFIG_OF
 #include <asm/bootinfo.h>
@@ -25,4 +25,4 @@ extern void device_tree_init(void);
 static inline void device_tree_init(void) { }
 #endif /* CONFIG_OF */
 
-#endif /* _ASM_MIPS_PROM_H */
+#endif /* __ASM_PROM_H */