[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Make for_each_engine_masked work on intel_gt (rev2)

Patchwork patchwork at emeril.freedesktop.org
Thu Oct 17 04:09:59 UTC 2019


== Series Details ==

Series: drm/i915: Make for_each_engine_masked work on intel_gt (rev2)
URL   : https://patchwork.freedesktop.org/series/68111/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
617c72e1ab51 drm/i915: Make for_each_engine_masked work on intel_gt
-:226: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'gt__' - possible side-effects?
#226: FILE: drivers/gpu/drm/i915/i915_drv.h:1418:
+#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;)

-:226: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tmp__' - possible side-effects?
#226: FILE: drivers/gpu/drm/i915/i915_drv.h:1418:
+#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, 156 lines checked



More information about the Intel-gfx mailing list