Commit 15a2a84
committed
ioctl: Rearrange members in nvme_get_lba_status_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_get_lba_status_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
__u32 mndw; /* 24 4 */
enum nvme_lba_status_atype atype; /* 28 4 */
__u64 slba; /* 32 8 */
struct nvme_lba_status * lbas; /* 40 8 */
__u16 rl; /* 48 2 */
/* size: 50, cachelines: 1, members: 10 */
/* last cacheline: 50 bytes */
} __attribute__((__packed__));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 355ca20 commit 15a2a84
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3009 | 3009 | | |
3010 | 3010 | | |
3011 | 3011 | | |
| 3012 | + | |
| 3013 | + | |
3012 | 3014 | | |
3013 | | - | |
3014 | 3015 | | |
3015 | 3016 | | |
3016 | | - | |
3017 | | - | |
3018 | | - | |
| 3017 | + | |
| 3018 | + | |
3019 | 3019 | | |
3020 | | - | |
| 3020 | + | |
3021 | 3021 | | |
3022 | 3022 | | |
3023 | 3023 | | |
3024 | 3024 | | |
| 3025 | + | |
| 3026 | + | |
3025 | 3027 | | |
3026 | | - | |
3027 | 3028 | | |
3028 | | - | |
3029 | 3029 | | |
3030 | | - | |
| 3030 | + | |
3031 | 3031 | | |
3032 | | - | |
3033 | | - | |
| 3032 | + | |
| 3033 | + | |
3034 | 3034 | | |
3035 | 3035 | | |
3036 | 3036 | | |
| |||
0 commit comments