aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/mmzone.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-06-12 07:20:09 -0400
committerRalf Baechle <ralf@linux-mips.org>2006-06-19 12:39:22 -0400
commitd9b8d0da404cf952a425d990c37c29c166eec954 (patch)
tree22083744b8735c22314f52cd276df35126c8a7b6 /include/asm-mips/mmzone.h
parente53639d8f313974a87540015cbb0832905be6056 (diff)
[MIPS] Drop 0 definition for kern_addr_valid
kern_addr_valid is currently only being used in kmem_ptr_validate which is making some vague attempt at verfying the validity of an address. Only IA-64, PARISC and x86-64 actually make some actual effort to verify the validity of the pointer. Most architecture definitions of kern_addr_valid() just define it as 1; the Alpha and CONFIG_DISCONTIGMEM on i386 and MIPS even as 0; the 0-definition will result in kmem_ptr_validate always failing which in turn will cause d_validate to always fail. d_validate's only two users are smbfs and ncpfs, so the 0 definition ended breaking those ... Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/mmzone.h')
-rw-r--r--include/asm-mips/mmzone.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/asm-mips/mmzone.h b/include/asm-mips/mmzone.h
index 79f4491403b6..f6bd2e0c45a1 100644
--- a/include/asm-mips/mmzone.h
+++ b/include/asm-mips/mmzone.h
@@ -14,9 +14,6 @@
14#define kvaddr_to_nid(kvaddr) pa_to_nid(__pa(kvaddr)) 14#define kvaddr_to_nid(kvaddr) pa_to_nid(__pa(kvaddr))
15#define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT) 15#define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT)
16 16
17/* XXX: FIXME -- wli */
18#define kern_addr_valid(addr) (0)
19
20#endif /* CONFIG_DISCONTIGMEM */ 17#endif /* CONFIG_DISCONTIGMEM */
21 18
22#endif /* _ASM_MMZONE_H_ */ 19#endif /* _ASM_MMZONE_H_ */