From: Kory Maincent <kory.maincent@bootlin.com>
To: Luca Ceresoli <luca.ceresoli@bootlin.com>,
Herve Codina <herve.codina@bootlin.com>,
"Kory Maincent (TI.com)" <kory.maincent@bootlin.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Cc: Bajjuri Praneeth <praneeth@ti.com>,
kernel test robot <lkp@intel.com>,
thomas.petazzoni@bootlin.com, Jyri Sarha <jyri.sarha@iki.fi>,
Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Subject: [PATCH] drm/tilcdc: Fix type mismatch
Date: Thu, 5 Mar 2026 17:39:06 +0100 [thread overview]
Message-ID: <20260305163907.717719-1-kory.maincent@bootlin.com> (raw)
From: "Kory Maincent (TI)" <kory.maincent@bootlin.com>
cpu_to_be32() returns a __be32 big-endian value, but the compound literals
passed to tilcdc_panel_update_prop() were typed as u32. This causes a
sparse type mismatch warning. Fix it by using __be32 as the compound
literal type to match the return type of cpu_to_be32().
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202602200130.LjofC7YE-lkp@intel.com/
Fixes: 0ff223d991477 ("drm/tilcdc: Convert legacy panel binding via DT overlay at boot time")
Signed-off-by: Kory Maincent (TI) <kory.maincent@bootlin.com>
---
drivers/gpu/drm/tilcdc/tilcdc_panel_legacy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel_legacy.c b/drivers/gpu/drm/tilcdc/tilcdc_panel_legacy.c
index 37a69b3cf04b2..2e7b3e87fea18 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_panel_legacy.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_panel_legacy.c
@@ -105,14 +105,14 @@ static int __init tilcdc_panel_copy_props(struct device_node *old_panel,
if (!invert_pxl_clk) {
ret = tilcdc_panel_update_prop(&ocs, new_timing, "pixelclk-active",
- &(u32){cpu_to_be32(1)}, sizeof(u32));
+ &(__be32){cpu_to_be32(1)}, sizeof(__be32));
if (ret)
goto destroy_ocs;
}
if (!sync_edge) {
ret = tilcdc_panel_update_prop(&ocs, new_timing, "syncclk-active",
- &(u32){cpu_to_be32(1)}, sizeof(u32));
+ &(__be32){cpu_to_be32(1)}, sizeof(__be32));
if (ret)
goto destroy_ocs;
}
--
2.43.0
next reply other threads:[~2026-03-05 16:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 16:39 Kory Maincent [this message]
2026-03-13 16:57 ` Luca Ceresoli
2026-03-17 16:57 ` Luca Ceresoli
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=20260305163907.717719-1-kory.maincent@bootlin.com \
--to=kory.maincent@bootlin.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=herve.codina@bootlin.com \
--cc=jyri.sarha@iki.fi \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=luca.ceresoli@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=praneeth@ti.com \
--cc=simona@ffwll.ch \
--cc=thomas.petazzoni@bootlin.com \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=tzimmermann@suse.de \
/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
Powered by JetHome