Commit 7d129637 authored by Russell King's avatar Russell King Committed by Russell King

[ARM] Remove unnecessary extra parens in include/asm-arm/memory.h

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0da32350
...@@ -172,10 +172,10 @@ static inline __deprecated void *bus_to_virt(unsigned long x) ...@@ -172,10 +172,10 @@ static inline __deprecated void *bus_to_virt(unsigned long x)
* virt_addr_valid(k) indicates whether a virtual address is valid * virt_addr_valid(k) indicates whether a virtual address is valid
*/ */
#ifndef CONFIG_DISCONTIGMEM #ifndef CONFIG_DISCONTIGMEM
#define ARCH_PFN_OFFSET (PHYS_PFN_OFFSET) #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET
#define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr)) #define pfn_valid(pfn) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr))
#define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)) #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
#define virt_addr_valid(kaddr) ((unsigned long)(kaddr) >= PAGE_OFFSET && (unsigned long)(kaddr) < (unsigned long)high_memory) #define virt_addr_valid(kaddr) ((unsigned long)(kaddr) >= PAGE_OFFSET && (unsigned long)(kaddr) < (unsigned long)high_memory)
#define PHYS_TO_NID(addr) (0) #define PHYS_TO_NID(addr) (0)
...@@ -187,7 +187,7 @@ static inline __deprecated void *bus_to_virt(unsigned long x) ...@@ -187,7 +187,7 @@ static inline __deprecated void *bus_to_virt(unsigned long x)
* around in memory. * around in memory.
*/ */
#include <linux/numa.h> #include <linux/numa.h>
#define arch_pfn_to_nid(pfn) (PFN_TO_NID(pfn)) #define arch_pfn_to_nid(pfn) PFN_TO_NID(pfn)
#define arch_local_page_offset(pfn, nid) LOCAL_MAP_NR((pfn) << PAGE_SHIFT) #define arch_local_page_offset(pfn, nid) LOCAL_MAP_NR((pfn) << PAGE_SHIFT)
#define pfn_valid(pfn) \ #define pfn_valid(pfn) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment