mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 19:28:36 +00:00
nvmf: Add explicit alignment for struct nvmf_fabric_cmd
This avoids -Wcast-align warnings from clang when upcasting from struct nvmf_fabric_cmd to struct nvmf_fabric_prop_set_cmd. Reported by: bapt Sponsored by: Chelsio Communications
This commit is contained in:
parent
2d29d2eceb
commit
1d425ef341
|
@ -172,7 +172,7 @@ struct nvmf_fabric_cmd {
|
|||
uint16_t cid;
|
||||
uint8_t fctype;
|
||||
uint8_t reserved2[59];
|
||||
};
|
||||
} __aligned(8);
|
||||
|
||||
struct nvmf_fabric_auth_recv_cmd {
|
||||
uint8_t opcode;
|
||||
|
|
Loading…
Reference in a new issue