mk: don't use '-include spdk/config.h'

Each file that need to check SPDK_CONFIG_* options need to include
spdk/config.h explicitly.

Change-Id: If9f2a91ac4c2b1a300dcf88ec3e2a12714ad344a
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/427221
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Pawel Wodkowski 2018-09-27 21:38:15 +02:00 committed by Jim Harris
parent c5467556f0
commit c4fee1e970
11 changed files with 10 additions and 2 deletions

View File

@ -33,6 +33,7 @@
#include "spdk/stdinc.h"
#include "spdk/config.h"
#include "spdk/env.h"
#include "spdk/event.h"
#include "spdk/vhost.h"

View File

@ -36,6 +36,7 @@
#include "spdk/bdev.h"
#include "spdk/conf.h"
#include "spdk/config.h"
#include "spdk/env.h"
#include "spdk/event.h"
#include "spdk/thread.h"

View File

@ -35,6 +35,7 @@
#include "bdev_nvme.h"
#include "spdk/config.h"
#include "spdk/conf.h"
#include "spdk/endian.h"
#include "spdk/bdev.h"

View File

@ -31,6 +31,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "spdk/config.h"
#if SPDK_CONFIG_VTUNE
/* Disable warnings triggered by the VTune code */

View File

@ -34,6 +34,7 @@
#ifndef __NVME_INTERNAL_H__
#define __NVME_INTERNAL_H__
#include "spdk/config.h"
#include "spdk/likely.h"
#include "spdk/stdinc.h"

View File

@ -40,6 +40,7 @@
#include "nvmf_internal.h"
#include "transport.h"
#include "spdk/config.h"
#include "spdk/assert.h"
#include "spdk/thread.h"
#include "spdk/nvmf.h"

View File

@ -36,6 +36,7 @@
#include "nvmf_internal.h"
#include "transport.h"
#include "spdk/config.h"
#include "spdk/log.h"
#include "spdk/nvmf.h"
#include "spdk/queue.h"

View File

@ -77,8 +77,6 @@ ifeq ($(TARGET_MACHINE),x86_64)
COMMON_CFLAGS += -march=native
endif
COMMON_CFLAGS += -include $(SPDK_ROOT_DIR)/include/spdk/config.h
ifeq ($(CONFIG_WERROR), y)
COMMON_CFLAGS += -Werror
endif

View File

@ -36,6 +36,7 @@
#include "common/lib/test_env.c"
#include "unit/lib/json_mock.c"
#include "spdk/config.h"
/* HACK: disable VTune integration so the unit test doesn't need VTune headers and libs to build */
#undef SPDK_CONFIG_VTUNE

View File

@ -37,6 +37,7 @@
#include "common/lib/ut_multithread.c"
#include "unit/lib/json_mock.c"
#include "spdk/config.h"
/* HACK: disable VTune integration so the unit test doesn't need VTune headers and libs to build */
#undef SPDK_CONFIG_VTUNE

View File

@ -36,6 +36,7 @@
#include "common/lib/test_env.c"
#include "unit/lib/json_mock.c"
#include "spdk/config.h"
/* HACK: disable VTune integration so the unit test doesn't need VTune headers and libs to build */
#undef SPDK_CONFIG_VTUNE