Commit bd6f919
committed
ioctl: Rearrange members in nvme_security_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_security_send_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 tl; /* 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 b289574 commit bd6f919
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2924 | 2924 | | |
2925 | 2925 | | |
2926 | 2926 | | |
| 2927 | + | |
| 2928 | + | |
2927 | 2929 | | |
2928 | 2930 | | |
2929 | 2931 | | |
2930 | 2932 | | |
2931 | 2933 | | |
2932 | 2934 | | |
2933 | | - | |
2934 | 2935 | | |
2935 | | - | |
2936 | | - | |
| 2936 | + | |
2937 | 2937 | | |
2938 | 2938 | | |
2939 | 2939 | | |
2940 | 2940 | | |
| 2941 | + | |
| 2942 | + | |
2941 | 2943 | | |
2942 | 2944 | | |
2943 | 2945 | | |
2944 | 2946 | | |
2945 | 2947 | | |
2946 | 2948 | | |
2947 | | - | |
2948 | 2949 | | |
2949 | | - | |
2950 | | - | |
2951 | | - | |
| 2950 | + | |
| 2951 | + | |
2952 | 2952 | | |
2953 | 2953 | | |
2954 | 2954 | | |
| |||
0 commit comments