linux-stable/drivers/crypto
Alexander Lobakin 72bc4e71db crypto: octeontx2 - Fix objects shared between several modules
cn10k_cpt.o, otx2_cptlf.o and otx2_cpt_mbox_common.o are linked
into both rvu_cptpf and rvu_cptvf modules:

> scripts/Makefile.build:252: ./drivers/crypto/marvell/octeontx2/Makefile:
> cn10k_cpt.o is added to multiple modules: rvu_cptpf rvu_cptvf
> scripts/Makefile.build:252: ./drivers/crypto/marvell/octeontx2/Makefile:
> otx2_cptlf.o is added to multiple modules: rvu_cptpf rvu_cptvf
> scripts/Makefile.build:252: ./drivers/crypto/marvell/octeontx2/Makefile:
> otx2_cpt_mbox_common.o is added to multiple modules: rvu_cptpf rvu_cptvf

Despite they're build under the same Kconfig option
(CONFIG_CRYPTO_DEV_OCTEONTX2_CPT), it's better do link the common
code into a standalone module and export the shared functions. Under
certain circumstances, this can lead to the same situation as fixed
by commit 637a642f5c ("zstd: Fixing mixed module-builtin objects").
Plus, those three common object files are relatively big to duplicate
them several times.

Introduce the new module, rvu_cptcommon, to provide the common
functions to both modules.

Fixes: 19d8e8c7be ("crypto: octeontx2 - add virtual function driver support")
Suggested-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-02-14 13:39:33 +08:00
..
allwinner crypto: sun8i-ce - Add TRNG clock to the D1 variant 2023-01-13 16:39:04 +08:00
amcc crypto: amcc - Hold the reference returned by of_find_compatible_node 2022-07-08 15:21:16 +08:00
amlogic crypto: amlogic - Remove kcalloc without check 2022-12-02 18:12:40 +08:00
aspeed crypto: aspeed - fix type warnings 2023-02-10 17:20:19 +08:00
axis crypto: artpec6 - Use request_complete helpers 2023-02-13 18:34:49 +08:00
bcm crypto: bcm - Use request_complete helpers 2023-02-13 18:34:49 +08:00
caam crypto: caam - Use ahash_request_complete 2023-01-27 18:58:09 +08:00
cavium crypto: nitrox - Use request_complete helpers 2023-02-13 18:34:49 +08:00
ccp crypto: ccp - Use request_complete helpers 2023-02-13 18:34:49 +08:00
ccree crypto: xts - drop xts_check_key() 2023-01-06 17:15:47 +08:00
chelsio crypto: chelsio - Use request_complete helpers 2023-02-13 18:34:49 +08:00
gemini Revert "crypto: gemini - Fix error check for dma_map_sg" 2022-09-02 18:15:53 +08:00
hisilicon crypto: hisilicon - Use request_complete helpers 2023-02-13 18:34:49 +08:00
inside-secure crypto: safexcel - Use request_complete helpers 2023-02-13 18:34:49 +08:00
keembay crypto: keembay - Set DMA alignment explicitly 2022-12-09 18:45:00 +08:00
marvell crypto: octeontx2 - Fix objects shared between several modules 2023-02-14 13:39:33 +08:00
nx crypto: nx - Fix sparse warnings 2023-02-14 13:39:33 +08:00
qat crypto: qat - Use request_complete helpers 2023-02-13 18:35:14 +08:00
qce crypto: qce - Use request_complete helpers 2023-02-13 18:35:14 +08:00
rockchip crypto: rockchip - Remove surplus dev_err() when using platform_get_irq() 2022-11-11 18:14:59 +08:00
stm32 crypto: stm32/hash - Support Ux500 hash 2023-02-03 12:54:55 +08:00
virtio crypto: virtio/akcipher - Do not use GFP_ATOMIC when not needed 2023-02-10 17:20:19 +08:00
vmx Merge branch 'topic/objtool' into next 2022-12-08 23:57:47 +11:00
xilinx
atmel-aes-regs.h
atmel-aes.c crypto: atmel - Use request_complete helpers 2023-02-13 18:34:49 +08:00
atmel-authenc.h
atmel-ecc.c crypto: atmel - Drop unused id parameter from atmel_i2c_probe() 2023-02-10 17:20:19 +08:00
atmel-i2c.c crypto: atmel - Drop unused id parameter from atmel_i2c_probe() 2023-02-10 17:20:19 +08:00
atmel-i2c.h crypto: atmel - Drop unused id parameter from atmel_i2c_probe() 2023-02-10 17:20:19 +08:00
atmel-sha-regs.h
atmel-sha.c crypto: api - Use data directly in completion function 2023-02-13 18:35:14 +08:00
atmel-sha204a.c crypto: atmel - Drop unused id parameter from atmel_i2c_probe() 2023-02-10 17:20:19 +08:00
atmel-tdes-regs.h
atmel-tdes.c crypto: atmel - Use request_complete helpers 2023-02-13 18:34:49 +08:00
exynos-rng.c
geode-aes.c
geode-aes.h
hifn_795x.c crypto: hifn_795x - Use request_complete helpers 2023-02-13 18:34:49 +08:00
img-hash.c crypto: img-hash - Use request_complete helpers 2023-02-13 18:34:49 +08:00
ixp4xx_crypto.c crypto: ixp4xx - Use request_complete helpers 2023-02-13 18:34:49 +08:00
Kconfig crypto: ux500/hash - delete driver 2023-02-03 12:55:59 +08:00
Makefile crypto: ux500/hash - delete driver 2023-02-03 12:55:59 +08:00
mxs-dcp.c crypto: mxs-dcp - Use request_complete helpers 2023-02-13 18:34:49 +08:00
n2_asm.S
n2_core.c crypto: n2 - add missing hash statesize 2022-10-21 19:15:35 +08:00
n2_core.h
omap-aes-gcm.c
omap-aes.c crypto: omap-aes - Drop if with an always false condition 2022-07-15 16:43:21 +08:00
omap-aes.h
omap-crypto.c
omap-crypto.h
omap-des.c crypto: omap-des - Drop if with an always false condition 2022-07-15 16:43:21 +08:00
omap-sham.c crypto: omap-sham - Use pm_runtime_resume_and_get() in omap_sham_probe() 2022-12-02 18:12:40 +08:00
padlock-aes.c
padlock-sha.c
qcom-rng.c crypto: qcom-rng - Fix qcom_rng_of_match unused warning 2022-08-19 18:39:35 +08:00
s5p-sss.c crypto: s5p-sss - Use request_complete helpers 2023-02-13 18:35:14 +08:00
sa2ul.c crypto: sa2ul - Check engine status before enabling 2022-07-15 16:43:22 +08:00
sa2ul.h crypto: sa2ul - Check engine status before enabling 2022-07-15 16:43:22 +08:00
sahara.c crypto: sahara - Use request_complete helpers 2023-02-13 18:35:14 +08:00
talitos.c crypto: talitos - Use request_complete helpers 2023-02-13 18:35:14 +08:00
talitos.h crypto: talitos - Replace zero-length arrays with DECLARE_FLEX_ARRAY() helper 2022-10-21 19:05:24 +08:00