Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Daniel Baluta" <daniel.baluta@nxp.com>
Cc: imx@lists.linux.dev, Frank.Li@kernel.org
Subject: Re: [PATCH v6 1/4] drm/msm: Guard the QCOM_UBWC_CONFIG select with QCOM_SMEM
Date: Mon, 17 Aug 2026 12:41:55 +0000	[thread overview]
Message-ID: <20260817124155.C90241F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260817123542.48475-2-daniel.baluta@nxp.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Conditionally selecting QCOM_UBWC_CONFIG without adding `depends on QCOM_UBWC_CONFIG || QCOM_UBWC_CONFIG=n` causes an undefined reference linker error when DRM_MSM is built-in (=y) and QCOM_UBWC_CONFIG is a module (=m).
--

--- Patch [1]: [PATCH v6 1/4] drm/msm: Guard the QCOM_UBWC_CONFIG select with QCOM_SMEM ---
commit 353149f56be7035f090eb09914820d684b1f59f4
Author: Daniel Baluta <daniel.baluta@nxp.com>

drm/msm: Guard the QCOM_UBWC_CONFIG select with QCOM_SMEM

This commit guards the DRM_MSM select of QCOM_UBWC_CONFIG with an
architecture and SMEM check. It also adds a dependency to ensure a
built-in driver is never selected against a modular SMEM.

> diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig
> index 09469d56513b0..ed1c4775d1e92 100644
> --- a/drivers/gpu/drm/msm/Kconfig
> +++ b/drivers/gpu/drm/msm/Kconfig
[ ... ]
> @@ -22,7 +23,7 @@ config DRM_MSM
>  	select TMPFS
>  	select QCOM_SCM
>  	select QCOM_PAS
> -	select QCOM_UBWC_CONFIG
> +	select QCOM_UBWC_CONFIG if ARCH_QCOM && QCOM_SMEM

[Severity: Low]
Does this conditional select cause an undefined reference linker error when
DRM_MSM is built-in (=y) and QCOM_UBWC_CONFIG is built as a module (=m)?

If the kernel is configured with CONFIG_DRM_MSM=y, CONFIG_COMPILE_TEST=y,
and CONFIG_ARCH_QCOM=n, this conditional select is bypassed. 

If another driver (such as VIDEO_QCOM_IRIS) then selects QCOM_UBWC_CONFIG
as a module, the built-in DRM_MSM driver will fail to link. This happens
because include/linux/soc/qcom/ubwc.h uses IS_ENABLED(CONFIG_QCOM_UBWC_CONFIG)
instead of IS_REACHABLE(), so the header provides an external declaration
rather than a static inline stub.

Should this config also include "depends on QCOM_UBWC_CONFIG ||
QCOM_UBWC_CONFIG=n" to prevent the built-in driver from being selected
against a missing or modular UBWC dependency?

>  	select WANT_DEV_COREDUMP
>  	select SND_SOC_HDMI_CODEC if SND_SOC
>  	select SYNC_FILE

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260817123542.48475-1-daniel.baluta@nxp.com?part=1

  reply	other threads:[~2026-08-17 12:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-17 12:35 [PATCH v6 0/4] soc: qcom: ubwc: Fix link error when QCOM_SMEM=n Daniel Baluta
2026-08-17 12:35 ` [PATCH v6 1/4] drm/msm: Guard the QCOM_UBWC_CONFIG select with QCOM_SMEM Daniel Baluta
2026-08-17 12:41   ` sashiko-bot [this message]
2026-08-17 12:35 ` [PATCH v6 2/4] media: iris: " Daniel Baluta
2026-08-18  0:57   ` Dmitry Baryshkov
2026-08-18  0:58   ` Dmitry Baryshkov
2026-08-17 12:35 ` [PATCH v6 3/4] soc: qcom: ubwc: Fix link error when QCOM_SMEM=n Daniel Baluta
2026-08-18  1:02   ` Dmitry Baryshkov
2026-08-17 12:35 ` [PATCH v6 4/4] soc: qcom: ubwc: Fix missing include Daniel Baluta
2026-08-17 12:42   ` sashiko-bot
2026-08-17 18:17 ` [PATCH v6 0/4] soc: qcom: ubwc: Fix link error when QCOM_SMEM=n Nathan Chancellor

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=20260817124155.C90241F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=daniel.baluta@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    /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