== Series Details == Series: drm/i915: add for_each_port() and use it URL : https://patchwork.freedesktop.org/series/68867/ State : warning == Summary == $ dim checkpatch origin/drm-tip dc836ab3c596 drm/i915: add for_each_port() and use it -:64: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__port' - possible side-effects? #64: FILE: drivers/gpu/drm/i915/display/intel_display.h:336: +#define for_each_port(__port) \ + for ((__port) = PORT_A; (__port) < I915_MAX_PORTS; (__port)++) -:67: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #67: FILE: drivers/gpu/drm/i915/display/intel_display.h:339: +#define for_each_port_masked(__port, __ports_mask) \ + for_each_port(__port) \ for_each_if((__ports_mask) & BIT(__port)) -:67: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__port' - possible side-effects? #67: FILE: drivers/gpu/drm/i915/display/intel_display.h:339: +#define for_each_port_masked(__port, __ports_mask) \ + for_each_port(__port) \ for_each_if((__ports_mask) & BIT(__port)) total: 1 errors, 0 warnings, 2 checks, 45 lines checked _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx