[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Make for_each_engine_masked work on intel_gt
Patchwork
patchwork at emeril.freedesktop.org
Wed Oct 16 23:21:32 UTC 2019
== Series Details ==
Series: drm/i915: Make for_each_engine_masked work on intel_gt
URL : https://patchwork.freedesktop.org/series/68111/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
df5679250335 drm/i915: Make for_each_engine_masked work on intel_gt
-:202: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'gt__' - possible side-effects?
#202: FILE: drivers/gpu/drm/i915/i915_drv.h:1423:
+#define for_each_engine_masked(engine__, gt__, mask__, tmp__) \
+ for ((tmp__) = (mask__) & INTEL_INFO((gt__)->i915)->engine_mask; \
(tmp__) ? \
+ ((engine__) = (gt__)->engine[__mask_next_bit(tmp__)]), 1 : \
0;)
-:202: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tmp__' - possible side-effects?
#202: FILE: drivers/gpu/drm/i915/i915_drv.h:1423:
+#define for_each_engine_masked(engine__, gt__, mask__, tmp__) \
+ for ((tmp__) = (mask__) & INTEL_INFO((gt__)->i915)->engine_mask; \
(tmp__) ? \
+ ((engine__) = (gt__)->engine[__mask_next_bit(tmp__)]), 1 : \
0;)
total: 0 errors, 0 warnings, 2 checks, 138 lines checked
More information about the Intel-gfx
mailing list