Commit:     b15136e9497ef5d6e08cf665e0d0acf7a229f6dc
Parent:     7378547f2c83ca16a30d0a7c488a43a688ea0888
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 24 18:23:48 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Wed Oct 24 18:23:48 2007 +0200

    sched: fix fastcall mismatch in completion APIs
    Jeff Dike noticed that wait_for_completion_interruptible()'s prototype
    had a mismatched fastcall.
    Fix this by removing the fastcall attributes from all the completion APIs.
    Found-by: Jeff Dike <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
 include/linux/completion.h |   18 +++++++++---------
 kernel/sched.c             |   10 +++++-----
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/include/linux/completion.h b/include/linux/completion.h
index 268c5a4..33d6aaf 100644
--- a/include/linux/completion.h
+++ b/include/linux/completion.h
@@ -42,15 +42,15 @@ static inline void init_completion(struct completion *x)
-extern void FASTCALL(wait_for_completion(struct completion *));
-extern int FASTCALL(wait_for_completion_interruptible(struct completion *x));
-extern unsigned long FASTCALL(wait_for_completion_timeout(struct completion *x,
-                                                  unsigned long timeout));
-extern unsigned long FASTCALL(wait_for_completion_interruptible_timeout(
-                       struct completion *x, unsigned long timeout));
-extern void FASTCALL(complete(struct completion *));
-extern void FASTCALL(complete_all(struct completion *));
+extern void wait_for_completion(struct completion *);
+extern int wait_for_completion_interruptible(struct completion *x);
+extern unsigned long wait_for_completion_timeout(struct completion *x,
+                                                  unsigned long timeout);
+extern unsigned long wait_for_completion_interruptible_timeout(
+                       struct completion *x, unsigned long timeout);
+extern void complete(struct completion *);
+extern void complete_all(struct completion *);
 #define INIT_COMPLETION(x)     ((x).done = 0)
diff --git a/kernel/sched.c b/kernel/sched.c
index e51f0ea..80edf29 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3820,7 +3820,7 @@ __wake_up_sync(wait_queue_head_t *q, unsigned int mode, 
int nr_exclusive)
 EXPORT_SYMBOL_GPL(__wake_up_sync);     /* For internal use only */
-void fastcall complete(struct completion *x)
+void complete(struct completion *x)
        unsigned long flags;
@@ -3832,7 +3832,7 @@ void fastcall complete(struct completion *x)
-void fastcall complete_all(struct completion *x)
+void complete_all(struct completion *x)
        unsigned long flags;
@@ -3884,13 +3884,13 @@ wait_for_common(struct completion *x, long timeout, int 
        return timeout;
-void fastcall __sched wait_for_completion(struct completion *x)
+void __sched wait_for_completion(struct completion *x)
-unsigned long fastcall __sched
+unsigned long __sched
 wait_for_completion_timeout(struct completion *x, unsigned long timeout)
        return wait_for_common(x, timeout, TASK_UNINTERRUPTIBLE);
@@ -3906,7 +3906,7 @@ int __sched wait_for_completion_interruptible(struct 
completion *x)
-unsigned long fastcall __sched
+unsigned long __sched
 wait_for_completion_interruptible_timeout(struct completion *x,
                                          unsigned long timeout)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to