diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-10-31 18:19:15 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-11-01 19:14:49 +0000 |
commit | ff0c6eecef59d6f949bbc09d117f2527ae1d4e34 (patch) | |
tree | 6013601c7b01a4ac0987187d3b400c98754f0a93 /arch/alpha/Kconfig.debug | |
parent | 29f9007b3182ab3f328a31da13e6b1c9072f7a95 (diff) |
ARM: 8716/1: pass endianness info to sparse
ARM depends on the macros '__ARMEL__' & '__ARMEB__' being defined
or not to correctly select or define endian-specific macros,
structures or pieces of code.
These macros are predefined by the compiler but sparse knows
nothing about them and thus may pre-process files differently
from what gcc would.
Fix this by passing '-D__ARMEL__' or '-D__ARMEB__' to sparse,
depending on the endianness of the kernel, like defined by GCC.
Note: In most case it won't change anything since most ARMs use
little-endian (but an allyesconfig would use big-endian!).
To: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/alpha/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions