Skip to content

Commit 86d618c

Browse files
Ard Biesheuvelwildea01
authored andcommitted
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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 046982c commit 86d618c

File tree

1 file changed

+0
-2
lines changed
  • arch/openrisc/include/asm

1 file changed

+0
-2
lines changed

arch/openrisc/include/asm/page.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ typedef struct page *pgtable_t;
8181

8282
#define virt_to_page(addr) \
8383
(mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
84-
#define page_to_virt(page) \
85-
((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
8684

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

0 commit comments

Comments
 (0)