✗ Fi.CI.CHECKPATCH: warning for drm/i915: remove __i915_printk()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



== Series Details ==

Series: drm/i915: remove __i915_printk()
URL   : https://patchwork.freedesktop.org/series/136927/
State : warning

== Summary ==

Error: dim checkpatch failed
35cd2f6098a9 drm/i915: remove a few __i915_printk() uses
e4981bdebe5c drm/i915: remove i915_report_error()
545c1e43b479 drm/i915: remove __i915_printk()
-:87: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i915' - possible side-effects?
#87: FILE: drivers/gpu/drm/i915/i915_utils.h:65:
+#define i915_probe_error(i915, fmt, ...) ({ \
+	if (i915_error_injected()) \
+		drm_dbg(&(i915)->drm, fmt, ##__VA_ARGS__); \
+	else \
+		drm_err(&(i915)->drm, fmt, ##__VA_ARGS__); \
+})

-:87: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'fmt' - possible side-effects?
#87: FILE: drivers/gpu/drm/i915/i915_utils.h:65:
+#define i915_probe_error(i915, fmt, ...) ({ \
+	if (i915_error_injected()) \
+		drm_dbg(&(i915)->drm, fmt, ##__VA_ARGS__); \
+	else \
+		drm_err(&(i915)->drm, fmt, ##__VA_ARGS__); \
+})

total: 0 errors, 0 warnings, 2 checks, 72 lines checked





[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux