[PATCH] media: rkvdec: select GENERIC_ALLOCATOR
Pengpeng Hou
hppiscas at 163.com
Mon Nov 30 04:42:03 PST 2026
The RKVDEC RCB/SRAM implementation calls gen_pool allocation and
free helpers, but VIDEO_ROCKCHIP_VDEC does not select
GENERIC_ALLOCATOR. Cross-platform compile-test configurations need
not enable genalloc via the Rockchip platform and can therefore fail
to link the decoder.
Select GENERIC_ALLOCATOR from the driver that uses these helpers.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: e5640dbb991c ("media: rkvdec: Add RCB and SRAM support")
Signed-off-by: Pengpeng Hou <hppiscas at 163.com>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/media/platform/rockchip/rkvdec/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/platform/rockchip/rkvdec/Kconfig b/drivers/media/platform/rockchip/rkvdec/Kconfig
index 5f3bdd8..1617012 100644
--- a/drivers/media/platform/rockchip/rkvdec/Kconfig
+++ b/drivers/media/platform/rockchip/rkvdec/Kconfig
@@ -9,6 +9,7 @@ config VIDEO_ROCKCHIP_VDEC
select V4L2_MEM2MEM_DEV
select V4L2_H264
select V4L2_VP9
+ select GENERIC_ALLOCATOR
help
Support for the Rockchip Video Decoder IP present on Rockchip SoCs,
which accelerates video decoding.
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
More information about the Linux-rockchip
mailing list