[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,1/2] drm/i915/icl: replace check for combo phy

Patchwork patchwork at emeril.freedesktop.org
Tue Nov 13 03:09:51 UTC 2018


== Series Details ==

Series: series starting with [v2,1/2] drm/i915/icl: replace check for combo phy
URL   : https://patchwork.freedesktop.org/series/52400/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
6b83938535de drm/i915/icl: replace check for combo phy
-:22: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__port' - possible side-effects?
#22: FILE: drivers/gpu/drm/i915/intel_combo_phy.c:8:
+#define for_each_combo_port(__dev_priv, __port) \
+	for ((__port) = PORT_A; (__port) < I915_MAX_PORTS; (__port)++)	\
+		for_each_if(intel_port_is_combophy(__dev_priv, __port))

total: 0 errors, 0 warnings, 1 checks, 26 lines checked
082c96aa9390 drm/i915/icl: reverse uninit order
-:22: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__port' - possible side-effects?
#22: FILE: drivers/gpu/drm/i915/intel_combo_phy.c:12:
+#define for_each_combo_port_rev(__dev_priv, __port) \
+	for ((__port) = I915_MAX_PORTS - 1; \
+	     (__port) >= PORT_A && (__port) < I915_MAX_PORTS; \
+	     (__port)--) \
+		for_each_if(intel_port_is_combophy(__dev_priv, __port))

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



More information about the Intel-gfx mailing list