]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Fix enum decl warnings
authorGaghik Khachatrian <gaghik.khachatrian@amd.com>
Thu, 30 Apr 2026 02:59:42 +0000 (22:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 May 2026 20:11:03 +0000 (16:11 -0400)
commite13d7181625d71c8e00360b68aba945e2f628693
tree023beddb678caac56e6a607b0f08cd325fd75992
parentd359986a2e06684846ee3c2037405ef1fc130f2d
drm/amd/display: Fix enum decl warnings

[Why]
warnings were triggered by enum forward declarations that are not
valid in C++ without an explicit underlying type.

[How]
- Replace problematic enum forward declarations with C++-safe forms where
  applicable.
- Use plain integer types for interface-only declarations that do not
  require strong enum typing.
- Update dependent winterface signatures and related type usage
  consistently.
- Add required include and type-visibility fixes to avoid follow-on parse
  and type-resolution issues.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com>
Signed-off-by: James Lin <pinglei.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dm_helpers.h
drivers/gpu/drm/amd/display/modules/inc/mod_color_types.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
drivers/gpu/drm/amd/display/modules/inc/mod_info_packet_types.h [new file with mode: 0644]