scripts/check-config: don't check MEMCG_SWAP on newer kernels

Kernel commit e55b9f96860f (which made its way into Linux v6.1-rc1)
removes CONFIG_MEMCG_SWAP entirely, so there's no sense to check for in
on newer kernels.

Make the check conditional.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2023-12-19 17:21:01 -08:00
parent 29222735a7
commit b94b559058
+3 -2
View File
@@ -255,8 +255,9 @@ echo 'Optional Features:'
check_flags SECCOMP_FILTER
check_flags CGROUP_PIDS
check_flags MEMCG_SWAP
if kernel_lt 6 1; then
check_flags MEMCG_SWAP
fi
if kernel_lt 5 8; then
check_flags MEMCG_SWAP_ENABLED
if is_set MEMCG_SWAP && ! is_set MEMCG_SWAP_ENABLED; then