From: Kashyap, Desai Date: Thu, 18 Mar 2010 13:54:20 +0000 (+0530) Subject: [SCSI] mptfusion: Event data alignment with 4 byte. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f18a8927f6779f5dc9dc4327522c8a12f2cf31b9;p=mv-sheeva.git [SCSI] mptfusion: Event data alignment with 4 byte. event_data needs to be 4 byte aligned to makes sure there is no unaligned memory access take place. Signed-off-by: Kashyap Desai Signed-off-by: James Bottomley --- diff --git a/drivers/message/fusion/mptsas.h b/drivers/message/fusion/mptsas.h index 953c2bfcf6a..7b249edbda7 100644 --- a/drivers/message/fusion/mptsas.h +++ b/drivers/message/fusion/mptsas.h @@ -110,7 +110,7 @@ struct fw_event_work { MPT_ADAPTER *ioc; u32 event; u8 retries; - u8 event_data[1]; + u8 __attribute__((aligned(4))) event_data[1]; }; struct mptsas_discovery_event {