Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1381857 > unrolled thread

[PATCH resend 2/3] openrisc: drop wrongly typed definition of page_to_virt()

Started byArd Biesheuvel <ard.biesheuvel@linaro.org>
First post2016-04-18 18:10 +0200
Last post2016-04-18 18:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH resend 2/3] openrisc: drop wrongly typed definition of page_to_virt() Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-04-18 18:10 +0200

#1381857 — [PATCH resend 2/3] openrisc: drop wrongly typed definition of page_to_virt()

FromArd Biesheuvel <ard.biesheuvel@linaro.org>
Date2016-04-18 18:10 +0200
Subject[PATCH resend 2/3] openrisc: drop wrongly typed definition of page_to_virt()
Message-ID<rpjUm-8sp-9@gated-at.bofh.it>
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.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 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 e613d3673034..35bcb7cd2cde 100644
--- a/arch/openrisc/include/asm/page.h
+++ b/arch/openrisc/include/asm/page.h
@@ -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)
 
-- 
2.5.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web