aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorKeith Owens <kaos@ocs.com.au>2004-12-29 00:15:34 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2004-12-29 00:15:34 +0100
commit340241a9522a1bb62e600014ec291c76d15fc8a9 (patch)
tree0c3b72361f068ca0044f79926bcd6d7dbbdff045 /mm
parent94d5d40eb8d76102c7fc75dc9826633c9a2b6fd8 (diff)
downloadhistory-340241a9522a1bb62e600014ec291c76d15fc8a9.tar.gz
kallsyms: Clean up x86-64 special casing of in_gate_area()
x86-64 has special case code for in_gate_area(), but it is not clean. * Replace CONFIG_ARCH_GATE_AREA with __HAVE_ARCH_GATE_AREA. ARCH_GATE_AREA is not a config option. * The definitions of get_gate_vma() and in_gate_area() are identical in include/asm-x86_64/page.h and include/linux/mm.h. Fold the duplicate definitions into include/linux/mm.h. Does not affect kallsyms directly, this patch just creates a clean base for patch 2. Signed-off-by: Keith Owens <kaos@ocs.com.au> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 0a80f55f9f2ad7..2650897d57be53 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1811,7 +1811,7 @@ unsigned long vmalloc_to_pfn(void * vmalloc_addr)
EXPORT_SYMBOL(vmalloc_to_pfn);
-#if !defined(CONFIG_ARCH_GATE_AREA)
+#if !defined(__HAVE_ARCH_GATE_AREA)
#if defined(AT_SYSINFO_EHDR)
struct vm_area_struct gate_vma;
@@ -1846,4 +1846,4 @@ int in_gate_area(struct task_struct *task, unsigned long addr)
return 0;
}
-#endif
+#endif /* __HAVE_ARCH_GATE_AREA */