All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patchwork <patchwork@emeril.freedesktop.org>
To: "Andrzej Hajda" <andrzej.hajda@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: use ref_tracker library for tracking wakerefs (rev9)
Date: Tue, 25 Apr 2023 00:49:58 -0000	[thread overview]
Message-ID: <168238379839.24066.10196436642745729984@emeril.freedesktop.org> (raw)
In-Reply-To: <20230224-track_gt-v8-0-4b6517e61be6@intel.com>

== 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



  parent reply	other threads:[~2023-04-25  0:50 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24 22:05 [PATCH v8 0/7] drm/i915: use ref_tracker library for tracking wakerefs Andrzej Hajda
2023-04-24 22:05 ` [Intel-gfx] " Andrzej Hajda
2023-04-24 22:05 ` Andrzej Hajda
2023-04-24 22:05 ` [PATCH v8 1/7] lib/ref_tracker: add unlocked leak print helper Andrzej Hajda
2023-04-24 22:05   ` [Intel-gfx] " Andrzej Hajda
2023-04-24 22:05   ` Andrzej Hajda
2023-04-24 22:05 ` [PATCH v8 2/7] lib/ref_tracker: improve printing stats Andrzej Hajda
2023-04-24 22:05   ` [Intel-gfx] " Andrzej Hajda
2023-04-24 22:05   ` Andrzej Hajda
2023-04-25 12:42   ` Eric Dumazet
2023-04-25 12:42     ` [Intel-gfx] " Eric Dumazet
2023-04-25 12:42     ` Eric Dumazet
2023-04-24 22:05 ` [PATCH v8 3/7] lib/ref_tracker: add printing to memory buffer Andrzej Hajda
2023-04-24 22:05   ` [Intel-gfx] " Andrzej Hajda
2023-04-24 22:05   ` Andrzej Hajda
2023-04-25 12:44   ` Eric Dumazet
2023-04-25 12:44     ` [Intel-gfx] " Eric Dumazet
2023-04-25 12:44     ` Eric Dumazet
2023-04-24 22:05 ` [PATCH v8 4/7] lib/ref_tracker: remove warnings in case of allocation failure Andrzej Hajda
2023-04-24 22:05   ` [Intel-gfx] " Andrzej Hajda
2023-04-24 22:05   ` Andrzej Hajda
2023-04-24 22:05 ` [PATCH v8 5/7] drm/i915: Correct type of wakeref variable Andrzej Hajda
2023-04-24 22:05   ` [Intel-gfx] " Andrzej Hajda
2023-04-24 22:05   ` Andrzej Hajda
2023-04-24 22:05 ` [PATCH v8 6/7] drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library Andrzej Hajda
2023-04-24 22:05   ` Andrzej Hajda
2023-04-24 22:05   ` [Intel-gfx] " Andrzej Hajda
2023-04-25 19:25   ` Andi Shyti
2023-04-25 19:25     ` [Intel-gfx] " Andi Shyti
2023-04-25 19:25     ` Andi Shyti
2023-04-24 22:05 ` [PATCH v8 7/7] drm/i915: Track gt pm wakerefs Andrzej Hajda
2023-04-24 22:05   ` Andrzej Hajda
2023-04-24 22:05   ` [Intel-gfx] " Andrzej Hajda
2023-04-28  8:55   ` Andi Shyti
2023-04-28  8:55     ` Andi Shyti
2023-04-28  8:55     ` [Intel-gfx] " Andi Shyti
2023-04-25  0:49 ` Patchwork [this message]
2023-04-25  0:50 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: use ref_tracker library for tracking wakerefs (rev9) Patchwork
2023-04-25  1:00 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-04-25  8:03 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-04-25 20:01 ` [PATCH v8 0/7] drm/i915: use ref_tracker library for tracking wakerefs Andi Shyti
2023-04-25 20:01   ` Andi Shyti
2023-04-25 20:01   ` [Intel-gfx] " Andi Shyti
2023-05-04 16:27 ` Andrzej Hajda
2023-05-05 20:06   ` Rodrigo Vivi
2023-05-05 20:06     ` Rodrigo Vivi
2023-05-05 20:06     ` Rodrigo Vivi
2023-05-08 17:16     ` Andrzej Hajda
2023-05-08 17:16       ` Andrzej Hajda
2023-05-08 17:16       ` Andrzej Hajda
2023-06-01 17:14       ` Andrzej Hajda
2023-06-01 17:14         ` Andrzej Hajda
2023-06-01 17:14         ` Andrzej Hajda
2023-06-01 17:18         ` Jakub Kicinski
2023-06-01 17:18           ` Jakub Kicinski
2023-06-01 17:18           ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=168238379839.24066.10196436642745729984@emeril.freedesktop.org \
    --to=patchwork@emeril.freedesktop.org \
    --cc=andrzej.hajda@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.