aboutsummaryrefslogtreecommitdiffstats
path: root/arch/unicore32
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-08-07 17:41:01 -0400
committerDan Williams <dan.j.williams@intel.com>2015-08-27 19:40:58 -0400
commit012dcef3f058385268630c0003e9b7f8dcafbeb4 (patch)
tree11009c91175cbb15149259fc5c6c7722f98a25b1 /arch/unicore32
parentdax: drop size parameter to ->direct_access() (diff)
downloadlinux-dev-012dcef3f058385268630c0003e9b7f8dcafbeb4.tar.xz
linux-dev-012dcef3f058385268630c0003e9b7f8dcafbeb4.zip
mm: move __phys_to_pfn and __pfn_to_phys to asm/generic/memory_model.h
Three architectures already define these, and we'll need them genericly soon. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'arch/unicore32')
-rw-r--r--arch/unicore32/include/asm/memory.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/unicore32/include/asm/memory.h b/arch/unicore32/include/asm/memory.h
index debafc40200a..3bb0a29fd2d7 100644
--- a/arch/unicore32/include/asm/memory.h
+++ b/arch/unicore32/include/asm/memory.h
@@ -61,12 +61,6 @@
#endif
/*
- * Convert a physical address to a Page Frame Number and back
- */
-#define __phys_to_pfn(paddr) ((paddr) >> PAGE_SHIFT)
-#define __pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT)
-
-/*
* Convert a page to/from a physical address
*/
#define page_to_phys(page) (__pfn_to_phys(page_to_pfn(page)))