From: P J P <pjp@xxxxxxxxxxxxxxxxx> Use $(SRCARCH) variable to source architecture specific crypto Kconfig file. It helps to avoid multiple if ARCH conditionals. Signed-off-by: Prasad Pandit <pjp@xxxxxxxxxxxxxxxxx> --- crypto/Kconfig | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index 650b1b3620d8..0ac776d3168b 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1421,30 +1421,7 @@ config CRYPTO_HASH_INFO bool if !KMSAN # avoid false positives from assembly -if ARM -source "arch/arm/crypto/Kconfig" -endif -if ARM64 -source "arch/arm64/crypto/Kconfig" -endif -if LOONGARCH -source "arch/loongarch/crypto/Kconfig" -endif -if MIPS -source "arch/mips/crypto/Kconfig" -endif -if PPC -source "arch/powerpc/crypto/Kconfig" -endif -if S390 -source "arch/s390/crypto/Kconfig" -endif -if SPARC -source "arch/sparc/crypto/Kconfig" -endif -if X86 -source "arch/x86/crypto/Kconfig" -endif +source "arch/$(SRCARCH)/crypto/Kconfig" endif source "drivers/crypto/Kconfig" -- 2.41.0