Skip to content

Commit 836413e

Browse files
Selvan Maniaxboe
authored andcommitted
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>
1 parent 11cfb6f commit 836413e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/block/mtip32xx/mtip32xx.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ enum {
155155
MTIP_DDF_REBUILD_FAILED_BIT = 8,
156156
};
157157

158-
__packed struct smart_attr{
158+
struct smart_attr {
159159
u8 attr_id;
160160
u16 flags;
161161
u8 cur;
162162
u8 worst;
163163
u32 data;
164164
u8 res[3];
165-
};
165+
} __packed;
166166

167167
/* Register Frame Information Structure (FIS), host to device. */
168168
struct host_to_dev_fis {

0 commit comments

Comments
 (0)