Skip to content

Commit 5ef7c4b

Browse files
committed
nvme: Fix linux kernel check patch errors and warnings
The fix included for the get-reg and set-reg commands changes also. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 17d44cd commit 5ef7c4b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

nvme.c

+7-3
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ static int get_smart_log(int argc, char **argv, struct command *cmd, struct plug
544544
"(default) or binary.";
545545

546546
_cleanup_free_ struct nvme_smart_log *smart_log = NULL;
547+
547548
_cleanup_nvme_dev_ struct nvme_dev *dev = NULL;
548549
const char *namespace = "(optional) desired namespace";
549550
enum nvme_print_flags flags;
@@ -606,7 +607,7 @@ static int get_ana_log(int argc, char **argv, struct command *cmd,
606607
"decoded format (default), json or binary.";
607608
const char *groups = "Return ANA groups only.";
608609

609-
_cleanup_nvme_dev_ struct nvme_dev *dev= NULL;
610+
_cleanup_nvme_dev_ struct nvme_dev *dev = NULL;
610611
_cleanup_free_ struct nvme_id_ctrl *ctrl = NULL;
611612
_cleanup_free_ void *ana_log = NULL;
612613
size_t ana_log_len;
@@ -1494,6 +1495,7 @@ static int get_persistent_event_log(int argc, char **argv,
14941495

14951496
_cleanup_free_ struct nvme_persistent_event_log *pevent_collected = NULL;
14961497
_cleanup_free_ struct nvme_persistent_event_log *pevent = NULL;
1498+
14971499
_cleanup_huge_ struct nvme_mem_huge mh = { 0, };
14981500
_cleanup_nvme_dev_ struct nvme_dev *dev = NULL;
14991501
enum nvme_print_flags flags;
@@ -5637,6 +5639,7 @@ static int get_register(int argc, char **argv, struct command *cmd, struct plugi
56375639
int err;
56385640
enum nvme_print_flags flags;
56395641
bool fabrics = false;
5642+
56405643
_cleanup_nvme_root_ nvme_root_t r = NULL;
56415644
void *bar;
56425645

@@ -5786,8 +5789,8 @@ static void set_register_value(void *bar, struct argconfig_commandline_options *
57865789
}
57875790
}
57885791

5789-
static int set_register_check(struct argconfig_commandline_options *opts, struct set_reg_config *cfg,
5790-
int offset)
5792+
static int set_register_check(struct argconfig_commandline_options *opts,
5793+
struct set_reg_config *cfg, int offset)
57915794
{
57925795
bool flag = false;
57935796

@@ -5973,6 +5976,7 @@ static int set_register(int argc, char **argv, struct command *cmd, struct plugi
59735976

59745977
_cleanup_nvme_dev_ struct nvme_dev *dev = NULL;
59755978
int err;
5979+
59765980
_cleanup_nvme_root_ nvme_root_t r = NULL;
59775981
void *bar;
59785982

0 commit comments

Comments
 (0)