[PATCH 3/5] aacraid: fix struct element cpu order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Received from Mark Salyzyn.

The compat field needed to be in cpu order.

Applies to the scsi-rc-fixes-2.6 git tree.

Signed-off-by: Mark Haverkamp <markh@xxxxxxxx>

---

Index: scsi-rc-aac-1/drivers/scsi/aacraid/aacraid.h
===================================================================
--- scsi-rc-aac-1.orig/drivers/scsi/aacraid/aacraid.h	2005-10-19 13:03:36.000000000 -0700
+++ scsi-rc-aac-1/drivers/scsi/aacraid/aacraid.h	2005-10-19 13:04:06.000000000 -0700
@@ -1560,7 +1560,7 @@
 
 struct revision
 {
-	__le32 compat;
+	u32 compat;
 	__le32 version;
 	__le32 build;
 };
Index: scsi-rc-aac-1/drivers/scsi/aacraid/commctrl.c
===================================================================
--- scsi-rc-aac-1.orig/drivers/scsi/aacraid/commctrl.c	2005-10-19 13:03:35.000000000 -0700
+++ scsi-rc-aac-1/drivers/scsi/aacraid/commctrl.c	2005-10-19 13:04:06.000000000 -0700
@@ -408,7 +408,7 @@
 	char *driver_version = aac_driver_version;
 	u32 version;
 
-	response.compat = cpu_to_le32(1);
+	response.compat = 1;
 	version = (simple_strtol(driver_version, 
 				&driver_version, 10) << 24) | 0x00000400;
 	version += simple_strtol(driver_version + 1, &driver_version, 10) << 16;

-- 
Mark Haverkamp <markh@xxxxxxxx>

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux