Commit 727b8b0
committed
ioctl: Rearrange members in nvme_zns_mgmt_recv_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_recv_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_recv_action zra; /* 32 4 */
__u32 data_len; /* 36 4 */
void * data; /* 40 8 */
__u16 zrasf; /* 48 2 */
_Bool zras_feat; /* 50 1 */
/* size: 56, cachelines: 1, members: 11 */
/* padding: 5 */
/* last cacheline: 56 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent a335603 commit 727b8b0
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3976 | 3976 | | |
3977 | 3977 | | |
3978 | 3978 | | |
| 3979 | + | |
| 3980 | + | |
3979 | 3981 | | |
3980 | 3982 | | |
3981 | 3983 | | |
3982 | | - | |
3983 | | - | |
3984 | 3984 | | |
3985 | 3985 | | |
3986 | | - | |
3987 | | - | |
| 3986 | + | |
| 3987 | + | |
3988 | 3988 | | |
3989 | 3989 | | |
3990 | 3990 | | |
3991 | 3991 | | |
| 3992 | + | |
| 3993 | + | |
3992 | 3994 | | |
3993 | 3995 | | |
3994 | 3996 | | |
3995 | | - | |
3996 | | - | |
3997 | 3997 | | |
3998 | 3998 | | |
3999 | | - | |
4000 | | - | |
4001 | | - | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
4002 | 4002 | | |
4003 | 4003 | | |
4004 | 4004 | | |
| |||
4034 | 4034 | | |
4035 | 4035 | | |
4036 | 4036 | | |
| 4037 | + | |
| 4038 | + | |
4037 | 4039 | | |
4038 | 4040 | | |
4039 | 4041 | | |
4040 | 4042 | | |
4041 | | - | |
4042 | | - | |
4043 | 4043 | | |
4044 | 4044 | | |
4045 | | - | |
4046 | | - | |
| 4045 | + | |
| 4046 | + | |
4047 | 4047 | | |
4048 | 4048 | | |
4049 | 4049 | | |
| |||
0 commit comments