Commit 355ca20
committed
ioctl: Rearrange members in nvme_security_receive_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_security_receive_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
__u8 nssf; /* 24 1 */
__u8 spsp0; /* 25 1 */
__u8 spsp1; /* 26 1 */
__u8 secp; /* 27 1 */
__u32 al; /* 28 4 */
void * data; /* 32 8 */
__u32 data_len; /* 40 4 */
/* size: 48, cachelines: 1, members: 12 */
/* padding: 4 */
/* last cacheline: 48 bytes */
} __attribute__((__aligned__(8)));
Signed-off-by: Daniel Wagner <[email protected]>1 parent bd6f919 commit 355ca20
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2971 | 2971 | | |
2972 | 2972 | | |
2973 | 2973 | | |
| 2974 | + | |
| 2975 | + | |
2974 | 2976 | | |
2975 | 2977 | | |
2976 | 2978 | | |
2977 | 2979 | | |
2978 | 2980 | | |
2979 | 2981 | | |
2980 | | - | |
2981 | 2982 | | |
2982 | | - | |
2983 | | - | |
| 2983 | + | |
2984 | 2984 | | |
2985 | 2985 | | |
2986 | 2986 | | |
2987 | 2987 | | |
| 2988 | + | |
| 2989 | + | |
2988 | 2990 | | |
2989 | 2991 | | |
2990 | 2992 | | |
2991 | 2993 | | |
2992 | 2994 | | |
2993 | 2995 | | |
2994 | | - | |
2995 | 2996 | | |
2996 | | - | |
2997 | | - | |
2998 | | - | |
| 2997 | + | |
| 2998 | + | |
2999 | 2999 | | |
3000 | 3000 | | |
3001 | 3001 | | |
| |||
0 commit comments