mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: gcherian@marvell.com
Cc: herbert@gondor.apana.org.au, davem@davemloft.net,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	hppiscas@163.com
Subject: [PATCH] crypto: cavium/cpt - select the skcipher API
Date: Mon, 30 Nov 2026 20:33:29 +0800	[thread overview]
Message-ID: <20261130123329.72253-1-hppiscas@163.com> (raw)

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@163.com>
---
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


                 reply	other threads:[~2026-11-30 12:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130123329.72253-1-hppiscas@163.com \
    --to=hppiscas@163.com \
    --cc=davem@davemloft.net \
    --cc=gcherian@marvell.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®