linux_dsm_epyc7002/drivers/media/platform/vsp1
Mauro Carvalho Chehab cce8ccca80 media: use the BIT() macro
As warned by cppcheck:

	[drivers/media/dvb-frontends/cx24123.c:434]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
	[drivers/media/pci/bt8xx/bttv-input.c:87]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
	[drivers/media/pci/bt8xx/bttv-input.c:98]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
			...
	[drivers/media/v4l2-core/v4l2-ioctl.c:1391]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour

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.

Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> # exynos4-is and s3c-camif
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> # omap3isp, vsp1, xilinx, wl128x and ipu3
Reviewed-by: Benoit Parrot <bparrot@ti.com> # am437x and ti-vpe
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-26 14:08:50 -03:00
..
Makefile
vsp1_brx.c
vsp1_brx.h
vsp1_clu.c
vsp1_clu.h
vsp1_dl.c
vsp1_dl.h
vsp1_drm.c
vsp1_drm.h
vsp1_drv.c
vsp1_entity.c
vsp1_entity.h
vsp1_hgo.c
vsp1_hgo.h
vsp1_hgt.c
vsp1_hgt.h
vsp1_histo.c
vsp1_histo.h
vsp1_hsit.c
vsp1_hsit.h
vsp1_lif.c
vsp1_lif.h
vsp1_lut.c
vsp1_lut.h
vsp1_pipe.c
vsp1_pipe.h
vsp1_regs.h
vsp1_rpf.c
vsp1_rwpf.c
vsp1_rwpf.h
vsp1_sru.c
vsp1_sru.h
vsp1_uds.c
vsp1_uds.h
vsp1_uif.c
vsp1_uif.h
vsp1_video.c
vsp1_video.h
vsp1_wpf.c
vsp1.h