* [PATCH] signed bug in scsi_device.h
@ 2004-05-13 16:43 Olaf Hering
2004-05-13 17:10 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Olaf Hering @ 2004-05-13 16:43 UTC (permalink / raw)
To: linux-scsi, akpm
one of the recent aic7xxx versions puts a -1 in scsi_cmnd->device->type,
in drivers/scsi/aic7xxx/aic79xx_osm.c
that doesnt work very well on ppc because aic7xxx tends to use -Werror.
maybe scsi_level needs the signed as well.
--- ./include/scsi/scsi_device.h~ 2004-05-13 18:22:20.000000000 +0200
+++ ./include/scsi/scsi_device.h 2004-05-13 18:27:37.000000000 +0200
@@ -57,7 +57,7 @@ struct scsi_device {
void *hostdata; /* available to low-level driver */
char devfs_name[256]; /* devfs junk */
- char type;
+ signed char type;
char scsi_level;
unsigned char inquiry_len; /* valid bytes in 'inquiry' */
unsigned char * inquiry; /* INQUIRY response data */
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] signed bug in scsi_device.h
2004-05-13 16:43 [PATCH] signed bug in scsi_device.h Olaf Hering
@ 2004-05-13 17:10 ` Christoph Hellwig
2004-05-13 17:16 ` Olaf Hering
2004-05-13 17:17 ` Christoph Hellwig
0 siblings, 2 replies; 4+ messages in thread
From: Christoph Hellwig @ 2004-05-13 17:10 UTC (permalink / raw)
To: Olaf Hering; +Cc: linux-scsi, akpm
On Thu, May 13, 2004 at 06:43:06PM +0200, Olaf Hering wrote:
>
> one of the recent aic7xxx versions puts a -1 in scsi_cmnd->device->type,
> in drivers/scsi/aic7xxx/aic79xx_osm.c
> that doesnt work very well on ppc because aic7xxx tends to use -Werror.
>
> maybe scsi_level needs the signed as well.
Maybe aic7xxx should stop doing stuff like that instead?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] signed bug in scsi_device.h
2004-05-13 17:10 ` Christoph Hellwig
@ 2004-05-13 17:16 ` Olaf Hering
2004-05-13 17:17 ` Christoph Hellwig
1 sibling, 0 replies; 4+ messages in thread
From: Olaf Hering @ 2004-05-13 17:16 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-scsi, akpm
On Thu, May 13, Christoph Hellwig wrote:
> On Thu, May 13, 2004 at 06:43:06PM +0200, Olaf Hering wrote:
> >
> > one of the recent aic7xxx versions puts a -1 in scsi_cmnd->device->type,
> > in drivers/scsi/aic7xxx/aic79xx_osm.c
> > that doesnt work very well on ppc because aic7xxx tends to use -Werror.
> >
> > maybe scsi_level needs the signed as well.
>
> Maybe aic7xxx should stop doing stuff like that instead?
probably. Can you fix up scsi_alloc_sdev in the meantime?
I just looked again, the check was device->type != -1.
Maybe our enterprise compiler is just too pedantic. I really dont know.
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] signed bug in scsi_device.h
2004-05-13 17:10 ` Christoph Hellwig
2004-05-13 17:16 ` Olaf Hering
@ 2004-05-13 17:17 ` Christoph Hellwig
1 sibling, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2004-05-13 17:17 UTC (permalink / raw)
To: Olaf Hering; +Cc: linux-scsi, akpm
On Thu, May 13, 2004 at 06:10:47PM +0100, Christoph Hellwig wrote:
> On Thu, May 13, 2004 at 06:43:06PM +0200, Olaf Hering wrote:
> >
> > one of the recent aic7xxx versions puts a -1 in scsi_cmnd->device->type,
> > in drivers/scsi/aic7xxx/aic79xx_osm.c
> > that doesnt work very well on ppc because aic7xxx tends to use -Werror.
> >
> > maybe scsi_level needs the signed as well.
>
> Maybe aic7xxx should stop doing stuff like that instead?
Okay, I take that back, it should be signed indeed. That doesn't mean
aic7xxx should ever write to that field, though.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-05-13 17:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-13 16:43 [PATCH] signed bug in scsi_device.h Olaf Hering
2004-05-13 17:10 ` Christoph Hellwig
2004-05-13 17:16 ` Olaf Hering
2004-05-13 17:17 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox