From a85b40329d07d15a3a5b356d009a914b66a271d1 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 12 Sep 2024 23:54:17 +0000 Subject: [PATCH] drm/i915/fence: Mark debug_fence_free() with __maybe_unused 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/i915/i915_sw_fence.c b/sys/dev/pci/drm/i915/i915_sw_fence.c index c9019ca9ca8..8c883fbafe3 100644 --- a/sys/dev/pci/drm/i915/i915_sw_fence.c +++ b/sys/dev/pci/drm/i915/i915_sw_fence.c @@ -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) { } -- 2.20.1