]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: 8372/1: KGDB does not build on BE32
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 May 2015 14:38:01 +0000 (15:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 27 May 2015 23:29:14 +0000 (00:29 +0100)
commitcfeec79eb2587e0efc43c219558d70939d31bdc9
tree441ed2195c82789ef076a1ad4cfede4b93390c9e
parent0361748f3b4a1cd73657a0a44fc3bc71ea30e8eb
ARM: 8372/1: KGDB does not build on BE32

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: 23a4e4050ba9 ("arm: kgdb: Handle read-only text / modules")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig