Files
linux-stable-mirror/kernel
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
..
2024-07-05 09:14:34 +02:00
2025-05-02 07:44:13 +02:00
2023-12-20 15:17:37 +01:00
2023-11-28 16:56:16 +00:00
2024-10-17 15:12:00 +02:00
2024-04-10 16:19:01 +02:00
2025-03-13 12:50:02 +01:00
2024-10-17 15:11:27 +02:00