2004-09-01 07:15:56

by Andre Eisenbach

[permalink] [raw]
Subject: Re: 2.6.9-rc1-mm2

On Mon, 30 Aug 2004 23:54:26 -0700, Andrew Morton <[email protected]> wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc1/2.6.9-rc1-mm2/
>

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
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
kernel/wait.c:170: error: conflicting types for '__wait_on_bit_lock'
include/linux/wait.h:144: error: previous declaration of
'__wait_on_bit_lock' was here
kernel/wait.c:170: error: conflicting types for '__wait_on_bit_lock'
include/linux/wait.h:144: error: previous declaration of
'__wait_on_bit_lock' was here
make[1]: *** [kernel/wait.o] Error 1
make: *** [kernel] Error 2

Let me know if you need the .config or any other info.

Thanks for your continued hard work guys!

Cheers,
Andre


2004-09-01 07:26:13

by William Lee Irwin III

[permalink] [raw]
Subject: Re: 2.6.9-rc1-mm2

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.

2004-09-01 09:15:51

by Andre Eisenbach

[permalink] [raw]
Subject: Re: 2.6.9-rc1-mm2

On Wed, 1 Sep 2004 00:25:25 -0700, William Lee Irwin III
<[email protected]> wrote:
> Please apply the following fixes:
>
> Index: mm2-2.6.9-rc1/include/linux/wait.h
> Index: mm2-2.6.9-rc1/kernel/wait.c

Applying those patches worked.

Thanks,
Andre