Skip to content

Commit

Permalink
ARM: make BSYM macro assembly only
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring committed Jan 16, 2012
1 parent adf55f7 commit efb963d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/include/asm/unified.h
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit efb963d

Please sign in to comment.