Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: detlev.casanova@collabora.com
Cc: ezequiel@vanguardiasur.com.ar, mchehab@kernel.org,
	heiko@sntech.de, linux-media@vger.kernel.org,
	linux-rockchip@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, hppiscas@163.com
Subject: [PATCH] media: rkvdec: select GENERIC_ALLOCATOR
Date: Mon, 30 Nov 2026 20:42:03 +0800	[thread overview]
Message-ID: <20261130124203.74167-1-hppiscas@163.com> (raw)

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



                 reply	other threads:[~2026-11-30 13:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130124203.74167-1-hppiscas@163.com \
    --to=hppiscas@163.com \
    --cc=detlev.casanova@collabora.com \
    --cc=ezequiel@vanguardiasur.com.ar \
    --cc=heiko@sntech.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=mchehab@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox