Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: rkvdec: select GENERIC_ALLOCATOR
@ 2026-11-30 12:42 Pengpeng Hou
  0 siblings, 0 replies; only message in thread
From: Pengpeng Hou @ 2026-11-30 12:42 UTC (permalink / raw)
  To: detlev.casanova
  Cc: ezequiel, mchehab, heiko, linux-media, linux-rockchip,
	linux-arm-kernel, linux-kernel, hppiscas

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@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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 12:42 [PATCH] media: rkvdec: select GENERIC_ALLOCATOR Pengpeng Hou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox