From df902b1d2e0abbbdeb84c0972bad34d250227e26 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Wed, 31 Mar 2021 21:50:14 +0000 Subject: [PATCH] include: remove util.h include from queue_extras.h This include isn't needed in queue_extras.h itself. There were a few places that were implicitly depending on this include, so fix those to include util.h explicitly. Signed-off-by: Jim Harris Change-Id: Ia962ae5a4403ee8ae15f3106d0d5e7d7412a4535 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7172 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Reviewed-by: Shuhei Matsumoto Reviewed-by: Changpeng Liu --- app/spdk_dd/spdk_dd.c | 1 + include/spdk/queue_extras.h | 2 -- lib/rdma/rdma_mlx5_dv.c | 1 + lib/vfio_user/vfio_user_pci.c | 1 + lib/virtio/virtio_user.c | 1 + test/event/scheduler/scheduler.c | 1 + test/external_code/nvme/nvme.c | 1 + 7 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/spdk_dd/spdk_dd.c b/app/spdk_dd/spdk_dd.c index 99dc7f271..8b9518bea 100644 --- a/app/spdk_dd/spdk_dd.c +++ b/app/spdk_dd/spdk_dd.c @@ -37,6 +37,7 @@ #include "spdk/event.h" #include "spdk/fd.h" #include "spdk/string.h" +#include "spdk/util.h" #include "spdk/vmd.h" #include diff --git a/include/spdk/queue_extras.h b/include/spdk/queue_extras.h index 904625e4d..f52529e7e 100644 --- a/include/spdk/queue_extras.h +++ b/include/spdk/queue_extras.h @@ -105,8 +105,6 @@ * */ -#include "spdk/util.h" - /* * Singly-linked Tail queue declarations. */ diff --git a/lib/rdma/rdma_mlx5_dv.c b/lib/rdma/rdma_mlx5_dv.c index a7d2ad2c2..f4061b627 100644 --- a/lib/rdma/rdma_mlx5_dv.c +++ b/lib/rdma/rdma_mlx5_dv.c @@ -40,6 +40,7 @@ #include "spdk_internal/rdma.h" #include "spdk/log.h" +#include "spdk/util.h" struct spdk_rdma_mlx5_dv_qp { struct spdk_rdma_qp common; diff --git a/lib/vfio_user/vfio_user_pci.c b/lib/vfio_user/vfio_user_pci.c index 0878399b1..b7838c48f 100644 --- a/lib/vfio_user/vfio_user_pci.c +++ b/lib/vfio_user/vfio_user_pci.c @@ -39,6 +39,7 @@ #include "spdk/log.h" #include "spdk/env.h" #include "spdk/queue.h" +#include "spdk/util.h" #include "spdk/vfio_user_pci.h" #include "vfio_user_internal.h" diff --git a/lib/virtio/virtio_user.c b/lib/virtio/virtio_user.c index 10e3cb811..3fab1ef0f 100644 --- a/lib/virtio/virtio_user.c +++ b/lib/virtio/virtio_user.c @@ -38,6 +38,7 @@ #include "vhost_user.h" #include "spdk/string.h" #include "spdk/config.h" +#include "spdk/util.h" #include "spdk_internal/virtio.h" diff --git a/test/event/scheduler/scheduler.c b/test/event/scheduler/scheduler.c index a9aa7ba58..b50523192 100644 --- a/test/event/scheduler/scheduler.c +++ b/test/event/scheduler/scheduler.c @@ -41,6 +41,7 @@ #include "spdk/rpc.h" #include "spdk/string.h" #include "spdk/thread.h" +#include "spdk/util.h" static bool g_is_running = true; pthread_mutex_t g_sched_list_mutex = PTHREAD_MUTEX_INITIALIZER; diff --git a/test/external_code/nvme/nvme.c b/test/external_code/nvme/nvme.c index e83e327ba..2eb8beea2 100644 --- a/test/external_code/nvme/nvme.c +++ b/test/external_code/nvme/nvme.c @@ -36,6 +36,7 @@ #include "spdk/likely.h" #include "spdk/log.h" #include "spdk/stdinc.h" +#include "spdk/util.h" #include "nvme.h" typedef void (*nvme_cmd_cb)(void *ctx, const struct spdk_nvme_cpl *cpl);