Subject: [PATCH 28/29] FROMLIST: ARM: kprobes: fix UNPREDICTABLE warnings

From: Nick Desaulniers <[email-masked]>
Date: Wed, 10 Feb 2021 18:51:48 -0800

GNU as warns twice for this file:
Warning: using r15 results in unpredictable behaviour

via the Arm ARM:
K1.1.1 Overview of the constraints on Armv7 UNPREDICTABLE behaviors

  The term UNPREDICTABLE describes a number of cases where the
  architecture has a feature that software must not use.

Reported-by: kernelci.org bot <[email-masked]>
Suggested-by: Peter Smith <[email-masked]>
Suggested-by: Renato Golin <[email-masked]>
Suggested-by: David Spickett <[email-masked]>
Signed-off-by: Nick Desaulniers <[email-masked]>
Acked-by: Ard Biesheuvel <[email-masked]>
Link: https://github.com/ClangBuiltLinux/linux/issues/1271
Link: https://reviews.llvm.org/D95586

Bug: 141693040
Link: https://lore.kernel.org/linux-arm-kernel/[email-masked]/
Change-Id: I42333d7e64a98f739ab13916f61a587143fec7f8
---
 arch/arm/probes/kprobes/test-arm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/probes/kprobes/test-arm.c b/arch/arm/probes/kprobes/test-arm.c
index 8866aedfdea2..f27de3e6dd2d 100644
--- a/arch/arm/probes/kprobes/test-arm.c
+++ b/arch/arm/probes/kprobes/test-arm.c
@@ -169,10 +169,10 @@ void kprobe_arm_test_cases(void)
 
 	/* Data-processing with PC as a target and status registers updated */
 	TEST_UNSUPPORTED("movs	pc, r1")
-	TEST_UNSUPPORTED("movs	pc, r1, lsl r2")
+	TEST_UNSUPPORTED(__inst_arm(0xe1b0f211) "	@movs	pc, r1, lsl r2")
 	TEST_UNSUPPORTED("movs	pc, #0x10000")
 	TEST_UNSUPPORTED("adds	pc, lr, r1")
-	TEST_UNSUPPORTED("adds	pc, lr, r1, lsl r2")
+	TEST_UNSUPPORTED(__inst_arm(0xe09ef211) "	@adds	pc, lr, r1, lsl r2")
 	TEST_UNSUPPORTED("adds	pc, lr, #4")
 
 	/* Data-processing with SP as target */
-- 
2.31.0.rc2.261.g7f71774620-goog