[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aHoorRAImpjjvolm@gondor.apana.org.au>
Date: Fri, 18 Jul 2025 20:57:49 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Lukas Bulwahn <lbulwahn@...hat.com>
Cc: Horia Geantă <horia.geanta@....com>,
Pankaj Gupta <pankaj.gupta@....com>,
Gaurav Jain <gaurav.jain@....com>,
"David S . Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org,
Lukas Bulwahn <lukas.bulwahn@...hat.com>
Subject: Re: [PATCH] crypto: caam - avoid option aliasing with the
CONFIG_CAAM_QI build option
On Tue, Jul 01, 2025 at 01:20:45PM +0200, Lukas Bulwahn wrote:
> From: Lukas Bulwahn <lukas.bulwahn@...hat.com>
>
> In the Makefile, the new build option CONFIG_CAAM_QI is defined conditioned
> on the existence of the CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI, which is
> properly defined in the Kconfig file. So, CONFIG_CAAM_QI is just a local
> alias for CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI.
>
> There is little benefit in the source code of having this slightly shorter
> alias for this configuration, but it complicates further maintenance, as
> searching for the impact of CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI
> requires to grep once, and then identify the option introduced and continue
> searching for that. Further, tools, such as cross referencers, and scripts
> to check Kconfig definitions and their use simply do not handle this
> situation. Given that this is the only incidence of such a config alias in
> the whole kernel tree, just prefer to avoid this pattern of aliasing here.
>
> Use CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI throughout the Freescale
> CAAM-Multicore platform driver backend source code.
>
> No functional change.
>
> Signed-off-by: Lukas Bulwahn <lukas.bulwahn@...hat.com>
> ---
> drivers/crypto/caam/Makefile | 4 ----
> drivers/crypto/caam/ctrl.c | 6 +++---
> drivers/crypto/caam/debugfs.c | 2 +-
> drivers/crypto/caam/debugfs.h | 2 +-
> drivers/crypto/caam/intern.h | 4 ++--
> 5 files changed, 7 insertions(+), 11 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists