Skip to contentSkip to conversation

megaraid annotation

PATCH New [email protected] 1 participant 1 message Aug 31, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 megaraid annotation

[Sorry about duplicate - forgot to Cc it to linux-scsi first time]

----

drivers/scsi/megaraid/megaraid_ioctl.h +2 -2
diff -urN RC9-rc1-bk7-eicon/drivers/scsi/megaraid/megaraid_ioctl.h RC9-rc1-bk7-megaraid/drivers/scsi/megaraid/megaraid_ioctl.h
@@ -130,9 +130,9 @@
 	uint8_t			reserved[128];
 
 /* Driver Data: */
-	caddr_t			user_data;
+	void __user *		user_data;
 	uint32_t		user_data_len;
-	mraid_passthru_t	*user_pthru;
+	mraid_passthru_t	__user *user_pthru;
 
 	mraid_passthru_t	*pthru32;
 	dma_addr_t		pthru32_h;
drivers/scsi/megaraid/megaraid_mm.c +22 -21

147 lines not on this page · raw message

drivers/scsi/megaraid/megaraid_mm.h +4 -4
diff -urN RC9-rc1-bk7-eicon/drivers/scsi/megaraid/megaraid_mm.h RC9-rc1-bk7-megaraid/drivers/scsi/megaraid/megaraid_mm.h
@@ -74,11 +74,11 @@
 			uint8_t subopcode;
 			uint16_t adapno;
 #if BITS_PER_LONG == 32
-			uint8_t *buffer;
+			uint8_t __user *buffer;
 			uint8_t pad[4];
 #endif
 #if BITS_PER_LONG == 64
-			uint8_t *buffer;
+			uint8_t __user *buffer;
 #endif
 			uint32_t length;
 		} __attribute__ ((packed)) fcs;
@@ -88,11 +88,11 @@
 	mraid_passthru_t pthru;
 
 #if BITS_PER_LONG == 32
-	char *data;		/* buffer <= 4096 for 0x80 commands */
+	char __user *data;		/* buffer <= 4096 for 0x80 commands */
 	char pad[4];
 #endif
 #if BITS_PER_LONG == 64
-	char *data;
+	char __user *data;
 #endif
 
 } __attribute__ ((packed))mimd_t;