summaryrefslogtreecommitdiffstats
path: root/hw/block/nvme-dif.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/block/nvme-dif.c')
-rw-r--r--hw/block/nvme-dif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/block/nvme-dif.c b/hw/block/nvme-dif.c
index 1b628dead7..2038d724bd 100644
--- a/hw/block/nvme-dif.c
+++ b/hw/block/nvme-dif.c
@@ -162,8 +162,8 @@ uint16_t nvme_dif_check(NvmeNamespace *ns, uint8_t *buf, size_t len,
return NVME_SUCCESS;
}
-static uint16_t nvme_dif_mangle_mdata(NvmeNamespace *ns, uint8_t *mbuf,
- size_t mlen, uint64_t slba)
+uint16_t nvme_dif_mangle_mdata(NvmeNamespace *ns, uint8_t *mbuf, size_t mlen,
+ uint64_t slba)
{
BlockBackend *blk = ns->blkconf.blk;
BlockDriverState *bs = blk_bs(blk);