Skip to content

Commit b3e7e7d

Browse files
KAGA-KOKOaxboe
authored andcommitted
include/uapi/linux/blkzoned.h: Remove a superfluous __packed directive
Using the __packed directive for a structure that does not need it is wrong because it makes gcc generate suboptimal code on some architectures. Hence remove the __packed directive from the blk_zone_report structure definition. See also http://digitalvampire.org/blog/index.php/2006/07/31/why-you-shouldnt-use-__attribute__packed/. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Cc: Matias Bjorling <mb@lightnvm.io> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent f441108 commit b3e7e7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/uapi/linux/blkzoned.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct blk_zone_report {
117117
__u32 nr_zones;
118118
__u8 reserved[4];
119119
struct blk_zone zones[0];
120-
} __packed;
120+
};
121121

122122
/**
123123
* struct blk_zone_range - BLKRESETZONE ioctl request

0 commit comments

Comments
 (0)