Re: [PATCH 16/38] media: videobuf-dma-sg: number of pages should be unsigned long

2020-09-03 Thread John Hubbard
On 9/2/20 9:10 AM, Mauro Carvalho Chehab wrote: 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 pro

[PATCH 16/38] media: videobuf-dma-sg: number of pages should be unsigned long

2020-09-02 Thread Mauro Carvalho Chehab
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 lo