Skip to content

Commit 8770b9e

Browse files
Linus WalleijRussell King (Oracle)
authored andcommitted
ARM: 9240/1: dma-mapping: Pass (void *) to virt_to_page()
Pointers to virtual memory functions are (void *) but the __dma_update_pte() function is passing an unsigned long. Fix this up by explicit cast. Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 752ec62 commit 8770b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mm/dma-mapping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void __init dma_contiguous_remap(void)
307307

308308
static int __dma_update_pte(pte_t *pte, unsigned long addr, void *data)
309309
{
310-
struct page *page = virt_to_page(addr);
310+
struct page *page = virt_to_page((void *)addr);
311311
pgprot_t prot = *(pgprot_t *)data;
312312

313313
set_pte_ext(pte, mk_pte(page, prot), 0);

0 commit comments

Comments
 (0)