mtip32xx: Fix padding issue
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Jens,
Another tiny patch.
Removed __packed before the struct smart_attr and added __packed at end of the structure to fix padding issue.
Signed-off-by Selvan Mani <[email protected]>
Signed-off-by Asai Thambi S P <[email protected]>
--- drivers/block/mtip32xx/mtip32xx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/block/mtip32xx/mtip32xx.h +2 -2
@@ -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
Quoted 6 lines · Selvan Mani
Hi Jens,
Another tiny patch.
Removed
__packedbefore the structsmart_attrand added__packedat end of the structure to fix padding issue.
Thanks, applied.
Signature · 1 line
Jens Axboe