linux/drivers/gpu/drm/amd/display/modules
Gaghik Khachatrian 355408042a drm/amd/display: Fix implicit narrowing conversions in modules
[Why]: Implicit narrowing of wider integer types (unsigned int, uint64_t)
into narrower fields (uint8_t, uint16_t, unsigned short) has potential
truncation issues.

[How]: For each warning site, added ASSERT(<value> <= 0xFFFF/0xFF) for
debug-mode bounds verification followed by an explicit cast. Typed
intermediate variables introduced where needed for clarity.

No functional change intended.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2026-04-17 15:21:29 -04:00
..
color drm/amd/display: Fix Silence warnings 2026-03-23 14:15:31 -04:00
freesync drm/amd/display: Fix implicit narrowing conversions in modules 2026-04-17 15:21:29 -04:00
hdcp drm/amd/display: Fix Silence warnings 2026-03-23 14:15:31 -04:00
inc drm/amd/display: Revise VSC SDP header for Panel Replay 2025-12-08 13:56:36 -05:00
info_packet drm/amd/display: Revise VSC SDP header for Panel Replay 2025-12-08 13:56:36 -05:00
power drm/amd/display: Fix implicit narrowing conversions in modules 2026-04-17 15:21:29 -04:00
vmid drm/amd/display: Fix implicit narrowing conversions in modules 2026-04-17 15:21:29 -04:00