Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: megaraid_sas: Update structures for HOST_DEVICE_LIST DCMD

Add padding to make the structure variables in MR_HOST_DEVICE_LIST_ENTRY
64-bit aligned. Also, add reserved fields to MR_HOST_DEVICE_LIST for
future firmware usage.

Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Shivasharan S and committed by
Martin K. Petersen
a3742d68 fad28e3d

+2 -1
+2 -1
drivers/scsi/megaraid/megaraid_sas.h
··· 807 807 } flags; 808 808 u8 scsi_type; 809 809 __le16 target_id; 810 - u8 reserved[2]; 810 + u8 reserved[4]; 811 811 __le64 sas_addr[2]; 812 812 } __packed; 813 813 814 814 struct MR_HOST_DEVICE_LIST { 815 815 __le32 size; 816 816 __le32 count; 817 + __le32 reserved[2]; 817 818 struct MR_HOST_DEVICE_LIST_ENTRY host_device_list[1]; 818 819 } __packed; 819 820