public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Hou Wenlong <houwenlong.hwl@antgroup.com>, linux-kernel@vger.kernel.org
Cc: "Hou Wenlong" <houwenlong.hwl@antgroup.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Alex Hung" <alex.hung@amd.com>, "Alvin Lee" <alvin.lee2@amd.com>,
	amd-gfx@lists.freedesktop.org,
	"Ankit Nautiyal" <ankit.k.nautiyal@intel.com>,
	"Aurabindo Pillai" <aurabindo.pillai@amd.com>,
	"Ausef Yousof" <auyousof@amd.com>,
	"Bhuvanachandra Pinninti" <bpinnint@amd.com>,
	"Chaitanya Kumar Borah" <chaitanya.kumar.borah@intel.com>,
	"Charlene Liu" <charlene.liu@amd.com>,
	"Chenyu Chen" <chen-yu.chen@amd.com>,
	"Chris Park" <chris.park@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"David Airlie" <airlied@gmail.com>,
	"Dillon Varone" <dillon.varone@amd.com>,
	"Dmytro Laktyushkin" <dmytro.laktyushkin@amd.com>,
	dri-devel@lists.freedesktop.org,
	"Gustavo Sousa" <gustavo.sousa@intel.com>,
	"Harold Sun" <Harold.Sun@amd.com>,
	"Harry Wentland" <harry.wentland@amd.com>,
	intel-gfx@lists.freedesktop.org,
	"Joonas Lahtinen" <joonas.lahtinen@linux.intel.com>,
	"Jun Lei" <jun.lei@amd.com>,
	"Karthi Kandasamy" <karthi.kandasamy@amd.com>,
	"Leo Chen" <leo.chen@amd.com>, "Leo Li" <sunpeng.li@amd.com>,
	"Lohita Mudimela" <lohita.mudimela@amd.com>,
	"Lucas De Marchi" <demarchi@kernel.org>,
	"Meenakshikumar Somasundaram"
	<meenakshikumar.somasundaram@amd.com>,
	"Nicholas Carbones" <Nicholas.Carbones@amd.com>,
	"Ray Wu" <ray.wu@amd.com>, "Relja Vojvodic" <rvojvodi@amd.com>,
	"Rodrigo Siqueira" <siqueira@igalia.com>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
	"Ryan Seto" <ryanseto@amd.com>, "Samson Tam" <Samson.Tam@amd.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Timur Kristóf" <timur.kristof@gmail.com>,
	"Tvrtko Ursulin" <tursulin@ursulin.net>,
	"Wayne Lin" <wayne.lin@amd.com>,
	"Wenjing Liu" <wenjing.liu@amd.com>, "Yan Li" <yan.li@amd.com>,
	"Zhenyu Wang" <zhenyuw.linux@gmail.com>,
	"Zhi Wang" <zhi.wang.linux@gmail.com>
Subject: Re: [PATCH 1/2] drm/i915/gvt: Rename struct 'pixel_format' to 'gvt_pixel_format'
Date: Mon, 16 Mar 2026 10:52:51 +0200	[thread overview]
Message-ID: <832d5f67f05edfb9c97694a8f7bada0104d1be67@intel.com> (raw)
In-Reply-To: <f5e603648f6733047bbf74a5af6ae4b4436a44f6.1773629419.git.houwenlong.hwl@antgroup.com>

On Mon, 16 Mar 2026, Hou Wenlong <houwenlong.hwl@antgroup.com> wrote:
> Rename the local struct 'pixel_format' to 'gvt_pixel_format' to avoid
> potential name conflicts with the 'pixel_format' struct defined in
> include/video/pixel_format.h.
>
> Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

and ack for merging via whichever branch you prefer.

> ---
>  drivers/gpu/drm/i915/gvt/fb_decoder.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gvt/fb_decoder.c b/drivers/gpu/drm/i915/gvt/fb_decoder.c
> index d7abf38df532..25fffc77f138 100644
> --- a/drivers/gpu/drm/i915/gvt/fb_decoder.c
> +++ b/drivers/gpu/drm/i915/gvt/fb_decoder.c
> @@ -48,13 +48,13 @@
>  #include "i915_reg.h"
>  
>  #define PRIMARY_FORMAT_NUM	16
> -struct pixel_format {
> +struct gvt_pixel_format {
>  	int drm_format;	/* Pixel format in DRM definition */
>  	int bpp; /* Bits per pixel, 0 indicates invalid */
>  	const char *desc; /* The description */
>  };
>  
> -static const struct pixel_format bdw_pixel_formats[] = {
> +static const struct gvt_pixel_format bdw_pixel_formats[] = {
>  	{DRM_FORMAT_C8, 8, "8-bit Indexed"},
>  	{DRM_FORMAT_RGB565, 16, "16-bit BGRX (5:6:5 MSB-R:G:B)"},
>  	{DRM_FORMAT_XRGB8888, 32, "32-bit BGRX (8:8:8:8 MSB-X:R:G:B)"},
> @@ -67,7 +67,7 @@ static const struct pixel_format bdw_pixel_formats[] = {
>  	{}
>  };
>  
> -static const struct pixel_format skl_pixel_formats[] = {
> +static const struct gvt_pixel_format skl_pixel_formats[] = {
>  	{DRM_FORMAT_YUYV, 16, "16-bit packed YUYV (8:8:8:8 MSB-V:Y2:U:Y1)"},
>  	{DRM_FORMAT_UYVY, 16, "16-bit packed UYVY (8:8:8:8 MSB-Y2:V:Y1:U)"},
>  	{DRM_FORMAT_YVYU, 16, "16-bit packed YVYU (8:8:8:8 MSB-U:Y2:V:Y1)"},

-- 
Jani Nikula, Intel

  reply	other threads:[~2026-03-16  8:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=832d5f67f05edfb9c97694a8f7bada0104d1be67@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=Harold.Sun@amd.com \
    --cc=Nicholas.Carbones@amd.com \
    --cc=Samson.Tam@amd.com \
    --cc=airlied@gmail.com \
    --cc=alex.hung@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=alvin.lee2@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=aurabindo.pillai@amd.com \
    --cc=auyousof@amd.com \
    --cc=bpinnint@amd.com \
    --cc=chaitanya.kumar.borah@intel.com \
    --cc=charlene.liu@amd.com \
    --cc=chen-yu.chen@amd.com \
    --cc=chris.park@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=demarchi@kernel.org \
    --cc=dillon.varone@amd.com \
    --cc=dmytro.laktyushkin@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gustavo.sousa@intel.com \
    --cc=harry.wentland@amd.com \
    --cc=houwenlong.hwl@antgroup.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=jun.lei@amd.com \
    --cc=karthi.kandasamy@amd.com \
    --cc=leo.chen@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lohita.mudimela@amd.com \
    --cc=meenakshikumar.somasundaram@amd.com \
    --cc=ray.wu@amd.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=rvojvodi@amd.com \
    --cc=ryanseto@amd.com \
    --cc=simona@ffwll.ch \
    --cc=siqueira@igalia.com \
    --cc=sunpeng.li@amd.com \
    --cc=timur.kristof@gmail.com \
    --cc=tursulin@ursulin.net \
    --cc=wayne.lin@amd.com \
    --cc=wenjing.liu@amd.com \
    --cc=yan.li@amd.com \
    --cc=zhenyuw.linux@gmail.com \
    --cc=zhi.wang.linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox