Commit 91eb974
committed
ioctl: Rearrange members in nvme_format_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_format_nvm_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
enum nvme_cmd_format_mset mset; /* 24 4 */
enum nvme_cmd_format_pi pi; /* 28 4 */
enum nvme_cmd_format_pil pil; /* 32 4 */
enum nvme_cmd_format_ses ses; /* 36 4 */
__u8 lbaf; /* 40 1 */
/* size: 48, cachelines: 1, members: 10 */
/* padding: 7 */
/* last cacheline: 48 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 4a1fefa commit 91eb974
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2653 | 2653 | | |
2654 | 2654 | | |
2655 | 2655 | | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
2656 | 2659 | | |
2657 | | - | |
2658 | 2660 | | |
2659 | 2661 | | |
2660 | 2662 | | |
2661 | 2663 | | |
2662 | | - | |
2663 | | - | |
2664 | | - | |
| 2664 | + | |
2665 | 2665 | | |
2666 | 2666 | | |
2667 | 2667 | | |
2668 | 2668 | | |
| 2669 | + | |
| 2670 | + | |
2669 | 2671 | | |
2670 | | - | |
2671 | 2672 | | |
2672 | 2673 | | |
2673 | 2674 | | |
2674 | 2675 | | |
2675 | | - | |
2676 | | - | |
2677 | | - | |
| 2676 | + | |
| 2677 | + | |
2678 | 2678 | | |
2679 | 2679 | | |
2680 | 2680 | | |
| |||
0 commit comments