From: Nuno Monteiro <nuno@itsari.org>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
linux-kernel@vger.kernel.org
Subject: Re: rwsem-spinlock error
Date: Thu, 17 Jun 2004 14:13:44 +0100 [thread overview]
Message-ID: <20040617131344.GA2916@hobbes.itsari.int> (raw)
In-Reply-To: <40D173F8.4060701@yahoo.com.au> (from nickpiggin@yahoo.com.au on Thu, Jun 17, 2004 at 11:35:36 +0100)
On 2004.06.17 11:35, Nick Piggin wrote:
> Geert Uytterhoeven wrote:
>> On Wed, 16 Jun 2004, Marcelo Tosatti wrote:
>>
>>> <nickpiggin:yahoo.com.au>:
>>> o rwsem race fixes backported from 2.6
>>
>>
>>> Nuno Monteiro:
>>> o Fix rwsem-fix typo
>>> o Complete rwsem typo fix
>>
>>
>> | rwsem-spinlock.c: In function `__rwsem_wake_one_writer':
>> | rwsem-spinlock.c:111: `tsk' undeclared (first use in this function)
>> | rwsem-spinlock.c:111: (Each undeclared identifier is reported only
>> once
>> | rwsem-spinlock.c:111: for each function it appears in.)
>>
>> How can this ever compile on any architecture?
>>
>
> Dangit. rwsem-spinlock.c isn't compiled for many architectures.
>
> It should just require a
>
> struct task_struct *tsk;
>
Yeah, m68k being one of those that need it, hence why Geert noticed
immediately. I only tested on x86, ppc32 and alpha, none of which
needs it. This should do the trick, then.
--- linux-2.4/lib/rwsem-spinlock.c~fix-rwsem-race-fix-3 2004-06-16 21:50:49.000000000 +0100
+++ linux-2.4/lib/rwsem-spinlock.c 2004-06-17 13:58:19.833211128 +0100
@@ -101,6 +101,7 @@ static inline struct rw_semaphore *__rws
static inline struct rw_semaphore *__rwsem_wake_one_writer(struct rw_semaphore *sem)
{
struct rwsem_waiter *waiter;
+ struct task_struct *tsk;
sem->activity = -1;
next prev parent reply other threads:[~2004-06-17 13:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 18:33 Linux 2.4.27-pre6 Marcelo Tosatti
2004-06-17 9:40 ` Linux 2.4.27-pre6: visor.c Eyal Lebedinsky
2004-06-17 9:48 ` Linux 2.4.27-pre6: visor.c (patch) Eyal Lebedinsky
2004-06-17 10:06 ` ip6_tables warning (was: Re: Linux 2.4.27-pre6) Geert Uytterhoeven
2004-06-17 10:13 ` ip6_tables warning YOSHIFUJI Hideaki / 吉藤英明
2004-06-17 17:12 ` David S. Miller
2004-06-17 19:05 ` igmp warning (was: Re: Linux 2.4.27-pre6) Geert Uytterhoeven
2004-06-17 19:09 ` David S. Miller
2004-06-17 10:10 ` rwsem-spinlock error " Geert Uytterhoeven
2004-06-17 10:35 ` rwsem-spinlock error Nick Piggin
2004-06-17 13:13 ` Nuno Monteiro [this message]
2004-06-17 13:01 ` Linux 2.4.27-pre6 Andreas Haumer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040617131344.GA2916@hobbes.itsari.int \
--to=nuno@itsari.org \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
--cc=nickpiggin@yahoo.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®