mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 03:04:07 +07:00
cce8ccca80
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> |
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
fimc-capture.c | ||
fimc-core.c | ||
fimc-core.h | ||
fimc-is-command.h | ||
fimc-is-errno.c | ||
fimc-is-errno.h | ||
fimc-is-i2c.c | ||
fimc-is-i2c.h | ||
fimc-is-param.c | ||
fimc-is-param.h | ||
fimc-is-regs.c | ||
fimc-is-regs.h | ||
fimc-is-sensor.c | ||
fimc-is-sensor.h | ||
fimc-is.c | ||
fimc-is.h | ||
fimc-isp-video.c | ||
fimc-isp-video.h | ||
fimc-isp.c | ||
fimc-isp.h | ||
fimc-lite-reg.c | ||
fimc-lite-reg.h | ||
fimc-lite.c | ||
fimc-lite.h | ||
fimc-m2m.c | ||
fimc-reg.c | ||
fimc-reg.h | ||
Kconfig | ||
Makefile | ||
media-dev.c | ||
media-dev.h | ||
mipi-csis.c | ||
mipi-csis.h |