[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/dmc: Add DMC_EVT_HTP and DMC_EVT_CTL programming
Patchwork
patchwork at emeril.freedesktop.org
Mon Mar 28 22:51:49 UTC 2022
== Series Details ==
Series: drm/i915/dmc: Add DMC_EVT_HTP and DMC_EVT_CTL programming
URL : https://patchwork.freedesktop.org/series/101891/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
b4b5cbd62645 drm/i915/dmc: Add DMC_EVT_HTP and DMC_EVT_CTL programming
-:44: WARNING:LONG_LINE: line length of 109 exceeds 100 columns
#44: FILE: drivers/gpu/drm/i915/display/intel_display_power.c:1118:
+ intel_de_write(dev_priv, PIPEDMC_EVT_CTL_OFFSET(dmc->dmc_info[id].start_mmioaddr, i),
-:45: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#45: FILE: drivers/gpu/drm/i915/display/intel_display_power.c:1119:
+ intel_de_write(dev_priv, PIPEDMC_EVT_CTL_OFFSET(dmc->dmc_info[id].start_mmioaddr, i),
+ DMC_EVT_CTL_VAL);
-:46: WARNING:LONG_LINE: line length of 109 exceeds 100 columns
#46: FILE: drivers/gpu/drm/i915/display/intel_display_power.c:1120:
+ intel_de_write(dev_priv, PIPEDMC_EVT_HTP_OFFSET(dmc->dmc_info[id].start_mmioaddr, i),
-:47: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#47: FILE: drivers/gpu/drm/i915/display/intel_display_power.c:1121:
+ intel_de_write(dev_priv, PIPEDMC_EVT_HTP_OFFSET(dmc->dmc_info[id].start_mmioaddr, i),
+ DMC_EVT_HTP_VAL);
-:78: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'addr' may be better as '(addr)' to avoid precedence issues
#78: FILE: drivers/gpu/drm/i915/i915_reg.h:5535:
+#define PIPEDMC_EVT_HTP_OFFSET(addr, i) _MMIO(addr + PIPEDMC_EVT_HTP_BASE + (i * 4))
-:78: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'i' may be better as '(i)' to avoid precedence issues
#78: FILE: drivers/gpu/drm/i915/i915_reg.h:5535:
+#define PIPEDMC_EVT_HTP_OFFSET(addr, i) _MMIO(addr + PIPEDMC_EVT_HTP_BASE + (i * 4))
-:79: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'addr' may be better as '(addr)' to avoid precedence issues
#79: FILE: drivers/gpu/drm/i915/i915_reg.h:5536:
+#define PIPEDMC_EVT_CTL_OFFSET(addr, i) _MMIO(addr + PIPEDMC_EVT_CTL_BASE + (i * 4))
-:79: CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'i' may be better as '(i)' to avoid precedence issues
#79: FILE: drivers/gpu/drm/i915/i915_reg.h:5536:
+#define PIPEDMC_EVT_CTL_OFFSET(addr, i) _MMIO(addr + PIPEDMC_EVT_CTL_BASE + (i * 4))
total: 0 errors, 2 warnings, 6 checks, 57 lines checked
More information about the Intel-gfx
mailing list