Skip to content

Commit 6df1a83

Browse files
MonamAgarwalgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 421343a commit 6df1a83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/staging/crystalhd/crystalhd_lnx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ struct crystalhd_adp {
5858

5959
unsigned long pci_mem_start;
6060
uint32_t pci_mem_len;
61-
void *addr;
61+
void __iomem *addr;
6262

6363
unsigned long pci_i2o_start;
6464
uint32_t pci_i2o_len;
65-
void *i2o_addr;
65+
void __iomem *i2o_addr;
6666

6767
unsigned int drv_data;
6868
unsigned int dmabits; /* 32 | 64 */

drivers/staging/crystalhd/crystalhd_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ enum BC_STATUS crystalhd_map_dio(struct crystalhd_adp *adp, void *ubuff,
740740
dio->fb_size = ubuff_sz & 0x03;
741741
if (dio->fb_size) {
742742
res = copy_from_user(dio->fb_va,
743-
(void *)(uaddr + count - dio->fb_size),
743+
(void __user *)(uaddr + count - dio->fb_size),
744744
dio->fb_size);
745745
if (res) {
746746
BCMLOG_ERR("failed %d to copy %u fill bytes from %p\n",

0 commit comments

Comments
 (0)