Thread (1 message) 1 message, 1 author, 2019-08-23

Re: [PATCH v2 5/7] media: use the BIT() macro

From: Sylwester Nawrocki <s.nawrocki@samsung.com>
Date: 2019-08-23 10:22:52
Also in: linux-media, linux-renesas-soc, linux-samsung-soc, linux-tegra

On 8/23/19 11:47, Mauro Carvalho Chehab wrote:
There are lots of places where we're doing 1 << 31. That's bad,
as, depending on the architecture, this has an undefined behavior.

The BIT() macro is already prepared to handle this, so, let's
just switch all "1 << number" macros by BIT(number) at the header files
with has 1 << 31.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
v2: 
  As suggested by Laurent:
     - Don't touch multi-bit masks
     - remove explicit casts
For:
  drivers/media/platform/exynos4-is/fimc-lite-reg.h
  drivers/media/platform/exynos4-is/fimc-reg.h
  drivers/media/platform/s3c-camif/camif-regs.h

Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help