summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2016-07-06 20:44:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-07 09:44:11 +0200
commit6974c69d06235eb3908af5360e271ce0ef186379 (patch)
treed72b1531c0582d250998cfcacc5298dfd44ac000
parent5455354846e5e928afc73a3f333bd1a054dee06b (diff)
downloadbarebox-6974c69d06235eb3908af5360e271ce0ef186379.tar.gz
barebox-6974c69d06235eb3908af5360e271ce0ef186379.tar.xz
compiler: avoid redefining symbols when running with checker
Avoid redefining __user and __kernel if running with a checker enabled. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/linux/compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 020ad16a04..91331dd12f 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -4,8 +4,8 @@
#ifndef __ASSEMBLY__
#ifdef __CHECKER__
-# define __user __attribute__((noderef, address_space(1)))
-# define __kernel __attribute__((address_space(0)))
+# define __user /* no user address space in barebox */
+# define __kernel /* default address space */
# define __safe __attribute__((safe))
# define __force __attribute__((force))
# define __nocast __attribute__((nocast))