Commit 3bca40d
committed
ioctl: Rearrange members in nvme_set_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_set_property_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
int offset; /* 20 4 */
__u64 value; /* 24 8 */
/* size: 32, cachelines: 1, members: 6 */
/* last cacheline: 32 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 65d2d83 commit 3bca40d
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3369 | 3369 | | |
3370 | 3370 | | |
3371 | 3371 | | |
| 3372 | + | |
| 3373 | + | |
3372 | 3374 | | |
3373 | 3375 | | |
3374 | | - | |
3375 | | - | |
3376 | 3376 | | |
3377 | 3377 | | |
3378 | 3378 | | |
3379 | 3379 | | |
| 3380 | + | |
| 3381 | + | |
3380 | 3382 | | |
3381 | 3383 | | |
3382 | | - | |
3383 | | - | |
3384 | | - | |
| 3384 | + | |
3385 | 3385 | | |
3386 | 3386 | | |
3387 | 3387 | | |
| |||
0 commit comments