From: sashiko-bot@kernel.org
To: "Pavitrakumar Managutte" <pavitrakumarm@vayavyalabs.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v17 4/4] crypto: spacc - Add SPAcc Kconfig and Makefile
Date: Mon, 20 Jul 2026 11:53:28 +0000 [thread overview]
Message-ID: <20260720115329.3D0A31F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260720113740.64960-5-pavitrakumarm@vayavyalabs.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] CRYPTO_DEV_SPACC_HASH is defined as a tristate option but controls a component of a composite module, leading to an undefined reference linker error when configured as 'm' while the main driver is 'y'.
--
--- Patch [4]: [PATCH v17 4/4] crypto: spacc - Add SPAcc Kconfig and Makefile ---
commit 6d5d2ec49262f31f1558921632e08b8a62362a2d
Author: Pavitrakumar Managutte <pavitrakumarm@vayavyalabs.com>
crypto: spacc - Add SPAcc Kconfig and Makefile
Add Makefile and Kconfig for SPAcc driver.
> diff --git a/drivers/crypto/dwc-spacc/Kconfig b/drivers/crypto/dwc-spacc/Kconfig
> new file mode 100644
> index 0000000000000..edc550562235e
> --- /dev/null
> +++ b/drivers/crypto/dwc-spacc/Kconfig
> @@ -0,0 +1,83 @@
[ ... ]
> +if CRYPTO_DEV_SPACC
> +
> +config CRYPTO_DEV_SPACC_HASH
> + tristate "Enable HASH functionality"
[Severity: Low]
Will this cause a build failure if CONFIG_CRYPTO_DEV_SPACC=y and
CONFIG_CRYPTO_DEV_SPACC_HASH=m?
Since CRYPTO_DEV_SPACC_HASH is a tristate, it can be set to 'm' while the
main driver is built-in ('y'). If that happens, Kbuild will add
spacc_ahash.o to snps-spacc-m in the Makefile:
snps-spacc-$(CONFIG_CRYPTO_DEV_SPACC_HASH) += spacc_ahash.o
Because snps-spacc is built-in, Kbuild ignores the -m list, meaning
spacc_ahash.o won't be linked into the final kernel image.
However, IS_ENABLED(CONFIG_CRYPTO_DEV_SPACC_HASH) evaluates to true for 'm'
as well. This can lead to undefined reference errors when spacc_crypto_probe()
tries to call spacc_probe_hashes() and spacc_unregister_hash_algs() in
spacc_device.c.
Should CRYPTO_DEV_SPACC_HASH be a bool instead to prevent this mismatch?
> + default CRYPTO_DEV_SPACC
> + select CRYPTO_HASH
> + select CRYPTO_SHA1
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260720113740.64960-1-pavitrakumarm@vayavyalabs.com?part=4
prev parent reply other threads:[~2026-07-20 11:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 11:37 [PATCH v17 0/4] crypto: spacc - Add SPAcc Crypto Driver Pavitrakumar Managutte
2026-07-20 11:37 ` [PATCH v17 1/4] dt-bindings: crypto: Document support for SPAcc Pavitrakumar Managutte
2026-07-20 11:43 ` sashiko-bot
2026-07-20 11:37 ` [PATCH v17 2/4] crypto: spacc - Add SPAcc ahash support Pavitrakumar Managutte
2026-07-20 12:09 ` sashiko-bot
2026-07-20 11:37 ` [PATCH v17 3/4] crypto: spacc - Add SPAcc AUTODETECT Support Pavitrakumar Managutte
2026-07-20 14:02 ` sashiko-bot
2026-07-20 11:37 ` [PATCH v17 4/4] crypto: spacc - Add SPAcc Kconfig and Makefile Pavitrakumar Managutte
2026-07-20 11:53 ` sashiko-bot [this message]
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=20260720115329.3D0A31F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=pavitrakumarm@vayavyalabs.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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