Skip to contentSkip to conversation

mtip32xx: Fix padding issue

PATCH Applied Selvan Mani 2 participants 2 messages Nov 14, 2012 1 message not in the archive Block layer

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Jens,

Another tiny patch.

Removed __packed before the struct smart_attr and added __packed at end of the structure to fix padding issue.

---
 drivers/block/mtip32xx/mtip32xx.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/block/mtip32xx/mtip32xx.h +2 -2
index 5f4a917..1e5b1d3 100644
@@ -155,14 +155,14 @@ enum {
 	MTIP_DDF_REBUILD_FAILED_BIT = 8,
 };
 
-__packed struct smart_attr{
+struct smart_attr {
 	u8 attr_id;
 	u16 flags;
 	u8 cur;
 	u8 worst;
 	u32 data;
 	u8 res[3];
-};
+} __packed;
 
 /* Register Frame Information Structure (FIS), host to device. */
 struct host_to_dev_fis {
Signature · 1 line
1.7.1
maintainer Applied
#2 lore raw
Quoted 6 lines · Selvan Mani

Hi Jens,

Another tiny patch.

Removed __packed before the struct smart_attr and added __packed at end of the structure to fix padding issue.

Thanks, applied.

Signature · 1 line
Jens Axboe