diff options
author | Selvan Mani <smani@micron.com> | 2012-11-14 06:16:35 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-11-23 14:32:55 +0100 |
commit | 836413e8c78ecbc55aa31f3cb600f8ee1aa355a2 (patch) | |
tree | 23f2725ae9a40af30ace00c532587ada5bc625c9 | |
parent | 11cfb6ff736dc89b0447b8902d6912692303f6af (diff) | |
download | linux-836413e8c78ecbc55aa31f3cb600f8ee1aa355a2.tar.bz2 |
mtip32xx: Fix padding issue
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 <smani@micron.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.h b/drivers/block/mtip32xx/mtip32xx.h index 8498e99666b2..b1742640556a 100644 --- a/drivers/block/mtip32xx/mtip32xx.h +++ b/drivers/block/mtip32xx/mtip32xx.h @@ -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 { |