Commit e78db5a
committed
ioctl: Rearrange members in nvme_dsm_args
Avoid any holes in the struct by rearranging the members. Also add the
attribute packed to struct definition to reduce ABI breakage.
struct nvme_dsm_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
struct nvme_dsm_range * dsm; /* 24 8 */
__u32 attrs; /* 32 4 */
__u16 nr_ranges; /* 36 2 */
/* size: 40, cachelines: 1, members: 8 */
/* padding: 2 */
/* last cacheline: 40 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent fc93fb6 commit e78db5a
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3709 | 3709 | | |
3710 | 3710 | | |
3711 | 3711 | | |
| 3712 | + | |
| 3713 | + | |
3712 | 3714 | | |
| 3715 | + | |
3713 | 3716 | | |
3714 | 3717 | | |
3715 | | - | |
3716 | | - | |
3717 | | - | |
3718 | 3718 | | |
3719 | 3719 | | |
3720 | 3720 | | |
3721 | 3721 | | |
| 3722 | + | |
| 3723 | + | |
3722 | 3724 | | |
| 3725 | + | |
3723 | 3726 | | |
3724 | 3727 | | |
3725 | | - | |
3726 | | - | |
3727 | | - | |
3728 | | - | |
| 3728 | + | |
3729 | 3729 | | |
3730 | 3730 | | |
3731 | 3731 | | |
| |||
0 commit comments