[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: s/for_each_sgt_dma/for_each_sgt_daddr/

Patchwork patchwork at emeril.freedesktop.org
Thu Aug 29 20:33:37 UTC 2019


== Series Details ==

Series: drm/i915: s/for_each_sgt_dma/for_each_sgt_daddr/
URL   : https://patchwork.freedesktop.org/series/66021/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
1d3004f933d6 drm/i915: s/for_each_sgt_dma/for_each_sgt_daddr/
-:82: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__iter' - possible side-effects?
#82: FILE: drivers/gpu/drm/i915/i915_scatterlist.h:76:
+#define __for_each_sgt_daddr(__dp, __iter, __sgt, __step)		\
 	for ((__iter) = __sgt_iter((__sgt)->sgl, true);			\
+	     ((__dp) = (__iter).dma + (__iter).curr), (__iter).sgp;	\
 	     (((__iter).curr += (__step)) >= (__iter).max) ?		\
 	     (__iter) = __sgt_iter(__sg_next((__iter).sgp), true), 0 : 0)

total: 0 errors, 0 warnings, 1 checks, 61 lines checked



More information about the Intel-gfx mailing list