[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Introduce multitile support
Patchwork
patchwork at emeril.freedesktop.org
Wed Jan 12 22:35:16 UTC 2022
== Series Details ==
Series: Introduce multitile support
URL : https://patchwork.freedesktop.org/series/98806/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
cb606c1584e6 drm/i915: Prepare for multiple GTs
-:254: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'id__' - possible side-effects?
#254: FILE: drivers/gpu/drm/i915/gt/intel_gt.h:91:
+#define for_each_gt(gt__, i915__, id__) \
+ for ((id__) = 0; \
+ (id__) < I915_MAX_GT; \
+ (id__)++) \
+ for_each_if(((gt__) = (i915__)->gt[(id__)]))
total: 0 errors, 0 warnings, 1 checks, 436 lines checked
4590259a6006 drm/i915/gt: make a gt sysfs group and move power management files
-:106: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#106:
new file mode 100644
-:586: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mode' - possible side-effects?
#586: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:294:
+#define INTEL_GT_RPS_SYSFS_ATTR(_name, _mode, _show, _store) \
+ struct device_attribute dev_attr_gt_##_name = __ATTR(gt_##_name, _mode, _show, _store); \
+ struct device_attribute dev_attr_rps_##_name = __ATTR(rps_##_name, _mode, _show, _store)
-:586: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_show' - possible side-effects?
#586: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:294:
+#define INTEL_GT_RPS_SYSFS_ATTR(_name, _mode, _show, _store) \
+ struct device_attribute dev_attr_gt_##_name = __ATTR(gt_##_name, _mode, _show, _store); \
+ struct device_attribute dev_attr_rps_##_name = __ATTR(rps_##_name, _mode, _show, _store)
-:586: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_store' - possible side-effects?
#586: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:294:
+#define INTEL_GT_RPS_SYSFS_ATTR(_name, _mode, _show, _store) \
+ struct device_attribute dev_attr_gt_##_name = __ATTR(gt_##_name, _mode, _show, _store); \
+ struct device_attribute dev_attr_rps_##_name = __ATTR(rps_##_name, _mode, _show, _store)
-:609: CHECK:CAMELCASE: Avoid CamelCase: <RPn_freq_mhz>
#609: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:317:
+static INTEL_GT_RPS_SYSFS_ATTR(RPn_freq_mhz, 0444, rps_rp_mhz_show, NULL);
-:619: CHECK:CAMELCASE: Avoid CamelCase: <dev_attr_##s##_RPn_freq_mhz>
#619: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:327:
+ &dev_attr_##s##_RPn_freq_mhz.attr, \
-:638: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 19)
#638: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:346:
+ } else if (attr == &dev_attr_gt_RP1_freq_mhz ||
[...]
+ val = intel_rps_get_rp1_frequency(rps);
-:641: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 19)
#641: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:349:
+ } else if (attr == &dev_attr_gt_RPn_freq_mhz ||
[...]
+ val = intel_rps_get_rpn_frequency(rps);
-:641: CHECK:CAMELCASE: Avoid CamelCase: <dev_attr_gt_RPn_freq_mhz>
#641: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:349:
+ } else if (attr == &dev_attr_gt_RPn_freq_mhz ||
-:642: CHECK:CAMELCASE: Avoid CamelCase: <dev_attr_rps_RPn_freq_mhz>
#642: FILE: drivers/gpu/drm/i915/gt/sysfs_gt_pm.c:350:
+ attr == &dev_attr_rps_RPn_freq_mhz) {
total: 0 errors, 3 warnings, 7 checks, 984 lines checked
More information about the Intel-gfx
mailing list