media: videobuf-dma-sg: number of pages should be unsigned long
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Sep 2020 09:09:26 +0000 (11:09 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 09:12:20 +0000 (11:12 +0200)
commit1faa39e0f3bcfe47dc7a61a72c234b24005c3a1a
tree688ee715a24d2ad611c5c1217f0a376d20695bcf
parent73c016543dbad406443d413f9c25fac32dcf5131
media: videobuf-dma-sg: number of pages should be unsigned long

As reported by smatch:

drivers/media/v4l2-core/videobuf-dma-sg.c:245 videobuf_dma_init_kernel() warn: should 'nr_pages << 12' be a 64 bit type?

The printk should not be using %d for the number of pages.

After looking better, the real problem here is that the
number of pages should be long int.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/videobuf-dma-sg.c
include/media/videobuf-dma-sg.h