Commit 8347972
committed
ioctl: Rearrange members in nvme_resv_acquire_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_resv_acquire_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
enum nvme_resv_rtype rtype; /* 24 4 */
enum nvme_resv_racqa racqa; /* 28 4 */
__u64 crkey; /* 32 8 */
__u64 nrkey; /* 40 8 */
_Bool iekey; /* 48 1 */
/* size: 56, cachelines: 1, members: 10 */
/* padding: 7 */
/* last cacheline: 56 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 3b3d57a commit 8347972
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3796 | 3796 | | |
3797 | 3797 | | |
3798 | 3798 | | |
| 3799 | + | |
| 3800 | + | |
3799 | 3801 | | |
3800 | 3802 | | |
3801 | 3803 | | |
3802 | | - | |
3803 | 3804 | | |
3804 | 3805 | | |
3805 | | - | |
3806 | | - | |
3807 | | - | |
| 3806 | + | |
| 3807 | + | |
3808 | 3808 | | |
3809 | 3809 | | |
3810 | 3810 | | |
3811 | 3811 | | |
| 3812 | + | |
| 3813 | + | |
3812 | 3814 | | |
3813 | 3815 | | |
3814 | 3816 | | |
3815 | | - | |
3816 | 3817 | | |
3817 | 3818 | | |
3818 | | - | |
3819 | | - | |
3820 | | - | |
| 3819 | + | |
| 3820 | + | |
3821 | 3821 | | |
3822 | 3822 | | |
3823 | 3823 | | |
| |||
0 commit comments