]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/bmg: Define IS_BATTLEMAGE macro
authorBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Tue, 30 Apr 2024 17:28:33 +0000 (10:28 -0700)
committerRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Fri, 3 May 2024 19:34:02 +0000 (12:34 -0700)
commit37153b0ad3d3c26fd4b6091b124245a4401da6fd
tree0b9c106f783fc97c1b19d76b629781027b3ed450
parent7f071dde0bc97d40d8e80a374e155b6c0cd72174
drm/i915/bmg: Define IS_BATTLEMAGE macro

Display code uses IS_BATTLEMAGE macro but the platform support doesn't
exist in i915. So fake IS_BATTLEMAGE macro defined to enable building
i915 code.  We should make sure the macro parameter is used in the
always-false expression so that we don't run into "unused variable"
warnings from i915 builds if the IS_BATTLEMAGE() check is the only place
the i915 pointer gets used in a function.

While we're at it, also update the IS_LUNARLAKE macro to include the
parameter in the false expression for consistency.

Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240430172850.1881525-3-radhakrishna.sripada@intel.com
drivers/gpu/drm/i915/i915_drv.h