Re: [PATCH v1] drm: bridge: dw_hdmi: Fix constant truncation warning on phy_mask
From: Luca Ceresoli
Date: Wed Sep 02 2026 - 12:28:12 EST
On Wed, 19 Aug 2026 23:12:16 +0800, Sean Chang wrote:
> In dw_hdmi_probe(), casting the bitwise complement of (HDMI_PHY_HPD |
> HDMI_PHY_RX_SENSE) directly to u8 triggers a compiler warning
> (-Wconstant-conversion).
>
> Due to C integer promotion rules, the bitwise OR and bitwise NOT are
> evaluated as 32-bit signed integers, producing 0xFFFFFF0D before being
> cast down to u8.
>
> [...]
Applied, thanks!
[1/1] drm: bridge: dw_hdmi: Fix constant truncation warning on phy_mask
commit: cb6a133bc75bc4c5b25f7c278b6c74bf46a3d71b
Best regards,
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com