Skip to contentSkip to conversation

x86: regparm(3) is mandatory, no need to annotate

PATCH New Harvey Harrison 1 participant 1 message Feb 8, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 x86: regparm(3) is mandatory, no need to annotate

Functions in ptrace.c and signal_32.c were defined with __attribute(regparm(3)) which is unnecessary now that X86_32 must compile this way.

---
 arch/x86/kernel/ptrace.c    |    1 -
 arch/x86/kernel/signal_32.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
arch/x86/kernel/ptrace.c +0 -1
index 702c33e..2e785d5 100644
@@ -1426,7 +1426,6 @@ void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code)
 /* notification of system call entry/exit
  * - triggered by current->work.syscall_trace
  */
-__attribute__((regparm(3)))
 int do_syscall_trace(struct pt_regs *regs, int entryexit)
 {
 	int is_sysemu = test_thread_flag(TIF_SYSCALL_EMU);
arch/x86/kernel/signal_32.c +0 -1
index c1f4ff7..a99529e 100644
@@ -654,7 +654,6 @@ static void do_signal(struct pt_regs *regs)
  * notification of userspace execution resumption
  * - triggered by the TIF_WORK_MASK flags
  */
-__attribute__((regparm(3)))
 void do_notify_resume(struct pt_regs *regs, void *_unused,
 		      __u32 thread_info_flags)
 {
Signature · 1 line
1.5.4.1219.g65b9