From f45ac8e3933e281b9cc02c8c71a147290bca6f43 Mon Sep 17 00:00:00 2001 From: Gollu Appalanaidu Date: Wed, 3 Feb 2021 21:57:28 +0530 Subject: [PATCH] nvme: fix get and set features feature-id data type Signed-off-by: Gollu Appalanaidu --- nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvme.c b/nvme.c index f6de23a0..14e0bcd6 100644 --- 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; + __u8 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; + __u8 feature_id; __u32 value; __u32 cdw12; __u32 data_len; -- 2.50.1