[PATCH] x86-64: Remove fastcall references in x86_64 code
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Tue, 13 Feb 2007 12:26:22 +0000 (13:26 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 13 Feb 2007 12:26:22 +0000 (13:26 +0100)
Unlike x86, x86_64 already passes arguments in registers.  The use of
regparm attribute makes no difference in produced code, and the use of
fastcall just bloats the code.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
arch/x86_64/kernel/acpi/sleep.c
arch/x86_64/kernel/x8664_ksyms.c
include/asm-x86_64/hw_irq.h
include/asm-x86_64/mutex.h

index 5ebf62c7a3d2ba936c2e22dfcd0b0ae02b9bdde5..23178ce6c78380bc29f85e146e375676cd4e5242 100644 (file)
@@ -58,7 +58,7 @@ unsigned long acpi_wakeup_address = 0;
 unsigned long acpi_video_flags;
 extern char wakeup_start, wakeup_end;
 
-extern unsigned long FASTCALL(acpi_copy_wakeup_routine(unsigned long));
+extern unsigned long acpi_copy_wakeup_routine(unsigned long);
 
 static pgd_t low_ptr;
 
index 23a7da312f30b16640893a0a8ca4106f2d6f5fa8..0dffae69f4ad89a52e0deb67688d1648f3f32c21 100644 (file)
@@ -35,8 +35,8 @@ EXPORT_SYMBOL(copy_page);
 EXPORT_SYMBOL(clear_page);
 
 #ifdef CONFIG_SMP
-extern void FASTCALL( __write_lock_failed(rwlock_t *rw));
-extern void FASTCALL( __read_lock_failed(rwlock_t *rw));
+extern void  __write_lock_failed(rwlock_t *rw);
+extern void  __read_lock_failed(rwlock_t *rw);
 EXPORT_SYMBOL(__write_lock_failed);
 EXPORT_SYMBOL(__read_lock_failed);
 #endif
index 179cce755aa75656380f7f4e9005cebd46010742..552df5f10a6d462026eb10414766efd42a76a347 100644 (file)
@@ -91,7 +91,7 @@ extern void enable_8259A_irq(unsigned int irq);
 extern int i8259A_irq_pending(unsigned int irq);
 extern void make_8259A_irq(unsigned int irq);
 extern void init_8259A(int aeoi);
-extern void FASTCALL(send_IPI_self(int vector));
+extern void send_IPI_self(int vector);
 extern void init_VISWS_APIC_irqs(void);
 extern void setup_IO_APIC(void);
 extern void disable_IO_APIC(void);
index 16396b1de3e44e2068021f446d8b56f3b6f79448..6c2949a3c677bad80981fd593acb8d7da0e9cf10 100644 (file)
@@ -21,7 +21,7 @@ do {                                                                  \
        unsigned long dummy;                                            \
                                                                        \
        typecheck(atomic_t *, v);                                       \
-       typecheck_fn(fastcall void (*)(atomic_t *), fail_fn);           \
+       typecheck_fn(void (*)(atomic_t *), fail_fn);                    \
                                                                        \
        __asm__ __volatile__(                                           \
                LOCK_PREFIX "   decl (%%rdi)    \n"                     \
@@ -47,7 +47,7 @@ do {                                                                  \
  */
 static inline int
 __mutex_fastpath_lock_retval(atomic_t *count,
-                            int fastcall (*fail_fn)(atomic_t *))
+                            int (*fail_fn)(atomic_t *))
 {
        if (unlikely(atomic_dec_return(count) < 0))
                return fail_fn(count);
@@ -67,7 +67,7 @@ do {                                                                  \
        unsigned long dummy;                                            \
                                                                        \
        typecheck(atomic_t *, v);                                       \
-       typecheck_fn(fastcall void (*)(atomic_t *), fail_fn);           \
+       typecheck_fn(void (*)(atomic_t *), fail_fn);                    \
                                                                        \
        __asm__ __volatile__(                                           \
                LOCK_PREFIX "   incl (%%rdi)    \n"                     \