]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
linux/compat.h: remove redundant macro defines
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 26 Nov 2014 07:02:53 +0000 (16:02 +0900)
committerTom Rini <trini@ti.com>
Mon, 8 Dec 2014 14:35:46 +0000 (09:35 -0500)
__user and __iomem are defined in include/linux/compiler.h.
MAX_ERRNO is defined in include/linux/err.h.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
include/linux/compat.h

index 47b088973944404ba9e432308f1bcdb14d7a82b9..b40133cb3cd160e66ca66516e1c47e49300a9aff 100644 (file)
@@ -215,13 +215,11 @@ typedef int       wait_queue_head_t;
 #define cond_resched()                 do { } while (0)
 #define yield()                                do { } while (0)
 
-#define __user
 #define __init
 #define __exit
 #define __devinit
 #define __devinitdata
 #define __devinitconst
-#define __iomem
 
 #define kthread_create(...)    __builtin_return_address(0)
 #define kthread_stop(...)      do { } while (0)
@@ -252,8 +250,6 @@ struct cdev {
 #define cdev_add(...)          0
 #define cdev_del(...)          do { } while (0)
 
-#define MAX_ERRNO              4095
-
 #define prandom_u32(...)       0
 
 typedef struct {