diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-08-29 18:58:37 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2024-09-02 10:58:32 +0300 |
commit | 5bf472058ffb43baf6a4cdfe1d7f58c4c194c688 (patch) | |
tree | c01588d0c52d19d23c7c4785db8c5b14b9310b39 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2bb3fc536d692d43cd55396ecff73c7691eeae85 (diff) | |
download | linux-5bf472058ffb43baf6a4cdfe1d7f58c4c194c688.tar.xz |
drm/i915/fence: Mark debug_fence_init_onstack() with __maybe_unused
When debug_fence_init_onstack() is unused (CONFIG_DRM_I915_SELFTEST=n),
it prevents kernel builds with clang, `make W=1` and CONFIG_WERROR=y:
.../i915_sw_fence.c:97:20: error: unused function 'debug_fence_init_onstack' [-Werror,-Wunused-function]
97 | static inline void debug_fence_init_onstack(struct i915_sw_fence *fence)
| ^~~~~~~~~~~~~~~~~~~~~~~~
Fix this by marking debug_fence_init_onstack() with __maybe_unused.
See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static
inline functions for W=1 build").
Fixes: 214707fc2ce0 ("drm/i915/selftests: Wrap a timer into a i915_sw_fence")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240829155950.1141978-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions