From 53447f060f30fcf3119f840e09f525529d8625ae Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 7 May 2021 18:14:04 +0000 Subject: [PATCH] nvmf: remove a bdev_module.h #include ctrlr_discovery.c doesn't need this #include. Including it causes bdev_module.h types to be emitted to the debug symbols at least with some compilers, which can result in unwanted abidiff errors. The unit tests do need it, so just include it there instead. Signed-off-by: Jim Harris Change-Id: Iad28f9778ce08b11b52325658583ae9032295f3a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7813 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Michal Berger Reviewed-by: Changpeng Liu Reviewed-by: Aleksey Marchuk Reviewed-by: Shuhei Matsumoto --- lib/nvmf/ctrlr_discovery.c | 1 - test/unit/lib/nvmf/ctrlr_discovery.c/ctrlr_discovery_ut.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvmf/ctrlr_discovery.c b/lib/nvmf/ctrlr_discovery.c index 7e7be6b63..a24538165 100644 --- a/lib/nvmf/ctrlr_discovery.c +++ b/lib/nvmf/ctrlr_discovery.c @@ -44,7 +44,6 @@ #include "spdk/trace.h" #include "spdk/nvmf_spec.h" -#include "spdk/bdev_module.h" #include "spdk/log.h" void diff --git a/test/unit/lib/nvmf/ctrlr_discovery.c/ctrlr_discovery_ut.c b/test/unit/lib/nvmf/ctrlr_discovery.c/ctrlr_discovery_ut.c index a21489a57..ad627818d 100644 --- a/test/unit/lib/nvmf/ctrlr_discovery.c/ctrlr_discovery_ut.c +++ b/test/unit/lib/nvmf/ctrlr_discovery.c/ctrlr_discovery_ut.c @@ -37,6 +37,7 @@ #include "spdk_internal/mock.h" #include "common/lib/test_env.c" +#include "spdk/bdev_module.h" #include "nvmf/ctrlr_discovery.c" #include "nvmf/subsystem.c"