lkl: drop explicit CONFIG_SHMEM=n setting

The previous mainline commit 1f737846aa3c4 ("mm/shmem: inline
shmem_is_huge() for disabled transparent hugepages") fixes the described
build failure, so leave the CONFIG_SHMEM setting up to the user (it's
enabled by default with MMU=y).

Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
David Disseldorp
2025-06-12 11:43:17 +02:00
parent 66aa8b6920
commit c9f0472ec6

View File

@@ -248,10 +248,6 @@ endef
define do_autoconf_mmu
$(call set_autoconf_var,MMU,y)
$(call set_kernel_config,MMU,y)
# Don't need swap in LKL. CONFIG_SHMEM generates a compile-time assertion
# when build with gcc, however, works fine with clang. The issues is in macro
# HPAGE_PMD_SIZE which should be optimized out but is not in case of gcc.
$(call set_kernel_config,SHMEM,n)
$(if $(MMU_KUNIT), $(call mmu_test_enable))
endef