From c78d4d0b6ce62a9c1f55e43e2791c467055ca13c Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 8 Jun 2016 13:29:15 -0700 Subject: [PATCH] nvmf: move includes from nvmf.h where they're used Most of the #include statements in nvmf.h aren't part of the public API. Change-Id: I0d43dd542a28744a91a4fd0c4c806a991d1e194e Signed-off-by: Daniel Verkamp --- lib/nvmf/conf.c | 1 + lib/nvmf/nvmf.c | 3 +++ lib/nvmf/nvmf.h | 7 ------- lib/nvmf/port.c | 3 +++ lib/nvmf/rdma.c | 1 + lib/nvmf/subsystem_grp.c | 2 ++ 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/nvmf/conf.c b/lib/nvmf/conf.c index 898a50216..f68ed2f2a 100644 --- a/lib/nvmf/conf.c +++ b/lib/nvmf/conf.c @@ -31,6 +31,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include "conf.h" diff --git a/lib/nvmf/nvmf.c b/lib/nvmf/nvmf.c index 4729a3ffd..799cb1efc 100644 --- a/lib/nvmf/nvmf.c +++ b/lib/nvmf/nvmf.c @@ -33,6 +33,9 @@ #include +#include +#include + #include "spdk/log.h" #include "spdk/conf.h" #include "nvmf.h" diff --git a/lib/nvmf/nvmf.h b/lib/nvmf/nvmf.h index 915e96ddf..5acae615d 100644 --- a/lib/nvmf/nvmf.h +++ b/lib/nvmf/nvmf.h @@ -36,13 +36,6 @@ #include #include -#include - -#include -#include - -#include "spdk/nvmf_spec.h" -#include "spdk/nvme.h" /** * \file diff --git a/lib/nvmf/port.c b/lib/nvmf/port.c index af44f20f3..02a5f79cc 100644 --- a/lib/nvmf/port.c +++ b/lib/nvmf/port.c @@ -31,6 +31,9 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include +#include + #include "conn.h" #include "nvmf.h" #include "rdma.h" diff --git a/lib/nvmf/rdma.c b/lib/nvmf/rdma.c index 2f67a2d91..084fe5c6c 100644 --- a/lib/nvmf/rdma.c +++ b/lib/nvmf/rdma.c @@ -41,6 +41,7 @@ #include #include #include +#include #include "conn.h" #include "rdma.h" diff --git a/lib/nvmf/subsystem_grp.c b/lib/nvmf/subsystem_grp.c index be14e910d..404d6f7fc 100644 --- a/lib/nvmf/subsystem_grp.c +++ b/lib/nvmf/subsystem_grp.c @@ -31,6 +31,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include + #include "controller.h" #include "port.h" #include "init_grp.h"