media: rkvdec: select GENERIC_ALLOCATOR
Subsystems (3)
PATCH 1/1 media: rkvdec: select GENERIC_ALLOCATOR
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 <[email protected]>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/media/platform/rockchip/rkvdec/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/media/platform/rockchip/rkvdec/Kconfig +1 -0
@@ -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