]> asedeno.scripts.mit.edu Git - linux.git/commit
media: venus: fix build on 32bit environments
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 7 Oct 2019 13:35:05 +0000 (10:35 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 8 Oct 2019 16:46:36 +0000 (13:46 -0300)
commit219031a6e7dff52a066e8b074adc0697f501e3d3
treed521e93d7ab024244f8ad177c028c52ebb62ab79
parentd7ca5afdced3d167058328f9fa7332350a910b05
media: venus: fix build on 32bit environments

As reported by jenkins@linuxtv.org, the build with i386 fails
with:

ld: drivers/media/platform/qcom/venus/helpers.o: in function `venus_helper_load_scale_clocks':
(.text+0x1d77): undefined reference to `__udivdi3'
ld: (.text+0x1dce): undefined reference to `__udivdi3'
make: *** [Makefile:1094: vmlinux] Error 1

That's because it divides an u32 bit integer by a u64 one.

Reviewed-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/qcom/venus/helpers.c