Skip to contentSkip to conversation

PATCH and ioctl collision: linux-2.4.10-pre7/drivers/scsi/cpqfcTSinit.c did not compile

PATCH Adam J. Richter 1 participant 1 message Sep 10, 2001 SCSI

lore
Share & tools
lore
#0 lore raw

linux-2.4.10-pre7/drivers/scsi/cpqfcTSinit.c does not compile
becuase it is missing <linux/init.h> and because SCSI_IOCTL_FC_TARGET_ADDRESS and SCSI_IOCTL_FC_TDR are not defined. The following patch fixes that. The scsi ioctl definitions are copied from sources that I found by searching for "SCSI_IOCTL_FC_TARGET_ADDRESS" on google, but I had to renumber SCSI_IOCTL_FC_TARGET_ADDRESS due to a number collision with another scsi ioctl.

Signature · 4 lines
Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
[email protected]     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America
fax +1 408 261-6631      "Free Software For The Rest Of Us."
include/scsi/scsi.h +6 -0
@@ -214,6 +214,12 @@
 /* Used to get the PCI location of a device */
 #define SCSI_IOCTL_GET_PCI 0x5387
 
+/* Used to invoke Target Defice Reset for Fibre Channel */
+#define SCSI_IOCTL_FC_TDR 0x5388
+
+/* Used to get Fibre Channel WWN and port_id from device */
+#define SCSI_IOCTL_FC_TARGET_ADDRESS 0x5389
+
 /*
  * Overrides for Emacs so that we follow Linus's tabbing style.
  * Emacs will notice this stuff at the end of the file and automatically
drivers/scsi/cpqfcTSinit.c +1 -0
@@ -63,6 +63,7 @@
 
 #include <linux/config.h>  
 #include <linux/module.h>
+#include <linux/init.h>
 #include <linux/version.h> 
 
 /* Embedded module documentation macros - see module.h */