Thread (12 messages) 12 messages, 2 authors, 2016-03-01
STALE3750d
Revisions (2)
  1. v2 current
  2. v2 [diff vs current]

[PATCH v2 8/9] openrisc: drop wrongly typed definition of page_to_virt()

From: Ard Biesheuvel <hidden>
Date: 2016-02-29 14:45:43
Also in: linux-mm
Subsystem: openrisc architecture, the rest · Maintainers: Jonas Bonn, Stefan Kristiansson, Stafford Horne, Linus Torvalds

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.

Cc: linux-mm at kvack.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: linux at lists.openrisc.net
Signed-off-by: Ard Biesheuvel <redacted>
---
 arch/openrisc/include/asm/page.h | 2 --
 1 file changed, 2 deletions(-)
diff --git a/arch/openrisc/include/asm/page.h b/arch/openrisc/include/asm/page.h
index 108906f991d6..1976f7272b1f 100644
--- a/arch/openrisc/include/asm/page.h
+++ b/arch/openrisc/include/asm/page.h
@@ -84,8 +84,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)
 
-- 
2.5.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help