linux-yocto/kernel/dma
Arnd Bergmann ad03f3f852 dma/contiguous: avoid warning about unused size_bytes
[ Upstream commit d7b98ae522 ]

When building with W=1, this variable is unused for configs with
CONFIG_CMA_SIZE_SEL_PERCENTAGE=y:

kernel/dma/contiguous.c:67:26: error: 'size_bytes' defined but not used [-Werror=unused-const-variable=]

Change this to a macro to avoid the warning.

Fixes: c64be2bb1c ("drivers: add Contiguous Memory Allocator")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20250409151557.3890443-1-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-02 07:44:29 +02:00
..
coherent.c dma-mapping: clear dev->dma_mem to NULL after freeing it 2024-01-25 14:52:38 -08:00
contiguous.c dma/contiguous: avoid warning about unused size_bytes 2025-05-02 07:44:29 +02:00
debug.c dma-debug: fix a possible deadlock on radix_lock 2024-12-14 19:51:38 +01:00
debug.h
direct.c
direct.h
dummy.c
Kconfig
Makefile
map_benchmark.c dma-mapping: benchmark: Don't starve others when doing the test 2024-09-12 11:07:48 +02:00
mapping.c dma: fix call order in dmam_free_coherent 2024-08-19 05:45:23 +02:00
ops_helpers.c
pool.c
remap.c
swiotlb.c memblock: drop memblock_free_early_nid() and memblock_free_early() 2025-03-13 12:50:07 +01:00