Commit 425b9ce
committed
ioctl: Rearrange members in nvme_get_property_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_get_property_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u64 * value; /* 8 8 */
__u32 timeout; /* 16 4 */
int offset; /* 20 4 */
/* size: 24, cachelines: 1, members: 5 */
/* last cacheline: 24 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 3bca40d commit 425b9ce
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3398 | 3398 | | |
3399 | 3399 | | |
3400 | 3400 | | |
3401 | | - | |
3402 | 3401 | | |
| 3402 | + | |
3403 | 3403 | | |
3404 | 3404 | | |
3405 | 3405 | | |
3406 | 3406 | | |
3407 | 3407 | | |
3408 | | - | |
3409 | 3408 | | |
3410 | 3409 | | |
3411 | | - | |
| 3410 | + | |
| 3411 | + | |
3412 | 3412 | | |
3413 | 3413 | | |
3414 | 3414 | | |
| |||
0 commit comments