summaryrefslogtreecommitdiffstats
path: root/nvme-rpmb.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-04 12:52:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-04 12:52:51 +0000
commit7552ed51f78ca1ad311228f76e90cf8c120ee2f6 (patch)
treedec5ce8e28f081567cb33c77a178bcac6dd76169 /nvme-rpmb.c
parentAdding upstream version 2.5. (diff)
downloadnvme-cli-7552ed51f78ca1ad311228f76e90cf8c120ee2f6.tar.xz
nvme-cli-7552ed51f78ca1ad311228f76e90cf8c120ee2f6.zip
Adding upstream version 2.6.upstream/2.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'nvme-rpmb.c')
-rw-r--r--nvme-rpmb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nvme-rpmb.c b/nvme-rpmb.c
index 40ddb5b..3dbbbd3 100644
--- a/nvme-rpmb.c
+++ b/nvme-rpmb.c
@@ -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;
}