[PATCH] crypto: cavium/cpt - select the skcipher API
From: Pengpeng Hou
Date: Mon Nov 30 2026 - 07:34:44 EST
The CPT virtual-function driver registers skcipher algorithms with
crypto_register_skciphers(), but CAVIUM_CPT does not select the
skcipher API. A built-in CPT driver can consequently reference a
modular skcipher provider and fail to link.
Select CRYPTO_SKCIPHER from the driver that registers those
algorithms.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: ac0d3d130f90 ("crypto: cavium/cpt - switch to skcipher API")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/crypto/cavium/cpt/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/cavium/cpt/Kconfig b/drivers/crypto/cavium/cpt/Kconfig
index b987405..5add6bc 100644
--- a/drivers/crypto/cavium/cpt/Kconfig
+++ b/drivers/crypto/cavium/cpt/Kconfig
@@ -11,6 +11,7 @@ config CAVIUM_CPT
depends on ARCH_THUNDER || COMPILE_TEST
depends on PCI_MSI && 64BIT
select CRYPTO_DEV_CPT
+ select CRYPTO_SKCIPHER
help
Support for Cavium CPT block found in octeon-tx series of
processors.
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244