From 1555e675b191919bbfd6eab89dfbfbfba076c541 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Tue, 24 May 2011 00:18:05 +0200 Subject: [PATCH] --- yaml --- r: 250391 b: refs/heads/master c: 1b4ac2a935aaf194241a2f4165d6407ba9650e1a h: refs/heads/master i: 250389: e1e9d6313da9655ba0de47f1ec5f99799afe46dc 250387: 54cafa959f1e3912514b46971c104dafab3a6f6e 250383: 25d82662dbe2a6574a5c22fbb440fea6860928fd v: v3 --- [refs] | 2 +- trunk/arch/x86/include/asm/linkage.h | 5 ----- trunk/arch/x86/kernel/ptrace.c | 4 ++-- trunk/include/linux/linkage.h | 4 ---- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/[refs] b/[refs] index f2a43e45a39f..b3a3fcb30e6b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3a3679078aed2c451ebc32836bbd3b8219a65e01 +refs/heads/master: 1b4ac2a935aaf194241a2f4165d6407ba9650e1a diff --git a/trunk/arch/x86/include/asm/linkage.h b/trunk/arch/x86/include/asm/linkage.h index 12d55e773eb6..48142971b25d 100644 --- a/trunk/arch/x86/include/asm/linkage.h +++ b/trunk/arch/x86/include/asm/linkage.h @@ -8,11 +8,6 @@ #ifdef CONFIG_X86_32 #define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0))) -/* - * For 32-bit UML - mark functions implemented in assembly that use - * regparm input parameters: - */ -#define asmregparm __attribute__((regparm(3))) /* * Make sure the compiler doesn't do anything stupid with the diff --git a/trunk/arch/x86/kernel/ptrace.c b/trunk/arch/x86/kernel/ptrace.c index f65e5b521dbd..807c2a2b80f1 100644 --- a/trunk/arch/x86/kernel/ptrace.c +++ b/trunk/arch/x86/kernel/ptrace.c @@ -1363,7 +1363,7 @@ void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, * We must return the syscall number to actually look up in the table. * This can be -1L to skip running any syscall at all. */ -asmregparm long syscall_trace_enter(struct pt_regs *regs) +long syscall_trace_enter(struct pt_regs *regs) { long ret = 0; @@ -1408,7 +1408,7 @@ asmregparm long syscall_trace_enter(struct pt_regs *regs) return ret ?: regs->orig_ax; } -asmregparm void syscall_trace_leave(struct pt_regs *regs) +void syscall_trace_leave(struct pt_regs *regs) { bool step; diff --git a/trunk/include/linux/linkage.h b/trunk/include/linux/linkage.h index 7135ebc8428c..3f46aedea42f 100644 --- a/trunk/include/linux/linkage.h +++ b/trunk/include/linux/linkage.h @@ -14,10 +14,6 @@ #define asmlinkage CPP_ASMLINKAGE #endif -#ifndef asmregparm -# define asmregparm -#endif - #define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE) #define __page_aligned_bss __section(.bss..page_aligned) __aligned(PAGE_SIZE)