summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>2019-10-22 12:26:50 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-24 18:07:34 -0300
commit06eff2150d4db991ca236f3d05a9dc0101475aea (patch)
tree1eb187edabb291c93e840b11127f90867a3f30d4 /tools/perf/scripts/python/bin
parent746facd39370cc10038eba695f37269c6a401fda (diff)
downloadlinux-06eff2150d4db991ca236f3d05a9dc0101475aea.tar.gz
linux-06eff2150d4db991ca236f3d05a9dc0101475aea.zip
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>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions