Skip to content

drm: Fix namespace clashes with 'pixel_format'

Hou Wenlong amd-gfx dri-devel intel-gfx lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/i915/gvt: Rename struct 'pixel_format' to 'gvt_pixel_format'drivers/gpu/drm/i915/gvt/fb_decoder.c+3 -31 reply
2/2drm/amd/display: Rename enum 'pixel_format' to 'dc_pixel_format'drivers/gpu/drm/amd/display/dc/core/dc_resource.c drivers/gpu/drm/amd/display/dc/dc_hw_types.h drivers/gpu/drm/amd/display/dc/dc_spl_translate.c +4 more+11 -101 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJani NikulaAlex Hung
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] drm: Fix namespace clashes with 'pixel_format'

The 'pixel_format' structure is defined in include/video/pixel_format.h. However, DRM also defines a local structure with the same name, which leads to namespace clashes as reported in [0]. As suggested in [1], rename the 'pixel_format' definitions in drivers/drm by adding a prefix to avoid the conflict.

[0]: https://lore.kernel.org/lkml/[email protected]
[1]: https://lore.kernel.org/lkml/20260313122808.GAabQC2Bmul9Odt-dX@fat_crate.local

Hou Wenlong (2):
drm/i915/gvt: Rename struct 'pixel_format' to 'gvt_pixel_format' drm/amd/display: Rename enum 'pixel_format' to 'dc_pixel_format'

 drivers/gpu/drm/amd/display/dc/core/dc_resource.c           | 4 ++--
 drivers/gpu/drm/amd/display/dc/dc_hw_types.h                | 2 +-
 drivers/gpu/drm/amd/display/dc/dc_spl_translate.c           | 3 ++-
 drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c   | 4 ++--
 drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c | 4 ++--
 drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h           | 2 +-
 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h           | 2 +-
 drivers/gpu/drm/i915/gvt/fb_decoder.c                       | 6 +++---
 8 files changed, 14 insertions(+), 13 deletions(-)

--
2.31.1