mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
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 <linus.walleij@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
752ec621ef
commit
8770b9e575
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ void __init dma_contiguous_remap(void)
|
|||
|
||||
static int __dma_update_pte(pte_t *pte, unsigned long addr, void *data)
|
||||
{
|
||||
struct page *page = virt_to_page(addr);
|
||||
struct page *page = virt_to_page((void *)addr);
|
||||
pgprot_t prot = *(pgprot_t *)data;
|
||||
|
||||
set_pte_ext(pte, mk_pte(page, prot), 0);
|
||||
|
|
Loading…
Reference in a new issue