summaryrefslogtreecommitdiff
path: root/tools/include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/linux/mm.h')
-rw-r--r--tools/include/linux/mm.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/include/linux/mm.h b/tools/include/linux/mm.h
index 84b5954f66c3..bce7616cd7c4 100644
--- a/tools/include/linux/mm.h
+++ b/tools/include/linux/mm.h
@@ -30,11 +30,7 @@ static inline void *phys_to_virt(unsigned long address)
#define virt_to_phys virt_to_phys
static inline phys_addr_t virt_to_phys(volatile void *address)
{
- return (phys_addr_t)address;
-}
-
-static inline void totalram_pages_inc(void)
-{
+ return __pa(address);
}
static inline void totalram_pages_add(long count)