From 436776b6c022afd4003b76b072ab9e639bd55118 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 21 Apr 2023 14:18:59 +0200 Subject: [PATCH] ioctl: Explicitly initialize all members of struct nvme_ns_mgmt_args Older compilers complain with: ../src/nvme/ioctl.h:3063:2: sorry, unimplemented: non-trivial designated initializers not supported Thus explicitly initialize all members of this data structure. Signed-off-by: Daniel Wagner --- src/nvme/ioctl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nvme/ioctl.h b/src/nvme/ioctl.h index ee451f69..4d843bcd 100644 --- a/src/nvme/ioctl.h +++ b/src/nvme/ioctl.h @@ -3058,6 +3058,8 @@ static inline int nvme_ns_mgmt_create(int fd, struct nvme_id_ns *ns, .nsid = NVME_NSID_NONE, .sel = NVME_NS_MGMT_SEL_CREATE, .csi = csi, + .rsvd1 = { 0, }, + .rsvd2 = NULL, .data = data, }; @@ -3087,6 +3089,9 @@ static inline int nvme_ns_mgmt_delete(int fd, __u32 nsid) .nsid = nsid, .sel = NVME_NS_MGMT_SEL_DELETE, .csi = 0, + .rsvd1 = { 0, }, + .rsvd2 = NULL, + .data = NULL, }; return nvme_ns_mgmt(&args); -- 2.49.0