linux-yocto/kernel/dma
Arnd Bergmann 4bf6d7defb 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:46:53 +02:00
..
coherent.c
contiguous.c dma/contiguous: avoid warning about unused size_bytes 2025-05-02 07:46:53 +02:00
debug.c dma-debug: fix a possible deadlock on radix_lock 2024-12-14 19:54:43 +01:00
debug.h
direct.c dma-direct: Leak pages on dma_set_decrypted() failure 2024-04-13 13:04:59 +02:00
direct.h
dummy.c
Kconfig
Makefile
map_benchmark.c dma-mapping: benchmark: Don't starve others when doing the test 2024-09-12 11:10:23 +02:00
mapping.c dma: fix call order in dmam_free_coherent 2024-08-03 08:49:49 +02:00
ops_helpers.c
pool.c
remap.c
swiotlb.c swiotlb: Fix alignment checks when both allocation and DMA masks are present 2024-04-03 15:19:44 +02:00