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 (rev8)
Date: Fri, 21 Apr 2023 12:56:37 -0000	[thread overview]
Message-ID: <168208179713.5824.556446406442343997@emeril.freedesktop.org> (raw)
In-Reply-To: <20230224-track_gt-v7-0-11f08358c1ec@intel.com>

== Series Details ==

Series: drm/i915: use ref_tracker library for tracking wakerefs (rev8)
URL   : https://patchwork.freedesktop.org/series/100327/
State : warning

== Summary ==

Error: dim checkpatch failed
4cc3dfa0b243 lib/ref_tracker: add unlocked leak print helper
-:6: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#6: 
To have reliable detection of leaks, caller must be able to check under the same

total: 0 errors, 1 warnings, 0 checks, 105 lines checked
de51d28343e8 lib/ref_tracker: improve printing stats
-:40: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#40: FILE: include/linux/ref_tracker.h:31:
+static inline void __ref_tracker_dir_init(struct ref_tracker_dir *dir,
+					unsigned int quarantine_count,

-:49: WARNING:STRLCPY: Prefer strscpy over strlcpy - see: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
#49: FILE: include/linux/ref_tracker.h:41:
+	strlcpy(dir->name, name, sizeof(dir->name));

total: 0 errors, 1 warnings, 1 checks, 151 lines checked
87f8a2f62e75 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
be584c3f69e9 lib/ref_tracker: remove warnings in case of allocation failure
04d9ce2b2595 drm/i915: Correct type of wakeref variable
e1f156958d75 drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library
-:404: WARNING:NEW_TYPEDEFS: do not add new typedefs
#404: FILE: drivers/gpu/drm/i915/intel_wakeref.h:24:
+typedef unsigned long intel_wakeref_t;

total: 0 errors, 1 warnings, 0 checks, 426 lines checked
c1995f5d11d1 drm/i915: track gt pm wakerefs
-:514: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'gt' - possible side-effects?
#514: 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)

-:514: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'wf' - possible side-effects?
#514: 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)

-:845: ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#845: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:1328:
+	if (!in_reset && (wakeref = intel_gt_pm_get_if_awake(gt))) {

total: 1 errors, 0 warnings, 2 checks, 826 lines checked



  parent reply	other threads:[~2023-04-21 12:56 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-21 11:35 [PATCH v7 0/7] drm/i915: use ref_tracker library for tracking wakerefs Andrzej Hajda
2023-04-21 11:35 ` [Intel-gfx] " Andrzej Hajda
2023-04-21 11:35 ` Andrzej Hajda
2023-04-21 11:35 ` [PATCH v7 1/7] lib/ref_tracker: add unlocked leak print helper Andrzej Hajda
2023-04-21 11:35   ` [Intel-gfx] " Andrzej Hajda
2023-04-21 11:35   ` Andrzej Hajda
2023-04-21 14:24   ` Eric Dumazet
2023-04-21 14:24     ` [Intel-gfx] " Eric Dumazet
2023-04-21 14:24     ` Eric Dumazet
2023-04-21 11:35 ` [PATCH v7 2/7] lib/ref_tracker: improve printing stats Andrzej Hajda
2023-04-21 11:35   ` [Intel-gfx] " Andrzej Hajda
2023-04-21 11:35   ` Andrzej Hajda
2023-04-21 14:21   ` Eric Dumazet
2023-04-21 14:21     ` [Intel-gfx] " Eric Dumazet
2023-04-21 14:21     ` Eric Dumazet
2023-04-21 14:30     ` Andrzej Hajda
2023-04-21 14:30       ` [Intel-gfx] " Andrzej Hajda
2023-04-21 14:30       ` Andrzej Hajda
2023-04-21 11:35 ` [PATCH v7 3/7] lib/ref_tracker: add printing to memory buffer Andrzej Hajda
2023-04-21 11:35   ` [Intel-gfx] " Andrzej Hajda
2023-04-21 11:35   ` Andrzej Hajda
2023-04-21 11:35 ` [PATCH v7 4/7] lib/ref_tracker: remove warnings in case of allocation failure Andrzej Hajda
2023-04-21 11:35   ` Andrzej Hajda
2023-04-21 11:35   ` [Intel-gfx] " Andrzej Hajda
2023-04-21 14:21   ` Eric Dumazet
2023-04-21 14:21     ` [Intel-gfx] " Eric Dumazet
2023-04-21 14:21     ` Eric Dumazet
2023-04-21 11:35 ` [PATCH v7 5/7] drm/i915: Correct type of wakeref variable Andrzej Hajda
2023-04-21 11:35   ` Andrzej Hajda
2023-04-21 11:35   ` [Intel-gfx] " Andrzej Hajda
2023-04-21 11:35 ` [PATCH v7 6/7] drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library Andrzej Hajda
2023-04-21 11:35   ` Andrzej Hajda
2023-04-21 11:35   ` [Intel-gfx] " Andrzej Hajda
2023-04-23  4:45   ` Zhou Furong
2023-04-23  4:45     ` Zhou Furong
2023-04-23  4:45     ` [Intel-gfx] " Zhou Furong
2023-04-21 11:35 ` [PATCH v7 7/7] drm/i915: track gt pm wakerefs Andrzej Hajda
2023-04-21 11:35   ` [Intel-gfx] " Andrzej Hajda
2023-04-21 11:35   ` Andrzej Hajda
2023-04-23  3:53   ` [Intel-gfx] " Zhou Furong
2023-04-23  3:53     ` Zhou Furong
2023-04-23  3:53     ` Zhou Furong
2023-04-21 12:56 ` Patchwork [this message]
2023-04-21 12:56 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: use ref_tracker library for tracking wakerefs (rev8) Patchwork
2023-04-21 13:16 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-04-21 14:09 ` [PATCH v7 0/7] drm/i915: use ref_tracker library for tracking wakerefs Jakub Kicinski
2023-04-21 14:09   ` [Intel-gfx] " Jakub Kicinski
2023-04-21 14:09   ` Jakub Kicinski
2023-04-21 20:57 ` [Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: use ref_tracker library for tracking wakerefs (rev8) Patchwork

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=168208179713.5824.556446406442343997@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.