Commit fe068c6
committed
ioctl: Rearrange members in nvme_ns_mgmt_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_ns_mgmt_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
struct nvme_id_ns * ns; /* 24 8 */
enum nvme_ns_mgmt_sel sel; /* 32 4 */
__u8 csi; /* 36 1 */
/* size: 40, cachelines: 1, members: 8 */
/* padding: 3 */
/* last cacheline: 40 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 91eb974 commit fe068c6
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2693 | 2693 | | |
2694 | 2694 | | |
2695 | 2695 | | |
2696 | | - | |
2697 | | - | |
2698 | | - | |
2699 | 2696 | | |
2700 | 2697 | | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
2701 | 2701 | | |
2702 | 2702 | | |
2703 | 2703 | | |
2704 | 2704 | | |
2705 | 2705 | | |
2706 | | - | |
2707 | | - | |
2708 | | - | |
2709 | 2706 | | |
2710 | 2707 | | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
2711 | 2711 | | |
2712 | | - | |
| 2712 | + | |
2713 | 2713 | | |
2714 | 2714 | | |
2715 | 2715 | | |
| |||
2739 | 2739 | | |
2740 | 2740 | | |
2741 | 2741 | | |
2742 | | - | |
2743 | | - | |
2744 | | - | |
2745 | 2742 | | |
2746 | 2743 | | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
2747 | 2747 | | |
2748 | 2748 | | |
2749 | 2749 | | |
| |||
2767 | 2767 | | |
2768 | 2768 | | |
2769 | 2769 | | |
2770 | | - | |
2771 | | - | |
2772 | | - | |
2773 | 2770 | | |
2774 | 2771 | | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
2775 | 2775 | | |
2776 | 2776 | | |
2777 | 2777 | | |
| |||
0 commit comments