[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Add support for dumping error captures via kernel logging

Patchwork patchwork at emeril.freedesktop.org
Mon Apr 10 19:50:51 UTC 2023


== Series Details ==

Series: Add support for dumping error captures via kernel logging
URL   : https://patchwork.freedesktop.org/series/116280/
State : warning

== Summary ==

Error: dim checkpatch failed
28aef43095be drm/i915: Dump error capture to kernel log
-:61: WARNING:OOM_MESSAGE: Possible unnecessary 'out of memory' message
#61: FILE: drivers/gpu/drm/i915/i915_gpu_error.c:2261:
+	if (!buf) {
+		drm_err(&i915->drm, "[Capture/%d.%d] Failed to allocate buffer for error capture!\n",

total: 0 errors, 1 warnings, 0 checks, 153 lines checked
fcba0a3c2b99 drm/i915/guc: Dump error capture to dmesg on CTB error
-:37: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ct' - possible side-effects?
#37: FILE: drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c:29:
+#define CT_DEAD(ct, reason)	\
+	do { \
+		if (!(ct)->dead_ct_reported) { \
+			(ct)->dead_ct_reason |= 1 << CT_DEAD_##reason; \
+			queue_work(system_unbound_wq, &(ct)->dead_ct_worker); \
+		} \
+	} while (0)

total: 0 errors, 0 warnings, 1 checks, 121 lines checked




More information about the Intel-gfx mailing list