Commit 301c99e
committed
ioctl: Rearrange members in nvme_capacity_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_capacity_mgmt_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 cdw11; /* 20 4 */
__u32 cdw12; /* 24 4 */
__u16 element_id; /* 28 2 */
__u8 op; /* 30 1 */
/* size: 56, cachelines: 1, members: 11 */
/* padding: 6 */
/* last cacheline: 56 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent f283430 commit 301c99e
1 file changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3177 | 3177 | | |
3178 | 3178 | | |
3179 | 3179 | | |
3180 | | - | |
| 3180 | + | |
3181 | 3181 | | |
3182 | 3182 | | |
3183 | 3183 | | |
| |||
3305 | 3305 | | |
3306 | 3306 | | |
3307 | 3307 | | |
3308 | | - | |
3309 | | - | |
3310 | 3308 | | |
3311 | 3309 | | |
3312 | 3310 | | |
3313 | 3311 | | |
3314 | | - | |
3315 | 3312 | | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
3316 | 3316 | | |
3317 | 3317 | | |
3318 | 3318 | | |
3319 | 3319 | | |
3320 | | - | |
3321 | | - | |
| 3320 | + | |
| 3321 | + | |
3322 | 3322 | | |
3323 | 3323 | | |
3324 | | - | |
3325 | | - | |
3326 | | - | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
3327 | 3327 | | |
3328 | 3328 | | |
3329 | 3329 | | |
| |||
0 commit comments