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

Staging: crystalhd: Fix different address spaces warning from sparse in crystalhd_misc.c

This patch fixes following sparse warning in crystalhd_misc.c
WARNING: incorrect type in argument

Signed-off-by: Monam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Monam Agarwal and committed by
Greg Kroah-Hartman
6df1a83b 421343a4

+3 -3
+2 -2
drivers/staging/crystalhd/crystalhd_lnx.h
··· 58 58 59 59 unsigned long pci_mem_start; 60 60 uint32_t pci_mem_len; 61 - void *addr; 61 + void __iomem *addr; 62 62 63 63 unsigned long pci_i2o_start; 64 64 uint32_t pci_i2o_len; 65 - void *i2o_addr; 65 + void __iomem *i2o_addr; 66 66 67 67 unsigned int drv_data; 68 68 unsigned int dmabits; /* 32 | 64 */
+1 -1
drivers/staging/crystalhd/crystalhd_misc.c
··· 740 740 dio->fb_size = ubuff_sz & 0x03; 741 741 if (dio->fb_size) { 742 742 res = copy_from_user(dio->fb_va, 743 - (void *)(uaddr + count - dio->fb_size), 743 + (void __user *)(uaddr + count - dio->fb_size), 744 744 dio->fb_size); 745 745 if (res) { 746 746 BCMLOG_ERR("failed %d to copy %u fill bytes from %p\n",