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 <james.r.harris@intel.com>
Change-Id: Iad28f9778ce08b11b52325658583ae9032295f3a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7813
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Michal Berger <michalx.berger@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Jim Harris 2021-05-07 18:14:04 +00:00 committed by Tomasz Zawadzki
parent 8a12e2e715
commit 53447f060f
2 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,6 @@
#include "spdk/trace.h"
#include "spdk/nvmf_spec.h"
#include "spdk/bdev_module.h"
#include "spdk/log.h"
void

View File

@ -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"