From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CE3E2F3620 for ; Mon, 16 Mar 2026 08:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773651191; cv=none; b=XqIBtX0oBIma3ngAZQn4iwYUErBkMiyz+nFxZgAZAl0fz8hApX/GPoJwFKNz5/kN/iIqowtAePuXuxq478jv/9dvXWEQMOp5uY2LNhdHNLoxW+Eq6rm+tq2hde2cHgn7QVMgfa+x4CRJ7XD4dN6XVmMJXLE2QM7R2Vvfbm11V6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773651191; c=relaxed/simple; bh=PI/mAYTBRcU4Lz4+ZDh76VUhW4ibWpPBttE/6cvygZQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=pOyAJ4UlDT9nWuSbkUhcl/kQbt+XhskCdTuqF2g8OsKFi8I6tT6iR1gMcfkZpTpK+4oOqq5/XpjgCjguaE+rsXDpjlmfxfRMdJUUJZ7lz+aWPvZcEqHnfncHi3vDgGeqiu+MBeN+9IFaKqQM/scr4EovlQcHdkKsibvesoupMvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fyqO4+zR; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fyqO4+zR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773651190; x=1805187190; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=PI/mAYTBRcU4Lz4+ZDh76VUhW4ibWpPBttE/6cvygZQ=; b=fyqO4+zRigYr7aOCUWM8QwpdPPAdiSF/3AlHMTrhNStx/bmsECeKXzuz tSBhhPhKQFzKW+/TbqSK8QSlNcEqbS9BwwSJt0ykIcniihvEnP5YKZsIk BgYIJ+S9NzjlAiWzqbctgWOsTyE63Srz5HCjrcfuI0xmD4qlaMTcCKtlC BIIFfdcl0oMu4Y2BcDZSiWp8MncbffYBXlUlz4V28sUSdLaLu+MS1Tiqz tq/bd18zFv4MvR52LV6bbi3HL7XRjEnTVgBSN2F3pvVtyS+8yJOoRD18n UxXtGNp8Cp+/LuddgAwRbn0CXmzAG0gby8bVaj7JHg6BhA+x3xltb7rsL g==; X-CSE-ConnectionGUID: R1/k6+E4SY2sQq58gyLzoQ== X-CSE-MsgGUID: dzVvlyIVSo+1BKuHf+x19g== X-IronPort-AV: E=McAfee;i="6800,10657,11730"; a="74697093" X-IronPort-AV: E=Sophos;i="6.23,123,1770624000"; d="scan'208";a="74697093" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2026 01:53:10 -0700 X-CSE-ConnectionGUID: lbZZBjlgQ7iKsGNu2li5Ig== X-CSE-MsgGUID: salQm0erT+KA4U7veGXdBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,123,1770624000"; d="scan'208";a="222050115" Received: from mjarzebo-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.238]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2026 01:52:54 -0700 From: Jani Nikula To: Hou Wenlong , linux-kernel@vger.kernel.org Cc: Hou Wenlong , Alex Deucher , Alex Hung , Alvin Lee , amd-gfx@lists.freedesktop.org, Ankit Nautiyal , Aurabindo Pillai , Ausef Yousof , Bhuvanachandra Pinninti , Chaitanya Kumar Borah , Charlene Liu , Chenyu Chen , Chris Park , Christian =?utf-8?Q?K=C3=B6nig?= , David Airlie , Dillon Varone , Dmytro Laktyushkin , dri-devel@lists.freedesktop.org, Gustavo Sousa , Harold Sun , Harry Wentland , intel-gfx@lists.freedesktop.org, 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 =?utf-8?Q?Krist=C3=B3f?= , Tvrtko Ursulin , Wayne Lin , Wenjing Liu , Yan Li , Zhenyu Wang , Zhi Wang Subject: Re: [PATCH 1/2] drm/i915/gvt: Rename struct 'pixel_format' to 'gvt_pixel_format' In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland References: Date: Mon, 16 Mar 2026 10:52:51 +0200 Message-ID: <832d5f67f05edfb9c97694a8f7bada0104d1be67@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, 16 Mar 2026, Hou Wenlong 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 Reviewed-by: Jani Nikula 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