Commit a335603
committed
ioctl: Rearrange members in nvme_zns_mgmt_send_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_zns_mgmt_send_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
__u64 slba; /* 24 8 */
enum nvme_zns_send_action zsa; /* 32 4 */
__u32 data_len; /* 36 4 */
void * data; /* 40 8 */
_Bool select_all; /* 48 1 */
__u8 zsaso; /* 49 1 */
/* size: 56, cachelines: 1, members: 11 */
/* padding: 6 */
/* last cacheline: 56 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent f5fa119 commit a335603
1 file changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3939 | 3939 | | |
3940 | 3940 | | |
3941 | 3941 | | |
| 3942 | + | |
| 3943 | + | |
3942 | 3944 | | |
3943 | 3945 | | |
3944 | 3946 | | |
3945 | | - | |
3946 | | - | |
3947 | 3947 | | |
3948 | 3948 | | |
3949 | | - | |
3950 | | - | |
| 3949 | + | |
| 3950 | + | |
3951 | 3951 | | |
3952 | 3952 | | |
3953 | 3953 | | |
3954 | 3954 | | |
| 3955 | + | |
| 3956 | + | |
3955 | 3957 | | |
3956 | 3958 | | |
3957 | 3959 | | |
3958 | | - | |
3959 | | - | |
3960 | 3960 | | |
3961 | 3961 | | |
3962 | | - | |
3963 | | - | |
3964 | | - | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
3965 | 3965 | | |
3966 | 3966 | | |
3967 | 3967 | | |
| |||
0 commit comments