linux_dsm_epyc7002/drivers/media/pci
Mauro Carvalho Chehab 95c520690f media: don't do a 31 bit shift on a signed int
On 32-bits archs, a signed integer has 31 bits plus on extra
bit for signal. Due to that, touching the 32th bit with something
like:

	int bar = 1 << 31;

has an undefined behavior in C on 32 bit architectures, as it
touches the signal bit. This is warned by cppcheck.

Instead, force the numbers to be unsigned, in order to solve this
issue.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-26 14:11:10 -03:00
..
b2c2
bt8xx media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
cobalt
cx18 media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
cx88
cx23885
cx25821
ddbridge
dm1105
dt3155
intel
ivtv media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
mantis
meye
netup_unidvb
ngene
pluto2
pt1
pt3
saa7134
saa7146
saa7164
smipcie
solo6x10 media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
sta2x11
ttpci
tw68
tw686x
tw5864
Kconfig
Makefile