== Series Details == Series: Add module oriented dmesg output (rev2) URL : https://patchwork.freedesktop.org/series/111050/ State : warning == Summary == Error: dim checkpatch failed 60fd35ea849f drm/i915/gt: Start adding module oriented dmesg output Traceback (most recent call last): File "scripts/spdxcheck.py", line 11, in <module> import git ModuleNotFoundError: No module named 'git' -:225: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #225: new file mode 100644 -:242: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #242: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:13: +#define gt_err(_gt, _fmt, ...) \ + drm_err(&(_gt)->i915->drm, "GT%u: " _fmt, (_gt)->info.id, ##__VA_ARGS__) -:245: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #245: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:16: +#define gt_warn(_gt, _fmt, ...) \ + drm_warn(&(_gt)->i915->drm, "GT%u: " _fmt, (_gt)->info.id, ##__VA_ARGS__) -:248: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #248: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:19: +#define gt_notice(_gt, _fmt, ...) \ + drm_notice(&(_gt)->i915->drm, "GT%u: " _fmt, (_gt)->info.id, ##__VA_ARGS__) -:251: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #251: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:22: +#define gt_info(_gt, _fmt, ...) \ + drm_info(&(_gt)->i915->drm, "GT%u: " _fmt, (_gt)->info.id, ##__VA_ARGS__) -:254: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #254: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:25: +#define gt_dbg(_gt, _fmt, ...) \ + drm_dbg(&(_gt)->i915->drm, "GT%u: " _fmt, (_gt)->info.id, ##__VA_ARGS__) -:257: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #257: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:28: +#define gt_err_ratelimited(_gt, _fmt, ...) \ + drm_err_ratelimited(&(_gt)->i915->drm, "GT%u: " _fmt, (_gt)->info.id, ##__VA_ARGS__) -:260: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #260: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:31: +#define gt_probe_error(_gt, _fmt, ...) \ + do { \ + if (i915_error_injected()) \ + gt_dbg(_gt, _fmt, ##__VA_ARGS__); \ + else \ + gt_err(_gt, _fmt, ##__VA_ARGS__); \ + } while (0) -:260: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_fmt' - possible side-effects? #260: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:31: +#define gt_probe_error(_gt, _fmt, ...) \ + do { \ + if (i915_error_injected()) \ + gt_dbg(_gt, _fmt, ##__VA_ARGS__); \ + else \ + gt_err(_gt, _fmt, ##__VA_ARGS__); \ + } while (0) -:274: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #274: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:45: +#define gt_WARN(_gt, _condition, _fmt, ...) \ + drm_WARN(&(_gt)->i915->drm, _condition, "GT%u: " _fmt, (_gt)->info.id, ##__VA_ARGS__) -:277: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_gt' - possible side-effects? #277: FILE: drivers/gpu/drm/i915/gt/intel_gt_print.h:48: +#define gt_WARN_ONCE(_gt, _condition, _fmt, ...) \ + drm_WARN_ONCE(&(_gt)->i915->drm, _condition, "GT%u: " _fmt, (_gt)->info.id, ##__VA_ARGS__) total: 0 errors, 1 warnings, 10 checks, 237 lines checked ea27dc23d9fd drm/i915/huc: Add HuC specific debug print wrappers Traceback (most recent call last): File "scripts/spdxcheck.py", line 11, in <module> import git ModuleNotFoundError: No module named 'git' -:135: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #135: new file mode 100644 total: 0 errors, 1 warnings, 0 checks, 137 lines checked 2dc865e6be6d drm/i915/guc: Add GuC specific debug print wrappers Traceback (most recent call last): File "scripts/spdxcheck.py", line 11, in <module> import git ModuleNotFoundError: No module named 'git' -:271: WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message #271: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:622: if (!caplist) { + guc_dbg(guc, "capture: Failed to alloc cached caplist\n"); -:288: WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message #288: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:663: if (!null_header) { + guc_dbg(guc, "capture: Failed to alloc cached null list\n"); -:635: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #635: new file mode 100644 -:1169: WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message #1169: FILE: drivers/gpu/drm/i915/gt/uc/selftest_guc.c:156: if (!ce) { + guc_err(guc, "Context array allocation failed\n"); total: 0 errors, 4 warnings, 0 checks, 1232 lines checked 85aa5097ac2d drm/i915/guc: Add GuC CT specific debug print wrappers f41189cd9f80 drm/i915/uc: Update the gt/uc code to use gt_err and friends