Commit f5fa119
committed
ioctl: Rearrange members in nvme_resv_report_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_report_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
struct nvme_resv_status * report; /* 24 8 */
__u32 len; /* 32 4 */
_Bool eds; /* 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 9f6b2bd commit f5fa119
1 file changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3904 | 3904 | | |
3905 | 3905 | | |
3906 | 3906 | | |
| 3907 | + | |
| 3908 | + | |
3907 | 3909 | | |
3908 | | - | |
3909 | | - | |
3910 | 3910 | | |
3911 | 3911 | | |
3912 | | - | |
3913 | | - | |
| 3912 | + | |
| 3913 | + | |
3914 | 3914 | | |
3915 | 3915 | | |
3916 | 3916 | | |
3917 | 3917 | | |
| 3918 | + | |
| 3919 | + | |
3918 | 3920 | | |
3919 | | - | |
3920 | | - | |
3921 | 3921 | | |
3922 | | - | |
3923 | | - | |
3924 | | - | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
3925 | 3925 | | |
3926 | 3926 | | |
3927 | 3927 | | |
| |||
0 commit comments