kernel: fix missing TRANSPARENT_HUGEPAGE symbols
authorStijn Tintel <stijn@linux-ipv6.be>
Sat, 1 Aug 2020 13:29:24 +0000 (16:29 +0300)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 1 Aug 2020 13:33:46 +0000 (14:33 +0100)
Enabling KERNEL_TRANSPARENT_HUGEPAGE exposes 2 missing symbols:
* CONFIG_READ_ONLY_THP_FOR_FS
* TRANSPARENT_HUGEPAGE_ALWAYS
* TRANSPARENT_HUGEPAGE_MADVISE

The first one was added in 5.4, and is marked experimental there so just
disable it in the generic config.

For the latter two, we should not force the user to use either of them,
so add them as build-configurable kernel options.

Fixes: d1a8217d87bf ("kernel: clean-up build-configurable kernel config symbols")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
config/Config-kernel.in
target/linux/generic/config-5.4

index fa4c8257b29c3efade8fe9b20ad3bb66a8a2c72f..2e80c8f5371372fc3874e5cf3d29959e5bfab598 100644 (file)
@@ -360,6 +360,18 @@ config KERNEL_BLK_DEV_BSG
 config KERNEL_TRANSPARENT_HUGEPAGE
        bool
 
+choice
+       prompt "Transparent Hugepage Support sysfs defaults"
+       depends on KERNEL_TRANSPARENT_HUGEPAGE
+       default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
+
+       config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
+               bool "always"
+
+       config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
+               bool "madvise"
+endchoice
+
 config KERNEL_HUGETLBFS
        bool
 
index 22d0594e932f7d01d75105f414f3cf82400ae1cf..6e49ceefca849dfa8bc4587fe1bd07d491f5a713 100644 (file)
@@ -4211,6 +4211,7 @@ CONFIG_RCU_TORTURE_TEST_SLOW_INIT_DELAY=3
 # CONFIG_RD_LZO is not set
 # CONFIG_RD_XZ is not set
 # CONFIG_READABLE_ASM is not set
+# CONFIG_READ_ONLY_THP_FOR_FS is not set
 # CONFIG_REALTEK_PHY is not set
 # CONFIG_REDWOOD is not set
 # CONFIG_REED_SOLOMON_TEST is not set