On 1/26/22 21:04, akpm@linux-foundation.org wrote:
on x86_64: (from linux-next.patch)
HDRTEST drivers/gpu/drm/i915/i915_gem_evict.h In file included from <command-line>:0:0: ./../drivers/gpu/drm/i915/i915_gem_evict.h:15:15: error: ‘struct i915_gem_ww_ctx’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct i915_gem_ww_ctx *ww, ^~~~~~~~~~~~~~~ ./../drivers/gpu/drm/i915/i915_gem_evict.h:21:14: error: ‘struct i915_gem_ww_ctx’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct i915_gem_ww_ctx *ww, ^~~~~~~~~~~~~~~ ./../drivers/gpu/drm/i915/i915_gem_evict.h:25:16: error: ‘struct i915_gem_ww_ctx’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] struct i915_gem_ww_ctx *ww); ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
On Wed, 26 Jan 2022, Randy Dunlap rdunlap@infradead.org wrote:
Thanks for the report.
This is only visible with CONFIG_DRM_I915_WERROR=y which depends on COMPILE_TEST=n. We use the "HDRTEST" and -Werror for development and CI to keep the driver clean, but it's not really intended for general consumption. Usually when something like this even hits the tree it's because of a merge mishap somewhere down the line.
BR, Jani.
dri-devel@lists.freedesktop.org