Commit 65d2d83
committed
ioctl: Rearrange members in nvme_lockdown_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_lockdown_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u8 scp; /* 20 1 */
__u8 prhbt; /* 21 1 */
__u8 ifc; /* 22 1 */
__u8 ofi; /* 23 1 */
__u8 uuidx; /* 24 1 */
/* size: 32, cachelines: 1, members: 8 */
/* padding: 1 */
/* last cacheline: 32 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 301c99e commit 65d2d83
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3323 | 3323 | | |
3324 | 3324 | | |
3325 | 3325 | | |
3326 | | - | |
| 3326 | + | |
3327 | 3327 | | |
3328 | 3328 | | |
3329 | 3329 | | |
| |||
3337 | 3337 | | |
3338 | 3338 | | |
3339 | 3339 | | |
| 3340 | + | |
| 3341 | + | |
3340 | 3342 | | |
3341 | 3343 | | |
3342 | 3344 | | |
3343 | 3345 | | |
3344 | 3346 | | |
3345 | | - | |
3346 | | - | |
3347 | 3347 | | |
3348 | 3348 | | |
3349 | 3349 | | |
3350 | 3350 | | |
| 3351 | + | |
| 3352 | + | |
3351 | 3353 | | |
3352 | 3354 | | |
3353 | 3355 | | |
3354 | 3356 | | |
3355 | 3357 | | |
3356 | | - | |
3357 | | - | |
3358 | | - | |
| 3358 | + | |
3359 | 3359 | | |
3360 | 3360 | | |
3361 | 3361 | | |
| |||
0 commit comments