diff --git a/lib/scsi/scsi_bdev.c b/lib/scsi/scsi_bdev.c index 127391eca..e135296e0 100644 --- a/lib/scsi/scsi_bdev.c +++ b/lib/scsi/scsi_bdev.c @@ -34,12 +34,6 @@ #include "scsi_internal.h" -/* - * TODO: move bdev SCSI error code translation tests to bdev unit test - * and remove this include. - */ -#include "spdk/bdev_module.h" - #include "spdk/env.h" #include "spdk/bdev.h" #include "spdk/endian.h" diff --git a/test/unit/lib/scsi/scsi_bdev.c/scsi_bdev_ut.c b/test/unit/lib/scsi/scsi_bdev.c/scsi_bdev_ut.c index 3e1705477..195ed8be9 100644 --- a/test/unit/lib/scsi/scsi_bdev.c/scsi_bdev_ut.c +++ b/test/unit/lib/scsi/scsi_bdev.c/scsi_bdev_ut.c @@ -40,6 +40,7 @@ #include "spdk_cunit.h" #include "spdk_internal/mock.h" +#include "spdk/bdev_module.h" SPDK_LOG_REGISTER_COMPONENT(scsi)