mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 09:04:51 +08:00
97139d4a6f
Kernel source files need not include <linux/kconfig.h> explicitly because the top Makefile forces to include it with: -include $(srctree)/include/linux/kconfig.h This commit removes explicit includes except the following: * arch/s390/include/asm/facilities_src.h * tools/testing/radix-tree/linux/kernel.h These two are used for host programs. Link: http://lkml.kernel.org/r/1473656164-11929-1-git-send-email-yamada.masahiro@socionext.com Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 lines
493 B
C
18 lines
493 B
C
#include <linux/bug.h>
|
|
|
|
void check(void)
|
|
{
|
|
/*
|
|
* These kconfig symbols must be set to "m" for nfit_test to
|
|
* load and operate.
|
|
*/
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_LIBNVDIMM));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_BLK_DEV_PMEM));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BTT));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_PFN));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BLK));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX_PMEM));
|
|
}
|