• Arnd Bergmann's avatar
    ARM: 8372/1: KGDB does not build on BE32 · cfeec79e
    Arnd Bergmann authored
    KGDB requires code patching, which only works on little-endian
    or newer big-endian (BE8) machines but not on the older big-endian
    ones (BE32) where it results in this build error:
    
    arch/arm/kernel/patch.c: In function '__patch_text_real':
    arch/arm/kernel/patch.c:93:4: error: implicit declaration of function '__opcode_to_mem_thumb32' [-Werror=implicit-function-declaration]
        insn = __opcode_to_mem_thumb32(insn);
    
    This adds a Kconfig dependency to avoid the broken case and
    for all other symbols that require code patching.
    
    Fixes: 23a4e405 ("arm: kgdb: Handle read-only text / modules")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    cfeec79e
Kconfig 60.7 KB