From: Arnd Bergmann <arnd@xxxxxxxx> Randconfig builds that use ZSWAP_ZPOOL_DEFAULT_Z3FOLD now cause a harmless warning: WARNING: unmet direct dependencies detected for Z3FOLD Depends on [n]: Z3FOLD_DEPRECATED [=n] Selected by [y]: - ZSWAP_ZPOOL_DEFAULT_Z3FOLD [=y] && ZSWAP [=y] Avoid the warning by selecting Z3FOLD_DEPRECATED instead, but rename this symbol to ZSWAP_ZPOOL_DEFAULT_Z3FOLD_DEPRECATED in the process so it no longer automatically gets used with old defconfigs while still allowing users to select it manually. Fixes: c68c1bed014d ("mm: z3fold: deprecate CONFIG_Z3FOLD") Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> --- mm/Kconfig | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index 7c9930bf8a9d..09aebca1cae3 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -146,12 +146,15 @@ config ZSWAP_ZPOOL_DEFAULT_ZBUD help Use the zbud allocator as the default allocator. -config ZSWAP_ZPOOL_DEFAULT_Z3FOLD - bool "z3fold" - select Z3FOLD +config ZSWAP_ZPOOL_DEFAULT_Z3FOLD_DEPRECATED + bool "z3foldi (DEPRECATED)" + select Z3FOLD_DEPRECATED help Use the z3fold allocator as the default allocator. + Deprecated and scheduled for removal in a few cycles, + see CONFIG_Z3FOLD_DEPRECATED. + config ZSWAP_ZPOOL_DEFAULT_ZSMALLOC bool "zsmalloc" select ZSMALLOC @@ -163,7 +166,7 @@ config ZSWAP_ZPOOL_DEFAULT string depends on ZSWAP default "zbud" if ZSWAP_ZPOOL_DEFAULT_ZBUD - default "z3fold" if ZSWAP_ZPOOL_DEFAULT_Z3FOLD + default "z3fold" if ZSWAP_ZPOOL_DEFAULT_Z3FOLD_DEPRECATED default "zsmalloc" if ZSWAP_ZPOOL_DEFAULT_ZSMALLOC default "" -- 2.39.2