[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Fix CFI violations in gt_sysfs (rev5)
Patchwork
patchwork at emeril.freedesktop.org
Tue Oct 25 21:00:31 UTC 2022
== Series Details ==
Series: drm/i915: Fix CFI violations in gt_sysfs (rev5)
URL : https://patchwork.freedesktop.org/series/108917/
State : warning
== Summary ==
Error: dim checkpatch failed
e2d4c2e70109 drm/i915: Fix CFI violations in gt_sysfs
-:125: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations
#125: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs.c:61:
}
+static struct kobj_attribute attr_id = __ATTR_RO(id);
-:268: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_name' - possible side-effects?
#268: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:155:
+#define INTEL_GT_DUAL_ATTR_RW(_name) \
+ static struct device_attribute dev_attr_##_name = __ATTR(_name, 0644, \
+ _name##_dev_show, \
+ _name##_dev_store); \
+ INTEL_GT_ATTR_RW(_name)
-:274: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_name' - possible side-effects?
#274: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:161:
+#define INTEL_GT_DUAL_ATTR_RO(_name) \
+ static struct device_attribute dev_attr_##_name = __ATTR(_name, 0444, \
+ _name##_dev_show, \
+ NULL); \
+ INTEL_GT_ATTR_RO(_name)
-:656: CHECK:CAMELCASE: Avoid CamelCase: <RPn_freq_mhz>
#656: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:405:
+INTEL_GT_SYSFS_SHOW_MAX(RPn_freq_mhz);
-:664: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mode' - possible side-effects?
#664: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:413:
+#define INTEL_GT_RPS_SYSFS_ATTR(_name, _mode, _show, _store, _show_dev, _store_dev) \
+ static struct device_attribute dev_attr_gt_##_name = __ATTR(gt_##_name, _mode, \
+ _show_dev, _store_dev); \
+ static struct kobj_attribute attr_rps_##_name = __ATTR(rps_##_name, _mode, \
+ _show, _store)
-:705: CHECK:CAMELCASE: Avoid CamelCase: <p##attr_##s##_RPn_freq_mhz>
#705: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:445:
+ &p##attr_##s##_RPn_freq_mhz.attr, \
-:842: CHECK:CAMELCASE: Avoid CamelCase: <media_RPn_freq_mhz>
#842: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:675:
+INTEL_GT_ATTR_RO(media_RPn_freq_mhz);
-:852: CHECK:CAMELCASE: Avoid CamelCase: <attr_media_RPn_freq_mhz>
#852: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:681:
+ &attr_media_RPn_freq_mhz.attr,
total: 0 errors, 0 warnings, 8 checks, 785 lines checked
More information about the Intel-gfx
mailing list