Commit b289574
committed
ioctl: Rearrange members in nvme_fw_commit_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_fw_commit_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
enum nvme_fw_commit_ca action; /* 20 4 */
__u8 slot; /* 24 1 */
_Bool bpid; /* 25 1 */
/* size: 32, cachelines: 1, members: 7 */
/* padding: 6 */
/* last cacheline: 32 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 46a2473 commit b289574
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2892 | 2892 | | |
2893 | 2893 | | |
2894 | 2894 | | |
2895 | | - | |
2896 | 2895 | | |
2897 | | - | |
2898 | 2896 | | |
2899 | 2897 | | |
| 2898 | + | |
| 2899 | + | |
2900 | 2900 | | |
2901 | 2901 | | |
2902 | 2902 | | |
2903 | 2903 | | |
2904 | | - | |
| 2904 | + | |
| 2905 | + | |
2905 | 2906 | | |
| 2907 | + | |
2906 | 2908 | | |
2907 | | - | |
2908 | | - | |
2909 | | - | |
| 2909 | + | |
2910 | 2910 | | |
2911 | 2911 | | |
2912 | 2912 | | |
| |||
0 commit comments