✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] drm/i915: Move a bunch of workaround-related code to its own file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



== Series Details ==

Series: series starting with [1/2] drm/i915: Move a bunch of workaround-related code to its own file
URL   : https://patchwork.freedesktop.org/series/41491/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
18b0bd9fdeb1 drm/i915: Move a bunch of workaround-related code to its own file
-:743: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#743: 
new file mode 100644

-:817: WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#817: FILE: drivers/gpu/drm/i915/intel_workarounds.c:70:
+#define WA_REG(addr, mask, val) do { \
+		const int r = wa_add(dev_priv, (addr), (mask), (val)); \
+		if (r) \
+			return r; \
+	} while (0)

-:823: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'mask' - possible side-effects?
#823: FILE: drivers/gpu/drm/i915/intel_workarounds.c:76:
+#define WA_SET_BIT_MASKED(addr, mask) \
+	WA_REG(addr, (mask), _MASKED_BIT_ENABLE(mask))

-:826: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'mask' - possible side-effects?
#826: FILE: drivers/gpu/drm/i915/intel_workarounds.c:79:
+#define WA_CLR_BIT_MASKED(addr, mask) \
+	WA_REG(addr, (mask), _MASKED_BIT_DISABLE(mask))

-:829: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'mask' - possible side-effects?
#829: FILE: drivers/gpu/drm/i915/intel_workarounds.c:82:
+#define WA_SET_FIELD_MASKED(addr, mask, value) \
+	WA_REG(addr, mask, _MASKED_FIELD(mask, value))

total: 0 errors, 2 warnings, 3 checks, 1380 lines checked
5e751eea41c4 drm/i915: Split out functions for different kinds of workarounds
-:514: CHECK:BRACES: braces {} should be used on all arms of this statement
#514: FILE: drivers/gpu/drm/i915/intel_workarounds.c:448:
+	if (INTEL_GEN(dev_priv) < 8)
[...]
+	else if (IS_BROADWELL(dev_priv))
[...]
+	else if (IS_CHERRYVIEW(dev_priv))
[...]
+	else if (IS_SKYLAKE(dev_priv))
[...]
+	else if (IS_BROXTON(dev_priv))
[...]
+	else if (IS_KABYLAKE(dev_priv))
[...]
+	else if (IS_GEMINILAKE(dev_priv))
[...]
+	else if (IS_COFFEELAKE(dev_priv))
[...]
+	else if (IS_CANNONLAKE(dev_priv))
[...]
+	else {
[...]

-:532: CHECK:BRACES: Unbalanced braces around else statement
#532: FILE: drivers/gpu/drm/i915/intel_workarounds.c:466:
+	else {

-:939: CHECK:BRACES: braces {} should be used on all arms of this statement
#939: FILE: drivers/gpu/drm/i915/intel_workarounds.c:830:
+	if (INTEL_GEN(dev_priv) < 8)
[...]
+	else if (IS_BROADWELL(dev_priv))
[...]
 	else if (IS_CHERRYVIEW(dev_priv))
[...]
+		err = chv_whitelist_workarounds_apply(engine);
[...]
-		err =  skl_init_workarounds(engine);
[...]
 	else if (IS_BROXTON(dev_priv))
[...]
+		err = bxt_whitelist_workarounds_apply(engine);
[...]
-		err = kbl_init_workarounds(engine);
[...]
 	else if (IS_GEMINILAKE(dev_priv))
[...]
+		err = glk_whitelist_workarounds_apply(engine);
[...]

-:965: CHECK:BRACES: Unbalanced braces around else statement
#965: FILE: drivers/gpu/drm/i915/intel_workarounds.c:848:
+	else {

total: 0 errors, 0 warnings, 4 checks, 938 lines checked

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux