From: viro@parcelfarce.linux.theplanet.co.uk
To: Linus Torvalds <torvalds@osdl.org>
Cc: John Cherry <cherry@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: IA32 (2.6.2 - 2004-02-05.22.30) - 3 New warnings (gcc 3.2.2)
Date: Fri, 6 Feb 2004 19:09:56 +0000 [thread overview]
Message-ID: <20040206190956.GN21151@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20040206184707.GL21151@parcelfarce.linux.theplanet.co.uk>
On Fri, Feb 06, 2004 at 06:47:07PM +0000, viro@parcelfarce.linux.theplanet.co.uk wrote:
> Anyway, in both of those cases BUG() is gratitious. What that code tries
> to do is "if we decided to use one of the old modes, we'll need 3 ports;
> otherwise we should claim 8". So simple if() would be enough. I'll send
> a patch in a few.
Please, apply
diff -urN RC2-bk1-base/drivers/scsi/imm.c RC2-bk1-current/drivers/scsi/imm.c
--- RC2-bk1-base/drivers/scsi/imm.c Thu Feb 5 18:48:49 2004
+++ RC2-bk1-current/drivers/scsi/imm.c Fri Feb 6 14:07:08 2004
@@ -1208,19 +1208,10 @@
goto out1;
/* now the glue ... */
- switch (dev->mode) {
- case IMM_NIBBLE:
- case IMM_PS2:
+ if (dev->mode == IMM_NIBBLE || dev->mode == IMM_PS2)
ports = 3;
- break;
- case IMM_EPP_8:
- case IMM_EPP_16:
- case IMM_EPP_32:
+ else
ports = 8;
- break;
- default: /* Never gets here */
- BUG();
- }
INIT_WORK(&dev->imm_tq, imm_interrupt, dev);
diff -urN RC2-bk1-base/drivers/scsi/ppa.c RC2-bk1-current/drivers/scsi/ppa.c
--- RC2-bk1-base/drivers/scsi/ppa.c Thu Feb 5 18:48:57 2004
+++ RC2-bk1-current/drivers/scsi/ppa.c Fri Feb 6 14:07:50 2004
@@ -1069,21 +1069,10 @@
goto out1;
/* now the glue ... */
- switch (dev->mode) {
- case PPA_NIBBLE:
+ if (dev->mode == PPA_NIBBLE || dev->mode == PPA_PS2)
ports = 3;
- break;
- case PPA_PS2:
- ports = 3;
- break;
- case PPA_EPP_8:
- case PPA_EPP_16:
- case PPA_EPP_32:
+ else
ports = 8;
- break;
- default: /* Never gets here */
- BUG();
- }
INIT_WORK(&dev->ppa_tq, ppa_interrupt, dev);
next prev parent reply other threads:[~2004-02-06 19:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 11:22 John Cherry
2004-02-06 11:33 ` viro
2004-02-06 16:52 ` Linus Torvalds
2004-02-06 18:22 ` viro
2004-02-06 18:35 ` Petr Vandrovec
2004-02-06 18:42 ` Linus Torvalds
2004-02-06 18:47 ` viro
2004-02-06 19:09 ` viro [this message]
2004-02-10 13:32 ` Dick Streefland
2004-02-10 15:44 ` Randy.Dunlap
2004-02-08 1:00 Jon Foster
2004-02-08 5:45 ` viro
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=20040206190956.GN21151@parcelfarce.linux.theplanet.co.uk \
--to=viro@parcelfarce.linux.theplanet.co.uk \
--cc=cherry@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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 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®