== Series Details == Series: drm/i915: use ref_tracker library for tracking wakerefs (rev9) URL : https://patchwork.freedesktop.org/series/100327/ State : warning == Summary == Error: dim checkpatch failed b36b281bc951 lib/ref_tracker: add unlocked leak print helper 258df8024aa3 lib/ref_tracker: improve printing stats 01639e0ff3f5 lib/ref_tracker: add printing to memory buffer -:54: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'fmt' - possible side-effects? #54: FILE: lib/ref_tracker.c:70: +#define pr_ostream(stream, fmt, args...) \ +({ \ + struct ostream *_s = (stream); \ +\ + if (!_s->buf) { \ + pr_err(fmt, ##args); \ + } else { \ + int ret, len = _s->size - _s->used; \ + ret = snprintf(_s->buf + _s->used, len, pr_fmt(fmt), ##args); \ + _s->used += min(ret, len); \ + } \ +}) total: 0 errors, 0 warnings, 1 checks, 109 lines checked c550719bba07 lib/ref_tracker: remove warnings in case of allocation failure e264da9fddbb drm/i915: Correct type of wakeref variable f61172c5bde1 drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library -:440: WARNING:NEW_TYPEDEFS: do not add new typedefs #440: FILE: drivers/gpu/drm/i915/intel_wakeref.h:24: +typedef unsigned long intel_wakeref_t; total: 0 errors, 1 warnings, 0 checks, 431 lines checked 31bb5ae81e11 drm/i915: Track gt pm wakerefs -:513: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'gt' - possible side-effects? #513: FILE: drivers/gpu/drm/i915/gt/intel_gt_pm.h:75: +#define with_intel_gt_pm(gt, wf) \ + for (wf = intel_gt_pm_get(gt); wf; intel_gt_pm_put(gt, wf), wf = 0) -:513: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'wf' - possible side-effects? #513: FILE: drivers/gpu/drm/i915/gt/intel_gt_pm.h:75: +#define with_intel_gt_pm(gt, wf) \ + for (wf = intel_gt_pm_get(gt); wf; intel_gt_pm_put(gt, wf), wf = 0) total: 0 errors, 0 warnings, 2 checks, 826 lines checked