All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Aravamudan <nacc@us.ibm.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] 2.6.11-kj
Date: Thu, 03 Mar 2005 18:34:51 +0000	[thread overview]
Message-ID: <20050303183451.GI11600@us.ibm.com> (raw)
In-Reply-To: <20050302095710.GA3745@nd47.coderock.org>

[-- Attachment #1: Type: text/plain, Size: 1802 bytes --]

On Thu, Mar 03, 2005 at 09:16:19PM +0200, Alexey Dobriyan wrote:
> On Thursday 03 March 2005 19:43, Nishanth Aravamudan wrote:
> > On Thu, Mar 03, 2005 at 06:41:19PM +0200, Alexey Dobriyan wrote:
> > > On Wednesday 02 March 2005 11:57, Domen Puncer wrote:
> > > 
> > > > int_sleep_on-drivers_cdrom_mcdx.patch
> > > >   From: Nishanth Aravamudan <nacc@us.ibm.com>
> > > >   Subject: [KJ] [PATCH 16/20] cdrom/mcdx: remove 	interruptible_sleep_on_timeout() usage
> > > 
> > > drivers/cdrom/mcdx.c:844:2: warning: mixing declarations and code
> > > drivers/cdrom/mcdx.c: In function `mcdx_delay':
> > > drivers/cdrom/mcdx.c:844: warning: ISO C90 forbids mixed declarations and code
> > 
> > I do not see these compile-time warnings.
> 
> Just use gcc 2.95.3. Nice compile error.

Fair enough, here's a patch which should fix it. Please let me know if
it works and I'll push to LKML over the current KJ set. In this case,
seems like 2.95.3's behavior is weird (I'm not arguing against the need
to patch), as wait ends up being thrown away immediately if jifs<0. Oh
well :)

Description: The declaration of wait was inadvertently placed in the
code when it should have been at the head of the function.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>

--- 2.6.11-kj-v/drivers/cdrom/mcdx.c	2005-03-02 11:21:41.000000000 -0800
+++ 2.6.11-kj/drivers/cdrom/mcdx.c	2005-03-03 10:30:32.000000000 -0800
@@ -838,10 +838,10 @@ static void mcdx_delay(struct s_drive_st
  *	May be we could use a simple count loop w/ jumps to itself, but
  *	I wanna make this independent of cpu speed. [1 jiffy is 1/HZ] sec */
 {
+	DEFINE_WAIT(wait);
 	if (jifs < 0)
 		return;
 
-	DEFINE_WAIT(wait);
 	xtrace(SLEEP, "*** delay: sleepq\n");
 	prepare_to_wait(&stuff->sleepq, &wait, TASK_INTERRUPTIBLE);
 	schedule_timeout(jifs);

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2005-03-03 18:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-02  9:57 [KJ] 2.6.11-kj Domen Puncer
2005-03-02  9:57 ` 2.6.11-kj Domen Puncer
2005-03-02 18:49 ` [KJ] 2.6.11-kj Nishanth Aravamudan
2005-03-03 15:44 ` Alexey Dobriyan
2005-03-03 17:43 ` Nishanth Aravamudan
2005-03-03 17:55 ` Randy.Dunlap
2005-03-03 18:18 ` Alexey Dobriyan
2005-03-03 18:34 ` Nishanth Aravamudan [this message]
2005-03-03 18:36 ` Nishanth Aravamudan
2005-03-03 20:34 ` Adrian Bunk
2005-03-03 20:39 ` Nishanth Aravamudan
2005-03-03 23:31 ` Alexey Dobriyan
2005-03-03 23:43 ` Alexey Dobriyan
2005-03-04  0:24 ` Nishanth Aravamudan
2005-03-04  0:25 ` [KJ] [UPDATE PATCH] cdrom/mcdx: fix wait-queue compile-time breakage Nishanth Aravamudan
2005-03-04  0:25   ` Nishanth Aravamudan
2005-03-04 10:10 ` [KJ] 2.6.11-kj Alexey Dobriyan

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=20050303183451.GI11600@us.ibm.com \
    --to=nacc@us.ibm.com \
    --cc=kernel-janitors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.