Skip to content

Commit

Permalink
mtip32xx: Fix padding issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Selvan Mani authored and Jens Axboe committed Nov 23, 2012
1 parent 11cfb6f commit 836413e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/mtip32xx/mtip32xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 836413e

Please sign in to comment.