drm/i915/fence: Mark debug_fence_free() with __maybe_unused
authorjsg <jsg@openbsd.org>
Thu, 12 Sep 2024 23:54:17 +0000 (23:54 +0000)
committerjsg <jsg@openbsd.org>
Thu, 12 Sep 2024 23:54:17 +0000 (23:54 +0000)
From Andy Shevchenko
60d54a45dbbbac8af9f3352042bd30b527995aef in linux-6.6.y/6.6.51
f99999536128b14b5d765a9982763b5134efdd79 in mainline linux

sys/dev/pci/drm/i915/i915_sw_fence.c

index c9019ca..8c883fb 100644 (file)
@@ -77,7 +77,7 @@ static inline void debug_fence_destroy(struct i915_sw_fence *fence)
        debug_object_destroy(fence, &i915_sw_fence_debug_descr);
 }
 
-static inline void debug_fence_free(struct i915_sw_fence *fence)
+static inline __maybe_unused void debug_fence_free(struct i915_sw_fence *fence)
 {
        debug_object_free(fence, &i915_sw_fence_debug_descr);
        smp_wmb(); /* flush the change in state before reallocation */
@@ -115,7 +115,7 @@ static inline void debug_fence_destroy(struct i915_sw_fence *fence)
 {
 }
 
-static inline void debug_fence_free(struct i915_sw_fence *fence)
+static inline __maybe_unused void debug_fence_free(struct i915_sw_fence *fence)
 {
 }