Commit 46a2473
committed
ioctl: Rearrange members in nvme_fw_download_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_download_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 offset; /* 20 4 */
void * data; /* 24 8 */
__u32 data_len; /* 32 4 */
/* size: 40, cachelines: 1, members: 7 */
/* padding: 4 */
/* last cacheline: 40 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 30df2e1 commit 46a2473
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2850 | 2850 | | |
2851 | 2851 | | |
2852 | 2852 | | |
| 2853 | + | |
| 2854 | + | |
2853 | 2855 | | |
2854 | | - | |
2855 | 2856 | | |
2856 | | - | |
2857 | | - | |
| 2857 | + | |
2858 | 2858 | | |
2859 | 2859 | | |
2860 | 2860 | | |
2861 | 2861 | | |
| 2862 | + | |
| 2863 | + | |
2862 | 2864 | | |
2863 | | - | |
2864 | 2865 | | |
2865 | | - | |
2866 | | - | |
2867 | | - | |
| 2866 | + | |
| 2867 | + | |
2868 | 2868 | | |
2869 | 2869 | | |
2870 | 2870 | | |
| |||
0 commit comments