linux/drivers/staging/media
Paul Kocialkowski 06eff2150d media: cedrus: Fix undefined shift with a SHIFT_AND_MASK_BITS macro
We need to shift and mask values at different occasions to fill up
cedrus registers. This was done using macros that don't explicitly
treat arguments as unsigned, leading to possibly undefined behavior.

Introduce the SHIFT_AND_MASK_BITS macro and use it where possible.
In cases where it doesn't apply as-is, explicitly cast to unsigned
instead.

This macro should be moved to include/linux/bits.h eventually.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-10-24 18:07:34 -03:00
..
allegro-dvt staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
hantro media: hantro: h264: Fix the frame_num wraparound case 2019-10-01 17:11:22 -03:00
imx media: imx: Move pads init to probe 2019-10-10 07:28:25 -03:00
ipu3 media: use the BIT() macro 2019-08-26 14:08:50 -03:00
meson/vdec staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
omap4iss media: staging: media: Make use of devm_platform_ioremap_resource 2019-10-16 16:35:15 -03:00
soc_camera media: drivers/staging/media: don't set description for ENUM_FMT 2019-07-22 14:41:32 -04:00
sunxi media: cedrus: Fix undefined shift with a SHIFT_AND_MASK_BITS macro 2019-10-24 18:07:34 -03:00
tegra-vde media: staging: tegra-vde: Fix build error 2019-08-07 17:04:12 -03:00
Kconfig media: staging: davinci: remove vpfe driver 2019-07-25 06:33:14 -04:00
Makefile media: staging: davinci: remove vpfe driver 2019-07-25 06:33:14 -04:00