ARM: make BSYM macro assembly only
authorRob Herring <rob.herring@calxeda.com>
Mon, 9 Jan 2012 21:43:20 +0000 (15:43 -0600)
committerRob Herring <rob.herring@calxeda.com>
Mon, 16 Jan 2012 14:56:25 +0000 (08:56 -0600)
BSYM macro is only needed for assembly files and its usage in c files is
wrong, so only define it for assembly.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Dave Martin <dave.martin@linaro.org>
arch/arm/include/asm/unified.h

index bc63116..f5989f4 100644 (file)
@@ -37,8 +37,8 @@
 #define THUMB(x...)    x
 #ifdef __ASSEMBLY__
 #define W(instr)       instr.w
-#endif
 #define BSYM(sym)      sym + 1
+#endif
 
 #else  /* !CONFIG_THUMB2_KERNEL */
 
@@ -49,8 +49,8 @@
 #define THUMB(x...)
 #ifdef __ASSEMBLY__
 #define W(instr)       instr
-#endif
 #define BSYM(sym)      sym
+#endif
 
 #endif /* CONFIG_THUMB2_KERNEL */