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@xxxxxxxxxx> > 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@xxxxxxxxxxx> _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel