== Series Details == Series: drm/i915: Fix CFI violations in gt_sysfs (rev3) URL : https://patchwork.freedesktop.org/series/108917/ State : warning == Summary == Error: dim checkpatch failed 26024ab54a1b drm/i915: Fix CFI violations in gt_sysfs -:123: CHECK:LINE_SPACING: Please use a blank line after function/struct/union/enum declarations #123: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs.c:61: } +static struct kobj_attribute attr_id = __ATTR_RO(id); -:266: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_name' - possible side-effects? #266: 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) -:272: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_name' - possible side-effects? #272: 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) -:654: CHECK:CAMELCASE: Avoid CamelCase: <RPn_freq_mhz> #654: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:405: +INTEL_GT_SYSFS_SHOW_MAX(RPn_freq_mhz); -:662: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mode' - possible side-effects? #662: 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) -:703: CHECK:CAMELCASE: Avoid CamelCase: <p##attr_##s##_RPn_freq_mhz> #703: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:445: + &p##attr_##s##_RPn_freq_mhz.attr, \ -:840: CHECK:CAMELCASE: Avoid CamelCase: <media_RPn_freq_mhz> #840: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:675: +INTEL_GT_ATTR_RO(media_RPn_freq_mhz); -:850: CHECK:CAMELCASE: Avoid CamelCase: <attr_media_RPn_freq_mhz> #850: 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