Commit f621fb5
committed
ioctl: Rearrange members in nvme_sanitize_nvm_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_sanitize_nvm_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
enum nvme_sanitize_sanact sanact; /* 20 4 */
_Bool ause; /* 24 1 */
__u8 owpass; /* 25 1 */
_Bool oipbp; /* 26 1 */
_Bool nodas; /* 27 1 */
__u32 ovrpat; /* 28 4 */
/* size: 32, cachelines: 1, members: 6 */
/* padding: 4 */
/* last cacheline: 32 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 425b9ce commit f621fb5
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3425 | 3425 | | |
3426 | 3426 | | |
3427 | 3427 | | |
| 3428 | + | |
| 3429 | + | |
3428 | 3430 | | |
3429 | 3431 | | |
3430 | 3432 | | |
3431 | 3433 | | |
3432 | 3434 | | |
3433 | 3435 | | |
3434 | | - | |
3435 | | - | |
3436 | 3436 | | |
3437 | 3437 | | |
3438 | 3438 | | |
3439 | 3439 | | |
| 3440 | + | |
| 3441 | + | |
3440 | 3442 | | |
3441 | 3443 | | |
3442 | 3444 | | |
3443 | 3445 | | |
3444 | 3446 | | |
3445 | 3447 | | |
3446 | | - | |
3447 | | - | |
3448 | | - | |
| 3448 | + | |
3449 | 3449 | | |
3450 | 3450 | | |
3451 | 3451 | | |
| |||
3477 | 3477 | | |
3478 | 3478 | | |
3479 | 3479 | | |
| 3480 | + | |
| 3481 | + | |
3480 | 3482 | | |
3481 | 3483 | | |
3482 | | - | |
3483 | | - | |
3484 | | - | |
| 3484 | + | |
3485 | 3485 | | |
3486 | 3486 | | |
3487 | 3487 | | |
| |||
0 commit comments