From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 373BDF3D32A for ; Thu, 5 Mar 2026 16:39:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F0D010EC53; Thu, 5 Mar 2026 16:39:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="0dEcCp9A"; dkim-atps=neutral Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by gabe.freedesktop.org (Postfix) with ESMTPS id 19635886A4 for ; Thu, 5 Mar 2026 16:39:17 +0000 (UTC) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 62F82C4041E; Thu, 5 Mar 2026 16:39:33 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id BA20E5FF89; Thu, 5 Mar 2026 16:39:14 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4E112103697E2; Thu, 5 Mar 2026 17:39:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1772728753; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=nM8o+z1UN4hmilTN3aYBSUDk+EvUr86ZkveF9gKBlnk=; b=0dEcCp9Adyd+2ab44/pW7jrhhc8ExRLdnuoWK4weOSe6SjXTMzYL54Np4V1+uoxCIIGr+N SWClAli6APqnGzysw/M1IL25h0NkKJb7t8q5DHOBCptOgoRZBMKZSabL4pjwrtdzLE9kDx JMEHCTT8YzHmITGjmoqYzObqN44im9lPW49rO6dLoIlMvfbEUdqwKAMKO9gLctiPQT1Bx5 FE7t3kygRWwtH20oHiWttgCqd/8Qm2aqY7NRXGfY3uuXfqu2y//51FdwAmeHQNRLPqednM MxLwFiDOpjOH9KqQaY4XoIXP5pGV8onM0SLe2vSDylZ5RtjSj7WSlE6AjE5VZA== From: Kory Maincent To: Luca Ceresoli , Herve Codina , "Kory Maincent (TI.com)" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Bajjuri Praneeth , kernel test robot , thomas.petazzoni@bootlin.com, Jyri Sarha , Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Subject: [PATCH] drm/tilcdc: Fix type mismatch Date: Thu, 5 Mar 2026 17:39:06 +0100 Message-ID: <20260305163907.717719-1-kory.maincent@bootlin.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: "Kory Maincent (TI)" 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 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) --- 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