History

arm64: arm: Fix-up the removal of the arm64 regs_query_register_name() prototype

Commit 0a8ea52c3eb1 ("arm64: Add HAVE_REGS_AND_STACK_ACCESS_API feature") inadvertently removed the arch/arm prototype instead of the arm64 one introduced by the original patch. There should not be any bisection issues since this function is not called from anywhere else (it could as well be removed from arch/arm at some point).

Catalin Marinas committed 10 years ago

Commit fd6380b1 parent b9c220b2 files · +1 −1Browse files

Unified · Split

2 files
  1. arch/arm/include/asm/ptrace.h +1 −0
  2. arch/arm64/include/asm/ptrace.h +0 −1
arch/arm/include/asm/ptrace.h+1−0
@@ -121,6 +121,7 @@ extern unsigned long profile_pc(struct pt_regs *regs); · 120 unmodified lines
121121 #define MAX_REG_OFFSET (offsetof(struct pt_regs, ARM_ORIG_r0))
122122
123123 extern int regs_query_register_offset(const char *name);
124+extern const char *regs_query_register_name(unsigned int offset);
124125 extern bool regs_within_kernel_stack(struct pt_regs *regs, unsigned long addr);
125126 extern unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,
126127 unsigned int n);
arch/arm64/include/asm/ptrace.h+0−1
@@ -153,7 +153,6 @@ struct pt_regs { · 152 unmodified lines
153153 (!compat_user_mode(regs) ? ((regs)->sp = value) : ((regs)->compat_sp = value))
154154
155155 extern int regs_query_register_offset(const char *name);
156−extern const char *regs_query_register_name(unsigned int offset);
157156 extern unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,
158157 unsigned int n);
159158