Re: 2.6.9-rc1-mm2

From: William Lee Irwin III
Date: Wed Sep 01 2004 - 02:29:01 EST


On Wed, Sep 01, 2004 at 12:15:50AM -0700, Andre Eisenbach wrote:
> Does not compile for me:
> CC kernel/wait.o
> kernel/wait.c:156: error: conflicting types for '__wait_on_bit'
> include/linux/wait.h:143: error: previous declaration of
> '__wait_on_bit' was here
[...]
> Let me know if you need the .config or any other info.
> Thanks for your continued hard work guys!

Please apply the following fixes:


Index: mm2-2.6.9-rc1/include/linux/wait.h
===================================================================
--- mm2-2.6.9-rc1.orig/include/linux/wait.h 2004-08-31 16:01:44.000000000 -0700
+++ mm2-2.6.9-rc1/include/linux/wait.h 2004-08-31 16:02:00.000000000 -0700
@@ -388,7 +388,7 @@
DEFINE_WAIT_BIT(q, word, bit);
wait_queue_head_t *wqh;

- if (!test_bit(bit, word))
+ if (!test_and_set_bit(bit, word))
return 0;

wqh = bit_waitqueue(word, bit);
Index: mm2-2.6.9-rc1/kernel/wait.c
===================================================================
--- mm2-2.6.9-rc1.orig/kernel/wait.c 2004-08-31 16:01:44.000000000 -0700
+++ mm2-2.6.9-rc1/kernel/wait.c 2004-08-31 16:02:00.000000000 -0700
@@ -150,8 +150,8 @@
* waiting, the actions of __wait_on_bit() and __wait_on_bit_lock() are
* permitted return codes. Nonzero return codes halt waiting and return.
*/
-int __sched __wait_on_bit(wait_queue_head_t *wq, struct wait_bit_queue *q,
- void *word,
+int __sched fastcall __wait_on_bit(wait_queue_head_t *wq,
+ struct wait_bit_queue *q, void *word,
int bit, int (*action)(void *), unsigned mode)
{
int ret = 0;
@@ -164,8 +164,8 @@
}
EXPORT_SYMBOL(__wait_on_bit);

-int __sched __wait_on_bit_lock(wait_queue_head_t *wq, struct wait_bit_queue *q,
- void *word, int bit,
+int __sched fastcall __wait_on_bit_lock(wait_queue_head_t *wq,
+ struct wait_bit_queue *q, void *word, int bit,
int (*action)(void *), unsigned mode)
{
int ret = 0;
More recent patches modify files in wait-on-bit-lock-fix.patch.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/