]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
include/linux/compat.h: fix warning: preprocessor token {__iomem, __user} redefined
authorKim Phillips <kim.phillips@freescale.com>
Mon, 29 Oct 2012 13:34:24 +0000 (13:34 +0000)
committerTom Rini <trini@ti.com>
Sun, 4 Nov 2012 18:00:34 +0000 (11:00 -0700)
include/linux/compat.h:4:9: warning: preprocessor token __user redefined
include/linux/compiler.h:7:10: this was the original definition
include/linux/compat.h:5:9: warning: preprocessor token __iomem redefined
include/linux/compiler.h:12:10: this was the original definition

fixup __iomem, __user definitions in compat.h code appears to be placed
there as a cover up from a code import from linux when u-boot didn't yet
have a compiler.h, introduced by commit
932394ac43e2e778e664eeb6e456fecd0fae6e59 "Rewrite of NAND code based on
what is in 2.6.12 Linux kernel".

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
include/linux/compat.h
include/linux/mtd/mtd-abi.h

index 593b07f4b5db621b79371b8338e59579ba521314..e1338bf489f8a1934c1c1e669d3db5db48d712be 100644 (file)
@@ -1,9 +1,6 @@
 #ifndef _LINUX_COMPAT_H_
 #define _LINUX_COMPAT_H_
 
-#define __user
-#define __iomem
-
 #define ndelay(x)      udelay(1)
 
 #define printk printf
index 5991157065a7a81649f8afe99993704ff1987f95..8bdd23112b4f2cfd5c40079e8301c7ba2ba0966e 100644 (file)
@@ -11,6 +11,8 @@
 #include <linux/compat.h>
 #endif
 
+#include <linux/compiler.h>
+
 struct erase_info_user {
        uint32_t start;
        uint32_t length;