Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86d618cd authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Will Deacon
Browse files

openrisc: drop wrongly typed definition of page_to_virt()



To align with generic code and other architectures that expect the macro
page_to_virt to produce an expression whose type is 'void*', drop the
arch specific definition, which is never referenced anyway.

Acked-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 046982c7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -81,8 +81,6 @@ typedef struct page *pgtable_t;

#define virt_to_page(addr) \
	(mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
#define page_to_virt(page) \
	((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)

#define page_to_phys(page)      ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)