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
