Commit f824455
committed
ioctl: Rearrange members in nvme_directive_send_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_directive_send_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
enum nvme_directive_send_doper doper; /* 24 4 */
enum nvme_directive_dtype dtype; /* 28 4 */
__u32 cdw12; /* 32 4 */
__u32 data_len; /* 36 4 */
void * data; /* 40 8 */
__u16 dspec; /* 48 2 */
/* size: 56, cachelines: 1, members: 10 */
/* padding: 6 */
/* last cacheline: 56 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 15a2a84 commit f824455
1 file changed
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3030 | 3030 | | |
3031 | 3031 | | |
3032 | 3032 | | |
3033 | | - | |
| 3033 | + | |
3034 | 3034 | | |
3035 | 3035 | | |
3036 | 3036 | | |
| |||
3047 | 3047 | | |
3048 | 3048 | | |
3049 | 3049 | | |
| 3050 | + | |
| 3051 | + | |
3050 | 3052 | | |
3051 | | - | |
3052 | 3053 | | |
3053 | 3054 | | |
3054 | 3055 | | |
3055 | 3056 | | |
3056 | | - | |
3057 | | - | |
3058 | | - | |
| 3057 | + | |
3059 | 3058 | | |
3060 | 3059 | | |
3061 | 3060 | | |
3062 | 3061 | | |
| 3062 | + | |
| 3063 | + | |
3063 | 3064 | | |
3064 | | - | |
3065 | 3065 | | |
3066 | 3066 | | |
3067 | 3067 | | |
3068 | 3068 | | |
3069 | 3069 | | |
3070 | | - | |
3071 | | - | |
3072 | | - | |
| 3070 | + | |
| 3071 | + | |
3073 | 3072 | | |
3074 | 3073 | | |
3075 | 3074 | | |
| |||
3112 | 3111 | | |
3113 | 3112 | | |
3114 | 3113 | | |
| 3114 | + | |
| 3115 | + | |
3115 | 3116 | | |
3116 | | - | |
3117 | 3117 | | |
3118 | 3118 | | |
3119 | 3119 | | |
3120 | 3120 | | |
3121 | 3121 | | |
3122 | | - | |
3123 | | - | |
| 3122 | + | |
3124 | 3123 | | |
3125 | 3124 | | |
3126 | 3125 | | |
| |||
3139 | 3138 | | |
3140 | 3139 | | |
3141 | 3140 | | |
| 3141 | + | |
| 3142 | + | |
3142 | 3143 | | |
3143 | | - | |
3144 | 3144 | | |
3145 | 3145 | | |
3146 | 3146 | | |
3147 | 3147 | | |
3148 | 3148 | | |
3149 | | - | |
3150 | | - | |
| 3149 | + | |
3151 | 3150 | | |
3152 | 3151 | | |
3153 | 3152 | | |
| |||
0 commit comments