Re: [PATCH 2/3] bits: Introduce fixed-type BIT

2024-02-09 Thread Yury Norov
On Tue, Jan 23, 2024 at 09:02:04PM -0800, Lucas De Marchi wrote: > Implement fixed-type BIT() to help drivers add stricter checks, like was > done for GENMASK. > > Signed-off-by: Lucas De Marchi Reviewed-by: Yury Norov > --- > include/linux/bits.h | 9 + > 1 file changed, 9

[PATCH 2/3] bits: Introduce fixed-type BIT

2024-01-23 Thread Lucas De Marchi
Implement fixed-type BIT() to help drivers add stricter checks, like was done for GENMASK. Signed-off-by: Lucas De Marchi --- include/linux/bits.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/bits.h b/include/linux/bits.h index cb94128171b2..5754a1251078 100644 ---