From f507d0f060ba25768a4c98d627e36219b51873d6 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 12 Sep 2024 23:52:33 +0000 Subject: [PATCH] drm/i915/fence: Mark debug_fence_init_onstack() with __maybe_unused From Andy Shevchenko a65ebba8733727ffd9d0de78899ea6ef1791ebc7 in linux-6.6.y/6.6.51 fcd9e8afd546f6ced378d078345a89bf346d065e 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 7ff0b47de66..c9019ca9ca8 100644 --- a/sys/dev/pci/drm/i915/i915_sw_fence.c +++ b/sys/dev/pci/drm/i915/i915_sw_fence.c @@ -51,7 +51,7 @@ static inline void debug_fence_init(struct i915_sw_fence *fence) debug_object_init(fence, &i915_sw_fence_debug_descr); } -static inline void debug_fence_init_onstack(struct i915_sw_fence *fence) +static inline __maybe_unused void debug_fence_init_onstack(struct i915_sw_fence *fence) { debug_object_init_on_stack(fence, &i915_sw_fence_debug_descr); } @@ -94,7 +94,7 @@ static inline void debug_fence_init(struct i915_sw_fence *fence) { } -static inline void debug_fence_init_onstack(struct i915_sw_fence *fence) +static inline __maybe_unused void debug_fence_init_onstack(struct i915_sw_fence *fence) { } -- 2.20.1