From 907dd7bd93b92fa62ada2d77e36d93b6c8f63385 Mon Sep 17 00:00:00 2001 From: Andrew LaMarche Date: Wed, 22 Apr 2026 12:24:10 +0000 Subject: [PATCH] kernel: crypto: fix build with Linux >= 6.18 after octeon-md5 removal Linux commit c9e5ac0 ("lib/crypto: mips/md5: Migrate optimized code into library") removed the MIPS-Octeon-specific MD5 implementation (octeon-md5.ko) and replaced it with an optimized library implementation in lib/crypto. As a result, CONFIG_CRYPTO_MD5_OCTEON and the module arch/mips/crypto/octeon-md5.ko no longer exist in kernels >= 6.18. Signed-off-by: Andrew LaMarche Link: https://github.com/openwrt/openwrt/pull/23031 Signed-off-by: Nick Hainke --- package/kernel/linux/modules/crypto.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index 650fdd598f..aa8a52ec5f 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -740,7 +740,7 @@ define KernelPackage/crypto-md5 DEPENDS:=+kmod-crypto-hash KCONFIG:= \ CONFIG_CRYPTO_MD5 \ - CONFIG_CRYPTO_MD5_OCTEON \ + CONFIG_CRYPTO_MD5_OCTEON@lt6.18 \ CONFIG_CRYPTO_MD5_PPC@lt6.18 FILES:=$(LINUX_DIR)/crypto/md5.ko \ $(LINUX_DIR)/lib/crypto/libmd5.ko@ge6.18 @@ -749,8 +749,8 @@ define KernelPackage/crypto-md5 endef define KernelPackage/crypto-md5/octeon - FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko - AUTOLOAD+=$(call AutoLoad,09,octeon-md5) + FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko@lt6.18 + AUTOLOAD+=$(call AutoLoad,09,LINUX_6_12:octeon-md5) endef define KernelPackage/crypto-md5/powerpc