Commit 4a1fefa
committed
ioctl: Rearrange members in nvme_get_features_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_features_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
enum nvme_get_features_sel sel; /* 24 4 */
__u32 cdw11; /* 28 4 */
__u32 data_len; /* 32 4 */
void * data; /* 36 8 */
__u8 fid; /* 44 1 */
__u8 uuidx; /* 45 1 */
/* size: 48, cachelines: 1, members: 11 */
/* padding: 2 */
/* last cacheline: 48 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent 4cc907d commit 4a1fefa
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2231 | 2231 | | |
2232 | 2232 | | |
2233 | 2233 | | |
2234 | | - | |
| 2234 | + | |
| 2235 | + | |
2235 | 2236 | | |
2236 | 2237 | | |
2237 | 2238 | | |
2238 | 2239 | | |
2239 | | - | |
2240 | 2240 | | |
2241 | 2241 | | |
2242 | | - | |
2243 | | - | |
| 2242 | + | |
| 2243 | + | |
2244 | 2244 | | |
2245 | 2245 | | |
2246 | 2246 | | |
2247 | 2247 | | |
2248 | | - | |
| 2248 | + | |
| 2249 | + | |
2249 | 2250 | | |
2250 | 2251 | | |
2251 | 2252 | | |
2252 | | - | |
2253 | 2253 | | |
2254 | 2254 | | |
2255 | | - | |
2256 | | - | |
2257 | | - | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
2258 | 2258 | | |
2259 | 2259 | | |
2260 | 2260 | | |
| |||
2271 | 2271 | | |
2272 | 2272 | | |
2273 | 2273 | | |
2274 | | - | |
| 2274 | + | |
| 2275 | + | |
2275 | 2276 | | |
2276 | 2277 | | |
2277 | 2278 | | |
2278 | | - | |
2279 | 2279 | | |
2280 | 2280 | | |
2281 | | - | |
2282 | | - | |
| 2281 | + | |
| 2282 | + | |
2283 | 2283 | | |
2284 | 2284 | | |
2285 | 2285 | | |
| |||
0 commit comments