✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: use x100 version for full version and release (rev2)

Patchwork patchwork at emeril.freedesktop.org
Fri Oct 25 08:06:43 UTC 2024


== Series Details ==

Series: drm/i915/display: use x100 version for full version and release (rev2)
URL   : https://patchwork.freedesktop.org/series/140454/
State : warning

== Summary ==

Error: dim checkpatch failed
2a11c9d84f96 drm/i915/display: use x100 version for full version and release
-:105: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__i915' - possible side-effects?
#105: FILE: drivers/gpu/drm/i915/display/intel_display_device.h:171:
+#define IS_DISPLAY_VERx100(__i915, from, until) ( \
+	BUILD_BUG_ON_ZERO((from) < 200) + \
+	(DISPLAY_VERx100(__i915) >= (from) && \
+	 DISPLAY_VERx100(__i915) <= (until)))

-:105: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'from' - possible side-effects?
#105: FILE: drivers/gpu/drm/i915/display/intel_display_device.h:171:
+#define IS_DISPLAY_VERx100(__i915, from, until) ( \
+	BUILD_BUG_ON_ZERO((from) < 200) + \
+	(DISPLAY_VERx100(__i915) >= (from) && \
+	 DISPLAY_VERx100(__i915) <= (until)))

-:126: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__i915' - possible side-effects?
#126: FILE: drivers/gpu/drm/i915/display/intel_display_device.h:191:
+#define IS_DISPLAY_VERx100_STEP(__i915, ipver, from, until) \
+	(IS_DISPLAY_VERx100((__i915), (ipver), (ipver)) && \
 	 IS_DISPLAY_STEP((__i915), (from), (until)))

-:126: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ipver' - possible side-effects?
#126: FILE: drivers/gpu/drm/i915/display/intel_display_device.h:191:
+#define IS_DISPLAY_VERx100_STEP(__i915, ipver, from, until) \
+	(IS_DISPLAY_VERx100((__i915), (ipver), (ipver)) && \
 	 IS_DISPLAY_STEP((__i915), (from), (until)))

-:136: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'i915' - possible side-effects?
#136: FILE: drivers/gpu/drm/i915/display/intel_display_device.h:199:
+#define DISPLAY_VERx100(i915)	(DISPLAY_RUNTIME_INFO(i915)->ip.ver * 100 + \
+				 DISPLAY_RUNTIME_INFO(i915)->ip.rel)

total: 0 errors, 0 warnings, 5 checks, 201 lines checked




More information about the Intel-gfx mailing list