]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-rpmb: Fix nvme_show_id_ctrl_rpmbs() definition error
authorTokunori Ikegami <ikegami.t@gmail.com>
Wed, 2 Aug 2023 15:21:06 +0000 (00:21 +0900)
committerDaniel Wagner <wagi@monom.org>
Tue, 8 Aug 2023 07:15:38 +0000 (09:15 +0200)
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
nvme-print.h
nvme-rpmb.c

index 638a2b6f9e15d48174831cfb052a6a4ca3f9bb6c..c32397cf4f4d29da3a233903c30034a77314bdc6 100644 (file)
@@ -116,6 +116,7 @@ void nvme_show_relatives(const char *name);
 void nvme_show_id_iocs(struct nvme_id_iocs *iocs, enum nvme_print_flags flags);
 void nvme_show_id_ctrl(struct nvme_id_ctrl *ctrl, enum nvme_print_flags flags,
        void (*vendor_show)(__u8 *vs, struct json_object *root));
+void nvme_show_id_ctrl_rpmbs(__le32 ctrl_rpmbs, enum nvme_print_flags flags);
 void nvme_show_id_ns(struct nvme_id_ns *ns, unsigned int nsid,
                unsigned int lba_index, bool cap_only, enum nvme_print_flags flags);
 void nvme_show_cmd_set_independent_id_ns(
index 40ddb5b2e39a35b4202128feaa49881abc2519b1..3dbbbd3822067717978fea8dad4f5d3f47e84723 100644 (file)
@@ -32,6 +32,7 @@
 #include "common.h"
 #include "nvme.h"
 #include "libnvme.h"
+#include "nvme-print.h"
 
 #define CREATE_CMD
 
@@ -48,7 +49,6 @@
 #define HMAC_SHA256_HASH_SIZE          32
 #define MD5_HASH_HASH_SIZE             16
 
-extern int nvme_show_id_ctrl_rpmbs(unsigned int);
 /*
  * Utility function to create hash value of given data (with given key) using
  * given hash algorithm; this function uses kernel crypto services
@@ -903,7 +903,7 @@ int rpmb_cmd_option(int argc, char **argv, struct command *cmd, struct plugin *p
        
        /* parse and validate options; default print rpmb support info */
        if (cfg.cmd == 0 || strcmp(cfg.cmd, "info") == 0) {
-               nvme_show_id_ctrl_rpmbs(regs.rpmbs);
+               nvme_show_id_ctrl_rpmbs(regs.rpmbs, 0);
                goto out;
        }