[PATCH] 2.5.44 INI-A100U2W compilation fix

John W Fort (johnf@whitsunday.net.au)
Sun, 20 Oct 2002 17:57:16 +1000


In patch-2.5.44 Mike Anderson <andmike@us.ibm.com> made a cleanup to the
Scsi Host setup.

This caused the following errors on trying to compile.

drivers/scsi/inia100.c:98: unknown field `next' specified in initializer
drivers/scsi/inia100.c:98: warning: missing braces around initializer
drivers/scsi/inia100.c:98: warning: (near initialization for `driver_template.shtp_list')
drivers/scsi/inia100.c:98: unknown field `module' specified in initializer
drivers/scsi/inia100.c:98: unknown field `proc_name' specified in initializer
drivers/scsi/inia100.c:98: warning: initialization from incompatible pointer type
make[2]: *** [drivers/scsi/inia100.o] Error 1

Several of the drivers Mike modified only had the one-line change to remove
the 'next' field. I tried it and bingo, it works and passed my tests.

The version change is what Doug Ledford intended in patch-2.5.25 back in
June 2002. (See inia100.c "inia100_Version")

--- drivers/scsi/inia100.h.old Sun Oct 20 17:26:31 2002
+++ drivers/scsi/inia100.h Sun Oct 20 17:26:53 2002
@@ -85,10 +85,9 @@

extern int inia100_biosparam(Scsi_Disk *, struct block_device *, int *);

-#define inia100_REVID "Initio INI-A100U2W SCSI device driver; Revision: 1.02c"
+#define inia100_REVID "Initio INI-A100U2W SCSI device driver; Revision: 1.02d"

#define INIA100 { \
- next: NULL, \
module: NULL, \
proc_name: "inia100", \
proc_info: NULL, \

-- 
Just a Fort

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/