ARM: kprobes: use "I" constraint for inline assembly offsets
build-testing with clang showed that the "J" constraint does not take
positive arguments on clang when building in for Thumb-2:
core.c:540:3: error: invalid operand for inline asm constraint 'J'
This has been reported as llvm bug https://llvm.org/bugs/show_bug.cgi?id=26061
However, looking at the source code in depth, I found that the
kernel is also wrong, and it should not use "J" at all, but should
use "I" to pass an immediate argument to the inline assembly when that
is used as an offset to an 'ldr' instruction rather than the 'sub'
Signed-off-by: Arnd Bergmann <firstname.lastname@example.org>
1 file changed