Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (8745): v4l2: fix a bunch of compile warnings.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
614b147b 513edce6

+4 -4
+1 -1
drivers/media/common/saa7146_core.c
··· 234 234 int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt) 235 235 { 236 236 __le32 *cpu; 237 - dma_addr_t dma_addr; 237 + dma_addr_t dma_addr = 0; 238 238 239 239 cpu = pci_alloc_consistent(pci, PAGE_SIZE, &dma_addr); 240 240 if (NULL == cpu) {
+1 -1
drivers/media/dvb/b2c2/flexcop-dma.c
··· 10 10 int flexcop_dma_allocate(struct pci_dev *pdev, struct flexcop_dma *dma, u32 size) 11 11 { 12 12 u8 *tcpu; 13 - dma_addr_t tdma; 13 + dma_addr_t tdma = 0; 14 14 15 15 if (size % 2) { 16 16 err("dma buffersize has to be even.");
+1 -1
drivers/media/video/btcx-risc.c
··· 64 64 unsigned int size) 65 65 { 66 66 __le32 *cpu; 67 - dma_addr_t dma; 67 + dma_addr_t dma = 0; 68 68 69 69 if (NULL != risc->cpu && risc->size < size) 70 70 btcx_riscmem_free(pci,risc);
+1 -1
drivers/media/video/saa7134/saa7134-core.c
··· 215 215 int saa7134_pgtable_alloc(struct pci_dev *pci, struct saa7134_pgtable *pt) 216 216 { 217 217 __le32 *cpu; 218 - dma_addr_t dma_addr; 218 + dma_addr_t dma_addr = 0; 219 219 220 220 cpu = pci_alloc_consistent(pci, SAA7134_PGTABLE_SIZE, &dma_addr); 221 221 if (NULL == cpu)