Commit 3b3d57a
committed
ioctl: Rearrange members in nvme_copy_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_copy_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
struct nvme_copy_range * copy; /* 24 8 */
__u64 sdlba; /* 32 8 */
__u16 nr; /* 40 2 */
__u16 dspec; /* 42 2 */
__u8 prinfor; /* 44 1 */
__u8 prinfow; /* 45 1 */
__u8 dtype; /* 46 1 */
__u8 format; /* 47 1 */
int lr; /* 48 4 */
int fua; /* 52 4 */
__u32 ilbrt; /* 56 4 */
__u16 lbatm; /* 60 2 */
__u16 lbat; /* 62 2 */
/* size: 64, cachelines: 1, members: 18 */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent e78db5a commit 3b3d57a
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3745 | 3745 | | |
3746 | 3746 | | |
3747 | 3747 | | |
| 3748 | + | |
| 3749 | + | |
3748 | 3750 | | |
3749 | 3751 | | |
3750 | 3752 | | |
3751 | 3753 | | |
| 3754 | + | |
3752 | 3755 | | |
3753 | 3756 | | |
3754 | 3757 | | |
3755 | | - | |
3756 | 3758 | | |
3757 | 3759 | | |
3758 | 3760 | | |
3759 | 3761 | | |
3760 | 3762 | | |
3761 | 3763 | | |
3762 | | - | |
3763 | | - | |
3764 | 3764 | | |
3765 | 3765 | | |
3766 | 3766 | | |
3767 | 3767 | | |
| 3768 | + | |
| 3769 | + | |
3768 | 3770 | | |
3769 | 3771 | | |
3770 | 3772 | | |
3771 | 3773 | | |
| 3774 | + | |
3772 | 3775 | | |
3773 | 3776 | | |
3774 | 3777 | | |
3775 | | - | |
3776 | 3778 | | |
3777 | 3779 | | |
3778 | 3780 | | |
3779 | 3781 | | |
3780 | 3782 | | |
3781 | 3783 | | |
3782 | | - | |
3783 | | - | |
3784 | | - | |
| 3784 | + | |
3785 | 3785 | | |
3786 | 3786 | | |
3787 | 3787 | | |
| |||
0 commit comments