]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: fix get and set features feature-id data type
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Wed, 3 Feb 2021 16:27:28 +0000 (21:57 +0530)
committerKeith Busch <kbusch@kernel.org>
Wed, 3 Feb 2021 16:34:11 +0000 (09:34 -0700)
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index f6de23a02366a3f6f0d63d1e5aab320d80a479d6..14e0bcd6a0d74ab89495631fc0722c4089d93dbb 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -2350,7 +2350,7 @@ static int get_feature(int argc, char **argv, struct command *cmd, struct plugin
 
        struct config {
                __u32 namespace_id;
-               __u32 feature_id;
+               __u feature_id;
                __u8  sel;
                __u32 cdw11;
                __u32 data_len;
@@ -3268,7 +3268,7 @@ static int set_feature(int argc, char **argv, struct command *cmd, struct plugin
        struct config {
                char *file;
                __u32 namespace_id;
-               __u32 feature_id;
+               __u feature_id;
                __u32 value;
                __u32 cdw12;
                __u32 data_len;