From 4c238c91c817410c329598be7d543621e4014b8a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 24 Feb 2004 16:12:37 -0800 Subject: [PATCH] asmlinkage fixes From: Andreas Gruenbacher , and me. Latest gcc cvs is able to detect mismatches between functions which are tagged asmlinkage and declarations which are missing asmlinkage. Or vice versa. Fix up the fallout from an x86 allyesconfig build. --- include/acpi/acpixf.h | 2 +- include/asm-i386/spinlock.h | 2 +- include/linux/preempt.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index fcebceb3e23a..8ed497c30a64 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h @@ -446,7 +446,7 @@ acpi_status acpi_enter_sleep_state_prep ( u8 sleep_state); -acpi_status +acpi_status asmlinkage acpi_enter_sleep_state ( u8 sleep_state); diff --git a/include/asm-i386/spinlock.h b/include/asm-i386/spinlock.h index 47cb9c591a2e..e89511675001 100644 --- a/include/asm-i386/spinlock.h +++ b/include/asm-i386/spinlock.h @@ -7,7 +7,7 @@ #include #include -extern int printk(const char * fmt, ...) +asmlinkage int printk(const char * fmt, ...) __attribute__ ((format (printf, 1, 2))); /* diff --git a/include/linux/preempt.h b/include/linux/preempt.h index 0bd40fb2048f..a7ad90136d64 100644 --- a/include/linux/preempt.h +++ b/include/linux/preempt.h @@ -7,6 +7,7 @@ */ #include +#include #define preempt_count() (current_thread_info()->preempt_count) @@ -22,7 +23,7 @@ do { \ #ifdef CONFIG_PREEMPT -extern void preempt_schedule(void); +asmlinkage void preempt_schedule(void); #define preempt_disable() \ do { \ -- cgit v1.2.3