[PATCH] ARM: ptrace: Code cleanup

Kunwu Chan chentao at kylinos.cn
Thu Jan 25 01:00:16 PST 2024


This part was commented in about 19 years before.

If there are no plans to enable this part code in the future,
we can remove this dead code.

Signed-off-by: Kunwu Chan <chentao at kylinos.cn>
---
 arch/arm/kernel/ptrace.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index c421a899fc84..71c0b2233f56 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -37,13 +37,6 @@
  * in exit.c or in signal.c.
  */
 
-#if 0
-/*
- * Breakpoint SWI instruction: SWI &9F0001
- */
-#define BREAKINST_ARM	0xef9f0001
-#define BREAKINST_THUMB	0xdf00		/* fill this in later */
-#else
 /*
  * New breakpoints - use an undefined instruction.  The ARM architecture
  * reference manual guarantees that the following instruction space
@@ -54,7 +47,6 @@
  */
 #define BREAKINST_ARM	0xe7f001f0
 #define BREAKINST_THUMB	0xde01
-#endif
 
 struct pt_regs_offset {
 	const char *name;
-- 
2.39.2




More information about the linux-arm-kernel mailing list