public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm: Fix namespace clashes with 'pixel_format'
@ 2026-03-16  3:46 Hou Wenlong
  2026-03-16  3:46 ` [PATCH 1/2] drm/i915/gvt: Rename struct 'pixel_format' to 'gvt_pixel_format' Hou Wenlong
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Hou Wenlong @ 2026-03-16  3:46 UTC (permalink / raw)
  To: linux-kernel
  Cc: Hou Wenlong, Alex Deucher, Alex Hung, Alvin Lee, amd-gfx,
	Ankit Nautiyal, Aurabindo Pillai, Ausef Yousof,
	Bhuvanachandra Pinninti, Chaitanya Kumar Borah, Charlene Liu,
	Chenyu Chen, Chris Park, Christian König, David Airlie,
	Dillon Varone, Dmytro Laktyushkin, dri-devel, Gustavo Sousa,
	Harold Sun, Harry Wentland, intel-gfx, Jani Nikula,
	Joonas Lahtinen, Jun Lei, Karthi Kandasamy, Leo Chen, Leo Li,
	Lohita Mudimela, Lucas De Marchi, Meenakshikumar Somasundaram,
	Nicholas Carbones, Ray Wu, Relja Vojvodic, Rodrigo Siqueira,
	Rodrigo Vivi, Ryan Seto, Samson Tam, Simona Vetter,
	Timur Kristóf, Tvrtko Ursulin, Wayne Lin, Wenjing Liu,
	Yan Li, Zhenyu Wang, Zhi Wang

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/aahBPzflrEJ2FPx0@sirena.org.uk
[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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-23 18:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16  3:46 [PATCH 0/2] drm: Fix namespace clashes with 'pixel_format' Hou Wenlong
2026-03-16  3:46 ` [PATCH 1/2] drm/i915/gvt: Rename struct 'pixel_format' to 'gvt_pixel_format' Hou Wenlong
2026-03-16  8:52   ` Jani Nikula
2026-03-16  3:46 ` [PATCH 2/2] drm/amd/display: Rename enum 'pixel_format' to 'dc_pixel_format' Hou Wenlong
2026-03-20  3:58   ` Alex Hung
2026-03-23 18:50 ` ✗ LGCI.VerificationFailed: failure for drm: Fix namespace clashes with 'pixel_format' Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox