✗ Fi.CI.CHECKPATCH: warning for bits: Fixed-type GENMASK_U*() and BIT_U*() (rev3)

Patchwork patchwork at emeril.freedesktop.org
Tue Mar 25 22:22:55 UTC 2025


== Series Details ==

Series: bits: Fixed-type GENMASK_U*() and BIT_U*() (rev3)
URL   : https://patchwork.freedesktop.org/series/146088/
State : warning

== Summary ==

Error: dim checkpatch failed
7dfb8a68364e bits: add comments and newlines to #if, #else and #endif directives
bea86a07c2ae bits: introduce fixed-type GENMASK_U*()
-:95: CHECK:MACRO_ARG_REUSE: Macro argument reuse 't' - possible side-effects?
#95: FILE: include/linux/bits.h:48:
+#define GENMASK_TYPE(t, h, l)					\
+	((t)(GENMASK_INPUT_CHECK(h, l) +			\
+	     (type_max(t) << (l) &				\
+	      type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))

-:95: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'h' - possible side-effects?
#95: FILE: include/linux/bits.h:48:
+#define GENMASK_TYPE(t, h, l)					\
+	((t)(GENMASK_INPUT_CHECK(h, l) +			\
+	     (type_max(t) << (l) &				\
+	      type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))

-:95: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'l' - possible side-effects?
#95: FILE: include/linux/bits.h:48:
+#define GENMASK_TYPE(t, h, l)					\
+	((t)(GENMASK_INPUT_CHECK(h, l) +			\
+	     (type_max(t) << (l) &				\
+	      type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))

total: 0 errors, 0 warnings, 3 checks, 54 lines checked
cfdf0e232526 bits: introduce fixed-type BIT_U*()
-:43: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'nr' - possible side-effects?
#43: FILE: include/linux/bits.h:69:
+#define BIT_TYPE(type, nr) ((type)(BIT_INPUT_CHECK(type, nr) + BIT_ULL(nr)))

total: 0 errors, 0 warnings, 1 checks, 32 lines checked
4b8bd815061c drm/i915: Convert REG_GENMASK*() to fixed-width GENMASK_U*()
25d130311905 test_bits: add tests for GENMASK_U*()
-:27: ERROR:SPACING: spaces required around that ':' (ctx:VxW)
#27: FILE: lib/test_bits.c:10:
+#define assert_type(t, x) _Generic(x, t: x, default: 0)
                                        ^

-:27: ERROR:SPACING: spaces required around that ':' (ctx:VxW)
#27: FILE: lib/test_bits.c:10:
+#define assert_type(t, x) _Generic(x, t: x, default: 0)
                                                    ^

-:27: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'x' - possible side-effects?
#27: FILE: lib/test_bits.c:10:
+#define assert_type(t, x) _Generic(x, t: x, default: 0)

total: 2 errors, 0 warnings, 1 checks, 37 lines checked
8035be959954 test_bits: add tests for BIT_U*()




More information about the Intel-gfx mailing list