Skip to content

Commit 53e617e

Browse files
KAGA-KOKOaxboe
authored andcommitted
skd: Use __packed only when needed
Since needless use of __packed slows down access to data structures, only use __packed when needed. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Cc: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 16a7053 commit 53e617e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/block/skd_s1120.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#ifndef SKD_S1120_H
1111
#define SKD_S1120_H
1212

13-
#pragma pack(push, s1120_h, 1)
14-
1513
/*
1614
* Q-channel, 64-bit r/w
1715
*/
@@ -276,7 +274,7 @@ struct fit_comp_error_info {
276274
uint16_t sks_low; /* 10: Sense Key Specific (LSW) */
277275
uint16_t reserved3; /* 12: Part of additional sense bytes (unused) */
278276
uint16_t uec; /* 14: Additional Sense Bytes */
279-
uint64_t per; /* 16: Additional Sense Bytes */
277+
uint64_t per __packed; /* 16: Additional Sense Bytes */
280278
uint8_t reserved4[2]; /* 1E: Additional Sense Bytes (unused) */
281279
};
282280

@@ -323,6 +321,4 @@ struct driver_inquiry_data {
323321
uint8_t driver_version[0x14];
324322
};
325323

326-
#pragma pack(pop, s1120_h)
327-
328324
#endif /* SKD_S1120_H */

0 commit comments

Comments
 (0)