Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bart Van Assche and committed by
Jens Axboe
53e617e3 16a70534

+1 -5
+1 -5
drivers/block/skd_s1120.h
··· 10 10 #ifndef SKD_S1120_H 11 11 #define SKD_S1120_H 12 12 13 - #pragma pack(push, s1120_h, 1) 14 - 15 13 /* 16 14 * Q-channel, 64-bit r/w 17 15 */ ··· 274 276 uint16_t sks_low; /* 10: Sense Key Specific (LSW) */ 275 277 uint16_t reserved3; /* 12: Part of additional sense bytes (unused) */ 276 278 uint16_t uec; /* 14: Additional Sense Bytes */ 277 - uint64_t per; /* 16: Additional Sense Bytes */ 279 + uint64_t per __packed; /* 16: Additional Sense Bytes */ 278 280 uint8_t reserved4[2]; /* 1E: Additional Sense Bytes (unused) */ 279 281 }; 280 282 ··· 320 322 uint8_t driver_version_length; 321 323 uint8_t driver_version[0x14]; 322 324 }; 323 - 324 - #pragma pack(pop, s1120_h) 325 325 326 326 #endif /* SKD_S1120_H */