Skip to content

ioctl: Initialize all members in nvme_get_log_args#192

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:fix-nvme_get_log_args
Jan 21, 2022
Merged

ioctl: Initialize all members in nvme_get_log_args#192
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:fix-nvme_get_log_args

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Jan 21, 2022

Commit 781b910 ("nvme: Add Media Unit Status log page(LID:
0x10)") introduces a new member in nvme_get_log_args. Older compilers
are not happy when we don't initialize all members in the inline
functions.

In file included from ../subprojects/libnvme/src/libnvme.h:19:0,
from ../subprojects/libnvme/test/cpp.cc:10:
../subprojects/libnvme/src/nvme/ioctl.h: In function ‘int nvme_get_log_cmd_effects(int, nvme_csi, nvme_cmd_effects_log*)’:
../subprojects/libnvme/src/nvme/ioctl.h:1328:2: sorry, unimplemented: non-trivial designated initializers not supported
};

Signed-off-by: Daniel Wagner dwagner@suse.de

Commit 781b910 ("nvme: Add Media Unit Status log page(LID:
0x10)") introduces a new member in nvme_get_log_args. Older compilers
are not happy when we don't initialize all members in the inline
functions.

In file included from ../subprojects/libnvme/src/libnvme.h:19:0,
                 from ../subprojects/libnvme/test/cpp.cc:10:
../subprojects/libnvme/src/nvme/ioctl.h: In function ‘int nvme_get_log_cmd_effects(int, nvme_csi, nvme_cmd_effects_log*)’:
../subprojects/libnvme/src/nvme/ioctl.h:1328:2: sorry, unimplemented: non-trivial designated initializers not supported
  };

Signed-off-by: Daniel Wagner <dwagner@suse.de>
@igaw igaw merged commit 53ab58c into linux-nvme:master Jan 21, 2022
@igaw igaw deleted the fix-nvme_get_log_args branch January 21, 2022 09:46
@igaw
Copy link
Copy Markdown
Collaborator Author

igaw commented Jan 21, 2022

FWIW, updated nvme-cli depenency to libnvme accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants