]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/compat: convert uncore macro to static inlines
authorJani Nikula <jani.nikula@intel.com>
Mon, 22 Dec 2025 12:34:02 +0000 (14:34 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 29 Dec 2025 10:31:13 +0000 (12:31 +0200)
Use static inline instead of macro for
intel_uncore_arm_unclaimed_mmio_detection() to avoid the need for
__maybe_unused annotations.

v2: Rebase, intel_uncore_arm_unclaimed_mmio_detection()

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> # v1
Reviewed-by: Michał Grzelak <michal.grzelak@intel.com>
Link: https://patch.msgid.link/7ddee71952315e70e4a7df23638100b664e293bd.1766406794.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h

index 1e3c5761fc5e85e8691043022bda22065524b370..c7f4d5e3b4d189b20795a86fa67c584cb5f2ccd5 100644 (file)
@@ -7381,7 +7381,7 @@ static void intel_atomic_dsb_finish(struct intel_atomic_state *state,
 static void intel_atomic_commit_tail(struct intel_atomic_state *state)
 {
        struct intel_display *display = to_intel_display(state);
-       struct drm_i915_private __maybe_unused *dev_priv = to_i915(display->drm);
+       struct drm_i915_private *dev_priv = to_i915(display->drm);
        struct intel_crtc_state *new_crtc_state, *old_crtc_state;
        struct intel_crtc *crtc;
        struct intel_power_domain_mask put_domains[I915_MAX_PIPES] = {};
index 0d60a0bf2e4b3acd9d4edd6d6054f9e759e13ee2..c05d4c4292d3c5101e3e0f1644036caecf927529 100644 (file)
@@ -152,6 +152,10 @@ static inline void intel_uncore_write_notrace(struct intel_uncore *uncore,
        xe_mmio_write32(__compat_uncore_to_mmio(uncore), reg, val);
 }
 
-#define intel_uncore_arm_unclaimed_mmio_detection(x) do { } while (0)
+static inline bool
+intel_uncore_arm_unclaimed_mmio_detection(struct intel_uncore *uncore)
+{
+       return false;
+}
 
 #endif /* __INTEL_UNCORE_H__ */