[Intel-gfx] [PATCH] drm/i915: Remove __maybe_unused from used

Sripada, Radhakrishna radhakrishna.sripada at intel.com
Wed Dec 14 20:23:52 UTC 2022



> -----Original Message-----
> From: De Marchi, Lucas <lucas.demarchi at intel.com>
> Sent: Wednesday, December 14, 2022 11:50 AM
> To: intel-gfx at lists.freedesktop.org
> Cc: Sripada, Radhakrishna <radhakrishna.sripada at intel.com>; De Marchi, Lucas
> <lucas.demarchi at intel.com>
> Subject: [PATCH] drm/i915: Remove __maybe_unused from used
> 
> The attribute __maybe_unused should remain only until the respective
> info is not in the pciidlist. The info can't be added together
> with its definition because that would cause the driver to automatically
> probe for the device, while it's still not ready for that. However once
> pciidlist contains it, the attribute can be removed.
> 
> Fixes: 7835303982d1 ("drm/i915/mtl: Add MeteorLake PCI IDs")
Thank you for catching this.

Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada at intel.com>

-RK
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
> ---
>  drivers/gpu/drm/i915/i915_pci.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
> index 3f803c1280c0..fe28104d2ae4 100644
> --- a/drivers/gpu/drm/i915/i915_pci.c
> +++ b/drivers/gpu/drm/i915/i915_pci.c
> @@ -1130,7 +1130,6 @@ static const struct intel_gt_definition
> xelpmp_extra_gt[] = {
>  	{}
>  };
> 
> -__maybe_unused
>  static const struct intel_device_info mtl_info = {
>  	XE_HP_FEATURES,
>  	XE_LPDP_FEATURES,
> --
> 2.38.1



More information about the Intel-gfx mailing list