✗ Fi.CI.CHECKPATCH: warning for Introduce multitile support

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

 



== Series Details ==

Series: Introduce multitile support
URL   : https://patchwork.freedesktop.org/series/100331/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
84ebedcd8baa drm/i915: Rename INTEL_REGION_LMEM with INTEL_REGION_LMEM_0
3122cf9d817d drm/i915: Prepare for multiple GTs
-:252: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'id__' - possible side-effects?
#252: 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, 435 lines checked
993116c384d8 drm/i915/gt: add gt_is_root() helper
cb0e95e71059 drm/i915/gt: create per-tile sysfs interface
-:70: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#70: 
new file mode 100644

total: 0 errors, 1 warnings, 0 checks, 222 lines checked
62eccef7a8ce drm/i915/gt: Create per-tile RC6 sysfs interface
-:119: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#119: 
new file mode 100644

-:207: CHECK:SPACING: No space is necessary after a cast
#207: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:84:
+	return sysfs_emit(buff, "%u\n", (u32) rc6_residency);

-:222: CHECK:SPACING: No space is necessary after a cast
#222: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:99:
+	return sysfs_emit(buff, "%u\n", (u32) rc6p_residency);

-:237: CHECK:SPACING: No space is necessary after a cast
#237: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:114:
+	return sysfs_emit(buff, "%u\n", (u32) rc6pp_residency);

-:252: CHECK:SPACING: No space is necessary after a cast
#252: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:129:
+	return sysfs_emit(buff, "%u\n", (u32) rc6_residency);

total: 0 errors, 1 warnings, 4 checks, 427 lines checked
8a294f4a2e2e drm/i915/gt: Create per-tile RPS sysfs interfaces
-:127: CHECK:SPACING: No space is necessary after a cast
#127: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:253:
+	return sysfs_emit(buff, "%u\n", (u32) actual_freq);

-:141: CHECK:SPACING: No space is necessary after a cast
#141: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:267:
+	return sysfs_emit(buff, "%u\n", (u32) cur_freq);

-:156: CHECK:SPACING: No space is necessary after a cast
#156: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:282:
+	return sysfs_emit(buff, "%u\n", (u32) boost_freq);

-:209: CHECK:SPACING: No space is necessary after a cast
#209: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:335:
+	return sysfs_emit(buff, "%d\n", (int) rpe_freq);

-:233: ERROR:CODE_INDENT: code indent should use tabs where possible
#233: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:359:
+                                      struct device_attribute *attr,$

-:233: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#233: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:359:
+                                      struct device_attribute *attr,$

-:234: ERROR:CODE_INDENT: code indent should use tabs where possible
#234: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:360:
+                                      const char *buff, size_t count);$

-:234: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#234: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:360:
+                                      const char *buff, size_t count);$

-:238: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mode' - possible side-effects?
#238: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:364:
+#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)

-:238: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_show' - possible side-effects?
#238: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:364:
+#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)

-:238: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_store' - possible side-effects?
#238: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:364:
+#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)

-:259: CHECK:CAMELCASE: Avoid CamelCase: <RPn_freq_mhz>
#259: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:385:
+static INTEL_GT_RPS_SYSFS_ATTR(RPn_freq_mhz, 0444, rps_rp_mhz_show, NULL);

-:272: CHECK:CAMELCASE: Avoid CamelCase: <dev_attr_##s##_RPn_freq_mhz>
#272: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:398:
+		&dev_attr_##s##_RPn_freq_mhz.attr, \

-:280: ERROR:CODE_INDENT: code indent should use tabs where possible
#280: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:406:
+                                      struct device_attribute *attr,$

-:280: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#280: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:406:
+                                      struct device_attribute *attr,$

-:281: ERROR:CODE_INDENT: code indent should use tabs where possible
#281: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:407:
+                                      const char *buff, size_t count)$

-:281: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#281: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:407:
+                                      const char *buff, size_t count)$

-:308: CHECK:SPACING: No space is necessary after a cast
#308: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:434:
+	return sysfs_emit(buff, "%u\n", (u32) val);

-:323: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 19)
#323: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:449:
+	} else if (attr == &dev_attr_gt_RP1_freq_mhz ||
[...]
+		   val = intel_rps_get_rp1_frequency(rps);

-:326: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 19)
#326: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:452:
+	} else if (attr == &dev_attr_gt_RPn_freq_mhz ||
[...]
+		   val = intel_rps_get_rpn_frequency(rps);

-:326: CHECK:CAMELCASE: Avoid CamelCase: <dev_attr_gt_RPn_freq_mhz>
#326: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:452:
+	} else if (attr == &dev_attr_gt_RPn_freq_mhz ||

-:327: CHECK:CAMELCASE: Avoid CamelCase: <dev_attr_rps_RPn_freq_mhz>
#327: FILE: drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c:453:
+		   attr == &dev_attr_rps_RPn_freq_mhz) {

total: 4 errors, 6 warnings, 12 checks, 486 lines checked
ab6a55a71e52 drm/i915/gt: Adding new sysfs frequency attributes





[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux