1
0
Fork 0
freescale-linux-fslc/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 treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bt8xx media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
cobalt media: use the BIT() macro 2019-08-26 14:08:50 -03:00
cx18 media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
cx88 media: media/pci: don't set description for ENUM_FMT 2019-07-22 14:40:32 -04:00
cx23885 media: media/pci: don't set description for ENUM_FMT 2019-07-22 14:40:32 -04:00
cx25821 media: media/pci: don't set description for ENUM_FMT 2019-07-22 14:40:32 -04:00
ddbridge Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
dm1105 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dt3155 media: media/pci: don't set description for ENUM_FMT 2019-07-22 14:40:32 -04:00
intel media: ipu3-cio2: Parse information from firmware without using callbacks 2019-07-25 11:01:24 -04:00
ivtv media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
mantis media: use the BIT() macro 2019-08-26 14:08:50 -03:00
meye media: media/pci: don't set description for ENUM_FMT 2019-07-22 14:40:32 -04:00
netup_unidvb treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
ngene media: ngene: Remove call to memset after pci_alloc_consistent 2019-08-13 11:54:39 -03:00
pluto2 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
pt1 media: pci: Use dev_get_drvdata where possible 2019-07-25 06:45:10 -04:00
pt3 media: pci: Use dev_get_drvdata where possible 2019-07-25 06:45:10 -04:00
saa7134 media: saa7134: fix terminology around saa7134_i2c_eeprom_md7134_gate() 2019-08-26 10:45:49 -03:00
saa7146 media: saa7146: add cleanup in hexium_attach() 2019-08-26 10:40:55 -03:00
saa7164 media: media/pci: don't set description for ENUM_FMT 2019-07-22 14:40:32 -04:00
smipcie treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
solo6x10 media: don't do a 31 bit shift on a signed int 2019-08-26 14:11:10 -03:00
sta2x11 media: media/pci: don't set description for ENUM_FMT 2019-07-22 14:40:32 -04:00
ttpci media: remove include stdarg.h from some drivers 2019-08-26 14:01:44 -03:00
tw68 media: drivers/media: don't set pix->priv = 0 2019-07-23 08:48:33 -04:00
tw686x media: media/pci: set device_caps in struct video_device 2019-06-24 14:57:12 -04:00
tw5864 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile media: zoran: move to staging in preparation for removal 2018-05-25 15:21:36 -04:00