Skip to contentSkip to conversation

"structure has no member named `tag'"

ide-scsi Joseph Pingenot 3 participants 3 messages Dec 3, 2002 SCSI

lore
Share & tools
lore
#0 lore raw

Found this on 2.5.50+bk3

gcc -Wp,-MD,drivers/scsi/.ide-scsi.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=ide_scsi -DKBUILD_MODNAME=ide_scsi -c -o drivers/scsi/ide-scsi.o drivers/scsi/ide-scsi.c
drivers/scsi/ide-scsi.c: In function `should_transform':
drivers/scsi/ide-scsi.c:767: structure has no member named `tag' make[2]: *** [drivers/scsi/ide-scsi.o] Error 1 make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

Signature · 4 lines
Joseph===============================================trelane@digitasaru.net
"I use Linux and it makes me feel safer knowing exactly what security
 problems my boxen are facing. If I wanted filtered information or a public
 relations a** kissing, I'd use Microsoft products." --dattaway, on /.
#1 lore raw

There was a discussion on this at
http://marc.theaimsgroup.com/?t=103861087100001&r=1&w=2

To get past this you can just change the line to compare ->name instead ->tag until the real fix lands.

-rustyl
----- Original Message -----
From: "Joseph Pingenot" <[email protected]>
To: <[email protected]>
Sent: Tuesday, December 03, 2002 2:09 PM
Subject: [ide-scsi] "structure has no member named `tag'"

Quoted 3 lines

Found this on 2.5.50+bk3

gcc -Wp,-MD,drivers/scsi/.ide-scsi.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno -common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6 -Iarch/i386/mach-generic -nostdinc -iwithprefix
include -DMODULE -DKBUILD_BASENAME=ide_scsi -DKBUILD_MODNAME=ide_scsi -c -o drivers/scsi/ide-scsi.o drivers/scsi/ide-scsi.c

Quoted 17 lines

drivers/scsi/ide-scsi.c: In function `should_transform':
drivers/scsi/ide-scsi.c:767: structure has no member named `tag' make[2]: *** [drivers/scsi/ide-scsi.o] Error 1 make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

-- Joseph===============================================trelane@digitasaru.net "I use Linux and it makes me feel safer knowing exactly what security
problems my boxen are facing. If I wanted filtered information or a public relations a** kissing, I'd use Microsoft products." --dattaway, on /.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 4 lines · Rusty Lynch [[email protected]] wrote:

There was a discussion on this at
http://marc.theaimsgroup.com/?t=103861087100001&r=1&w=2

To get past this you can just change the line to compare ->name instead ->tag until the real fix lands.

You can use this patch until the real one comes out.

-andmike
--
Michael Anderson
[email protected]

drivers/scsi/ide-scsi.c +1 -1
@@ -764,7 +764,7 @@
 
 	if (disk) {
 		struct Scsi_Device_Template **p = disk->private_data;
-		if (strcmp((*p)->tag, "sg") == 0)
+		if (strcmp((*p)->scsi_driverfs_driver.name, "sg") == 0)
 			return test_bit(IDESCSI_SG_TRANSFORM, &scsi->transform);
 	}
 	return test_bit(IDESCSI_TRANSFORM, &scsi->transform);