Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: drop unused non-i915 IS_<PLATFORM> macros
Date: Fri, 10 Oct 2025 09:13:13 -0400	[thread overview]
Message-ID: <aOkGaTf2Sep7Z7nX@intel.com> (raw)
In-Reply-To: <20251010080021.1087315-1-jani.nikula@intel.com>

On Fri, Oct 10, 2025 at 11:00:21AM +0300, Jani Nikula wrote:
> The IS_LUNARLAKE(), IS_BATTLEMAGE(), and IS_PANTHERLAKE() macros were
> added for compatibility with the xe driver, for display needs, even
> though i915 does not support the platforms in question. Display has
> since moved away from the macros, and they are no longer needed. Remove.
> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/i915/i915_drv.h | 10 ----------
>  1 file changed, 10 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index 6e159bb8ad2f..adadb7e7836f 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -488,16 +488,6 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
>  #define IS_ALDERLAKE_P(i915) IS_PLATFORM(i915, INTEL_ALDERLAKE_P)
>  #define IS_DG2(i915)	IS_PLATFORM(i915, INTEL_DG2)
>  #define IS_METEORLAKE(i915) IS_PLATFORM(i915, INTEL_METEORLAKE)
> -/*
> - * Display code shared by i915 and Xe relies on macros like IS_LUNARLAKE,
> - * so we need to define these even on platforms that the i915 base driver
> - * doesn't support.  Ensure the parameter is used in the definition to
> - * avoid 'unused variable' warnings when compiling the shared display code
> - * for i915.
> - */
> -#define IS_LUNARLAKE(i915) (0 && i915)
> -#define IS_BATTLEMAGE(i915)  (0 && i915)
> -#define IS_PANTHERLAKE(i915) (0 && i915)
>  
>  #define IS_ARROWLAKE_H(i915) \
>  	IS_SUBPLATFORM(i915, INTEL_METEORLAKE, INTEL_SUBPLATFORM_ARL_H)
> -- 
> 2.47.3
> 

  parent reply	other threads:[~2025-10-10 13:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-10  8:00 [PATCH] drm/i915: drop unused non-i915 IS_<PLATFORM> macros Jani Nikula
2025-10-10 11:22 ` ✓ i915.CI.BAT: success for " Patchwork
2025-10-10 13:13 ` Rodrigo Vivi [this message]
2025-10-15  8:33   ` [PATCH] " Jani Nikula

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=aOkGaTf2Sep7Z7nX@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.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