aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-05-06 22:17:43 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-05-06 22:19:39 +0000
commit1d425ef3414cdb0362c982f1820e659f2deb81a3 (patch)
treec2e743f597ca892d2713120e9ca8f9307b771778
parent2d29d2ecebf8ea19221995b3ea2e3a7ac700bf81 (diff)
downloadsrc-1d425ef3414cdb0362c982f1820e659f2deb81a3.tar.gz
src-1d425ef3414cdb0362c982f1820e659f2deb81a3.zip
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
-rw-r--r--sys/dev/nvmf/nvmf_proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nvmf/nvmf_proto.h b/sys/dev/nvmf/nvmf_proto.h
index 66e68ff384b0..f67c34acbf95 100644
--- a/sys/dev/nvmf/nvmf_proto.h
+++ b/sys/dev/nvmf/nvmf_proto.h
@@ -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;