summaryrefslogtreecommitdiff
path: root/arch/score/include/asm/page.h
diff options
context:
space:
mode:
authorChen Liqin <liqin.chen@sunplusct.com>2009-11-18 08:28:13 +0300
committerChen Liqin <liqin.chen@sunplusct.com>2009-12-17 13:28:31 +0300
commit202b864ad5aa34989609a3073acbe7a04795b265 (patch)
treebfe99f7623102802726f1265e0032673435f04fd /arch/score/include/asm/page.h
parent11ab3f3d3c2474d3ed6912443de74c3972bd6f23 (diff)
downloadlinux-202b864ad5aa34989609a3073acbe7a04795b265.tar.xz
score: fixed pfn_valid define.
Signed-off-by: Cui Bixiong <bixiong@sunnorth.com.cn> Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com> modified: arch/score/include/asm/page.h modified: arch/score/kernel/setup.c modified: arch/score/mm/init.c
Diffstat (limited to 'arch/score/include/asm/page.h')
-rw-r--r--arch/score/include/asm/page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/score/include/asm/page.h b/arch/score/include/asm/page.h
index d92a5a2d36d4..1e9ade8e77e6 100644
--- a/arch/score/include/asm/page.h
+++ b/arch/score/include/asm/page.h
@@ -74,7 +74,7 @@ extern unsigned long max_pfn;
#define page_to_bus(page) (page_to_phys(page))
#define phys_to_page(paddr) (pfn_to_page(phys_to_pfn(paddr)))
-#define pfn_valid(pfn) ((pfn) >= min_low_pfn && (pfn) < max_mapnr)
+#define pfn_valid(pfn) (((pfn) >= min_low_pfn) && ((pfn) < max_low_pfn))
#define ARCH_PFN_OFFSET (PAGE_OFFSET >> PAGE_SHIFT)