drm/i915/fence: Mark debug_fence_init_onstack() with __maybe_unused
authorjsg <jsg@openbsd.org>
Thu, 12 Sep 2024 23:52:33 +0000 (23:52 +0000)
committerjsg <jsg@openbsd.org>
Thu, 12 Sep 2024 23:52:33 +0000 (23:52 +0000)
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

index 7ff0b47..c9019ca 100644 (file)
@@ -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)
 {
 }