• Luc Van Oostenryck's avatar
    arm64: pass endianness info to sparse · bcde519e
    Luc Van Oostenryck authored
    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: default avatarLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    bcde519e
Makefile 4.97 KB