== Series Details == Series: Fixed-type GENMASK/BIT URL : https://patchwork.freedesktop.org/series/129116/ State : warning == Summary == Error: dim checkpatch failed 8ab0681c6133 bits: introduce fixed-type genmasks -:48: CHECK:MACRO_ARG_REUSE: Macro argument reuse 't' - possible side-effects? #48: FILE: include/linux/bits.h:35: +#define __GENMASK(t, h, l) \ + (GENMASK_INPUT_CHECK(h, l) + \ + (((t)~0ULL - ((t)(1) << (l)) + 1) & \ + ((t)~0ULL >> (BITS_PER_TYPE(t) - 1 - (h))))) -:48: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'h' - possible side-effects? #48: FILE: include/linux/bits.h:35: +#define __GENMASK(t, h, l) \ + (GENMASK_INPUT_CHECK(h, l) + \ + (((t)~0ULL - ((t)(1) << (l)) + 1) & \ + ((t)~0ULL >> (BITS_PER_TYPE(t) - 1 - (h))))) -:48: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'l' - possible side-effects? #48: FILE: include/linux/bits.h:35: +#define __GENMASK(t, h, l) \ + (GENMASK_INPUT_CHECK(h, l) + \ + (((t)~0ULL - ((t)(1) << (l)) + 1) & \ + ((t)~0ULL >> (BITS_PER_TYPE(t) - 1 - (h))))) total: 0 errors, 0 warnings, 3 checks, 41 lines checked 8a3bc4a2a64a bits: Introduce fixed-type BIT -:19: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects? #19: FILE: include/linux/bits.h:27: +#define BIT_INPUT_CHECK(type, b) \ + ((BUILD_BUG_ON_ZERO(__builtin_choose_expr( \ + __is_constexpr(b), (b) >= BITS_PER_TYPE(type), 0)))) -:36: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects? #36: FILE: include/linux/bits.h:51: +#define BIT_U8(b) ((u8)(BIT_INPUT_CHECK(u8, b) + BIT(b))) -:37: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects? #37: FILE: include/linux/bits.h:52: +#define BIT_U16(b) ((u16)(BIT_INPUT_CHECK(u16, b) + BIT(b))) -:38: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects? #38: FILE: include/linux/bits.h:53: +#define BIT_U32(b) ((u32)(BIT_INPUT_CHECK(u32, b) + BIT(b))) -:39: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects? #39: FILE: include/linux/bits.h:54: +#define BIT_U64(b) ((u64)(BIT_INPUT_CHECK(u64, b) + BIT(b))) total: 0 errors, 0 warnings, 5 checks, 25 lines checked 0b741f2d90b2 drm/i915: Convert REG_GENMASK* to fixed-width GENMASK_*