Re: [Intel-gfx] [PATCH] drm/i915: mark wait_for_engine() __maybe_unused

2017-05-23 Thread Tvrtko Ursulin
Hi, On 21/05/2017 05:03, Nick Desaulniers wrote: This solves a warning when compiling the driver with Clang, -Werror enabled, and CONFIG_DRM_I915_DEBUG_GEM unset, since Clang warns that: drivers/gpu/drm/i915/i915_gem.c:3274:12: error: function 'wait_for_engine' is not needed and will not

[PATCH] drm/i915: mark wait_for_engine() __maybe_unused

2017-05-21 Thread Nick Desaulniers
This solves a warning when compiling the driver with Clang, -Werror enabled, and CONFIG_DRM_I915_DEBUG_GEM unset, since Clang warns that: drivers/gpu/drm/i915/i915_gem.c:3274:12: error: function 'wait_for_engine' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]