summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-06-24 17:42:11 +0200
committerWill Deacon <will.deacon@arm.com>2017-06-26 11:15:06 +0200
commitbcde519e8c325f3cc1fcf443eb6466e6bb3a3aca (patch)
tree1306a5c2a912dfac4b043d8e80bef8ce55ce226e /arch/arm64/kernel
parentarm64: ftrace: fix !CONFIG_ARM64_MODULE_PLTS kernels (diff)
downloadlinux-bcde519e8c325f3cc1fcf443eb6466e6bb3a3aca.tar.xz
linux-bcde519e8c325f3cc1fcf443eb6466e6bb3a3aca.zip
arm64: pass endianness info to sparse
ARM64 depends on the macro __AARCH64EB__ being defined or not to correctly select or define endian-specific macros, structures or pieces of code. This macro is predefined by the compiler but sparse knows nothing about it and thus may pre-process files differently from what gcc would. Fix this by passing '-D__AARCH64EL__' or '-D__AARCH64EB__' to sparse depending of the endianness of the kernel, like defined by GCC. Note: In most case it won't change anything since most arm64 use little-endian (but an allyesconfig would use big-endian!). CC: Catalin Marinas <catalin.marinas@arm.com> CC: Will Deacon <will.deacon@arm.com> CC: linux-arm-kernel@lists.infradead.org Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
0 files changed, 0 insertions, 0 deletions