Commit 57af2be
committed
ioctl: Rearrange members in nvme_virtual_mgmt_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_virtual_mgmt_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
enum nvme_virt_mgmt_act act; /* 20 4 */
enum nvme_virt_mgmt_rt rt; /* 24 4 */
__u16 cntlid; /* 28 2 */
__u16 nr; /* 30 2 */
/* size: 32, cachelines: 1, members: 8 */
/* last cacheline: 32 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent f621fb5 commit 57af2be
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3507 | 3507 | | |
3508 | 3508 | | |
3509 | 3509 | | |
| 3510 | + | |
| 3511 | + | |
3510 | 3512 | | |
3511 | 3513 | | |
3512 | 3514 | | |
3513 | 3515 | | |
3514 | | - | |
3515 | | - | |
3516 | 3516 | | |
3517 | 3517 | | |
3518 | 3518 | | |
3519 | 3519 | | |
| 3520 | + | |
| 3521 | + | |
3520 | 3522 | | |
3521 | 3523 | | |
3522 | 3524 | | |
3523 | 3525 | | |
3524 | | - | |
3525 | | - | |
3526 | | - | |
| 3526 | + | |
3527 | 3527 | | |
3528 | 3528 | | |
3529 | 3529 | | |
| |||
0 commit comments