Open nickdesaulniers opened 5 years ago
Ah right, drivers/gpu/drm/i915
enables -Wall
after all of the warnings are disabled in the main Makefile or scripts/Kbuild.include
...
no
$ make LLVM=1 LLVM_IAS=1 -j72 drivers/gpu/drm/i915/ W=1
...
drivers/gpu/drm/i915/i915_sw_fence.c:95:20: warning: unused function 'debug_fence_init_onstack' [-Wunused-function]
static inline void debug_fence_init_onstack(struct i915_sw_fence *fence)
^
drivers/gpu/drm/i915/i915_sw_fence.c:116:20: warning: unused function 'debug_fence_free' [-Wunused-function]
static inline void debug_fence_free(struct i915_sw_fence *fence)
^
0 day bot has also reported this a few times: https://lore.kernel.org/lkml/202101081525.Gpv8oFGf-lkp@intel.com/
via: https://lore.kernel.org/r/CAKwvOd=7Jf13PDC9Q1FMhZUJQsq7Ggn=wRz5xpRY0YrU6tP9Kw@mail.gmail.com/
The first looks fishy (grep -r debug_fence_init_onstack), the second only has a callsite ifdef CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS.