kernel_samsung_a53x/drivers/crypto/ccp
Arnd Bergmann 3142892ef6 crypto: ccp - drop platform ifdef checks
[ Upstream commit 42c2d7d02977ef09d434b1f5b354f5bc6c1027ab ]

When both ACPI and OF are disabled, the dev_vdata variable is unused:

drivers/crypto/ccp/sp-platform.c:33:34: error: unused variable 'dev_vdata' [-Werror,-Wunused-const-variable]

This is not a useful configuration, and there is not much point in saving
a few bytes when only one of the two is enabled, so just remove all
these ifdef checks and rely on of_match_node() and acpi_match_device()
returning NULL when these subsystems are disabled.

Fixes: 6c5063434098 ("crypto: ccp - Add ACPI support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:26:52 +01:00
..
ccp-crypto-aes-cmac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-crypto-aes-galois.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-crypto-aes-xts.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-crypto-aes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-crypto-des3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-crypto-main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-crypto-rsa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-crypto-sha.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-crypto.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-dev-v3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-dev-v5.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-dev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-dmaengine.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ccp-ops.c crypto: ccp - fix memleak in ccp_init_dm_workarea 2024-11-18 12:12:26 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psp-dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
psp-dev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sev-dev.c crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked 2024-11-18 12:13:32 +01:00
sev-dev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sp-dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sp-dev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sp-pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sp-platform.c crypto: ccp - drop platform ifdef checks 2024-11-19 12:26:52 +01:00
tee-dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tee-dev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00