[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: use ref_tracker library for tracking wakerefs (rev10)
Patchwork
patchwork at emeril.freedesktop.org
Fri Jun 2 11:02:27 UTC 2023
== Series Details ==
Series: drm/i915: use ref_tracker library for tracking wakerefs (rev10)
URL : https://patchwork.freedesktop.org/series/100327/
State : warning
== Summary ==
Error: dim checkpatch failed
713ffb30f84c lib/ref_tracker: add unlocked leak print helper
76c74fb0c099 lib/ref_tracker: improve printing stats
e24bad806eb5 lib/ref_tracker: add printing to memory buffer
-:55: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'fmt' - possible side-effects?
#55: 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
6480fb034dce lib/ref_tracker: remove warnings in case of allocation failure
More information about the Intel-gfx
mailing list