mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
ARM: make BSYM macro assembly only
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>
This commit is contained in:
parent
adf55f7f5b
commit
efb963dcd9
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@
|
||||||
#define THUMB(x...) x
|
#define THUMB(x...) x
|
||||||
#ifdef __ASSEMBLY__
|
#ifdef __ASSEMBLY__
|
||||||
#define W(instr) instr.w
|
#define W(instr) instr.w
|
||||||
#endif
|
|
||||||
#define BSYM(sym) sym + 1
|
#define BSYM(sym) sym + 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#else /* !CONFIG_THUMB2_KERNEL */
|
#else /* !CONFIG_THUMB2_KERNEL */
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@
|
||||||
#define THUMB(x...)
|
#define THUMB(x...)
|
||||||
#ifdef __ASSEMBLY__
|
#ifdef __ASSEMBLY__
|
||||||
#define W(instr) instr
|
#define W(instr) instr
|
||||||
#endif
|
|
||||||
#define BSYM(sym) sym
|
#define BSYM(sym) sym
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_THUMB2_KERNEL */
|
#endif /* CONFIG_THUMB2_KERNEL */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue