mirror-linux/arch/riscv
Herbert Xu 17ec3e71ba crypto: lib/Kconfig - Hide arch options from user
The ARCH_MAY_HAVE patch missed arm64, mips and s390.  But it may
also lead to arch options being enabled but ineffective because
of modular/built-in conflicts.

As the primary user of all these options wireguard is selecting
the arch options anyway, make the same selections at the lib/crypto
option level and hide the arch options from the user.

Instead of selecting them centrally from lib/crypto, simply set
the default of each arch option as suggested by Eric Biggers.

Change the Crypto API generic algorithms to select the top-level
lib/crypto options instead of the generic one as otherwise there
is no way to enable the arch options (Eric Biggers).  Introduce a
set of INTERNAL options to work around dependency cycles on the
CONFIG_CRYPTO symbol.

Fixes: 1047e21aec ("crypto: lib/Kconfig - Fix lib built-in failure when arch is modular")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Arnd Bergmann <arnd@kernel.org>
Closes: https://lore.kernel.org/oe-kbuild-all/202502232152.JC84YDLp-lkp@intel.com/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-03-02 15:21:47 +08:00
..
boot RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
configs RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
crypto crypto: lib/Kconfig - Hide arch options from user 2025-03-02 15:21:47 +08:00
errata Merge patch series "riscv: Add support for xtheadvector" 2025-01-18 12:33:43 -08:00
include RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
kernel RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
kvm RISC-V: KVM: Add new exit statstics for redirected traps 2024-12-30 14:01:02 +05:30
lib lib/crc32: expose whether the lib is really optimized at runtime 2024-12-01 17:23:01 -08:00
mm RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
net asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
purgatory Merge patch series "riscv: Improve KASAN coverage to fix unit tests" 2024-09-19 01:10:44 -07:00
tools
Kbuild
Kconfig CRC updates for 6.14 2025-01-22 19:55:08 -08:00
Kconfig.debug
Kconfig.errata riscv: Add ghostwrite vulnerability 2025-01-18 12:33:39 -08:00
Kconfig.socs riscv: add SpacemiT SoC family Kconfig support 2025-01-17 07:53:51 +08:00
Kconfig.vendor riscv: vector: Use vlenb from DT for thead 2025-01-18 12:33:29 -08:00
Makefile Kbuild updates for v6.13 2024-11-30 13:41:50 -08:00
Makefile.postlink kbuild: Strip runtime const RELA sections correctly 2025-02-01 04:28:05 +09:00