]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] NOMMU: move the fallback arch_vma_name() to a sensible place
authorDavid Howells <dhowells@redhat.com>
Wed, 27 Sep 2006 08:50:23 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:15 +0000 (08:26 -0700)
Move the fallback arch_vma_name() to a sensible place (kernel/signal.c).

Currently it's in fs/proc/task_mmu.c, a file that is dependent on both
CONFIG_PROC_FS and CONFIG_MMU being enabled, but it's used from
kernel/signal.c from where it is called unconditionally.

[akpm@osdl.org: build fix]
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/task_mmu.c
include/linux/mm.h
kernel/signal.c

index 0a163a4f7764059f7401c8b43cae42ca9c2bef43..6b769afac55a18ff274ef8ed90b2d0510a86804b 100644 (file)
@@ -122,11 +122,6 @@ struct mem_size_stats
        unsigned long private_dirty;
 };
 
-__attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma)
-{
-       return NULL;
-}
-
 static int show_map_internal(struct seq_file *m, void *v, struct mem_size_stats *mss)
 {
        struct proc_maps_private *priv = m->private;
index 22165cb18906a95a08aa9bb091981bbfdf47a620..7b703b6d43582dd918a1c8c397a2a3932accf72c 100644 (file)
@@ -1131,7 +1131,7 @@ void drop_slab(void);
 extern int randomize_va_space;
 #endif
 
-const char *arch_vma_name(struct vm_area_struct *vma);
+__attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma);
 
 #endif /* __KERNEL__ */
 #endif /* _LINUX_MM_H */
index bfdb5686fa3e4e3d23075afd2bf21bf680ba0aae..05853a7337e3268be684ae2f53248b6e9fc75e56 100644 (file)
@@ -2577,6 +2577,11 @@ asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize)
 }
 #endif /* __ARCH_WANT_SYS_RT_SIGSUSPEND */
 
+__attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma)
+{
+       return NULL;
+}
+
 void __init signals_init(void)
 {
        sigqueue_cachep =