diff options
| author | Sean Chang <seanwascoding@gmail.com> | 2026-08-19 23:12:16 +0800 |
|---|---|---|
| committer | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2026-09-02 17:43:22 +0200 |
| commit | cb6a133bc75bc4c5b25f7c278b6c74bf46a3d71b (patch) | |
| tree | 0943bbfd33464f795a57e826902eb42ee7709dac /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 23df2e995df85aa1fc7afaeb9a11195b685484bc (diff) | |
| download | linux-cb6a133bc75bc4c5b25f7c278b6c74bf46a3d71b.tar.gz linux-cb6a133bc75bc4c5b25f7c278b6c74bf46a3d71b.zip | |
drm: bridge: dw_hdmi: Fix constant truncation warning on phy_mask
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.
Fix this by explicitly masking the inverted 32-bit result with 0xFF
to keep only the lower byte and prevent implicit upper-bit truncation.
Signed-off-by: Sean Chang <seanwascoding@gmail.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20260819151216.56833-1-seanwascoding@gmail.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
