summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-24 16:12:37 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-24 16:12:37 -0800
commit4c238c91c817410c329598be7d543621e4014b8a (patch)
tree425068719329aa2f9fa218739dae53fd1a946773 /include/linux
parent0bab064232c278cb484b6aaa790b9c626ab6524b (diff)
[PATCH] asmlinkage fixes
From: Andreas Gruenbacher <agruen@suse.de>, 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.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/preempt.h3
1 files changed, 2 insertions, 1 deletions
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 <linux/config.h>
+#include <linux/linkage.h>
#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 { \