patch-2.1.87 linux/drivers/scsi/hosts.h
Next file: linux/drivers/scsi/ibmmca.h
Previous file: linux/drivers/scsi/README.Mylex
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon Feb 16 15:34:59 1998
- Orig file:
v2.1.86/linux/drivers/scsi/hosts.h
- Orig date:
Fri Feb 6 15:33:40 1998
diff -u --recursive --new-file v2.1.86/linux/drivers/scsi/hosts.h linux/drivers/scsi/hosts.h
@@ -371,7 +371,13 @@
void (*select_queue_depths)(struct Scsi_Host *, Scsi_Device *);
- unsigned long hostdata[0]; /* Used for storage of host specific stuff */
+ /*
+ * We should ensure that this is aligned, both for better performance
+ * and also because some compilers (m68k) don't automatically force
+ * alignment to a 4-byte boundary.
+ */
+ unsigned long hostdata[0] /* Used for storage of host specific stuff */
+ __attribute__ ((aligned (4)));
};
extern struct Scsi_Host * scsi_hostlist;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov