Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965139AbWIEP3j (ORCPT ); Tue, 5 Sep 2006 11:29:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965153AbWIEP3i (ORCPT ); Tue, 5 Sep 2006 11:29:38 -0400 Received: from mx1.redhat.com ([66.187.233.31]:5605 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S965139AbWIEP3g (ORCPT ); Tue, 5 Sep 2006 11:29:36 -0400 From: David Howells In-Reply-To: <20060905132530.GD9173@stusta.de> References: <20060905132530.GD9173@stusta.de> <20060901015818.42767813.akpm@osdl.org> To: Adrian Bunk Cc: Andrew Morton , Arjan van de Ven , linux-kernel@vger.kernel.org, Ingo Molnar , Jeff Garzik , netdev@vger.kernel.org, David Howells Subject: [PATCH] NOMMU: Move the fallback arch_vma_name() to a sensible place X-Mailer: MH-E 8.0; nmh 1.1; GNU Emacs 22.0.50 Date: Tue, 05 Sep 2006 16:27:04 +0100 Message-ID: <6024.1157470024@warthog.cambridge.redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1886 Lines: 49 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. Signed-Off-By: David Howells --- warthog>diffstat -p1 nommu-arch_vma_name-2618rc5mm1.diff fs/proc/task_mmu.c | 5 ----- kernel/signal.c | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff -urp ../kernels/linux-2.6.18-rc5-mm1/fs/proc/task_mmu.c linux-2.6.18-rc5-mm1-frv/fs/proc/task_mmu.c --- ../kernels/linux-2.6.18-rc5-mm1/fs/proc/task_mmu.c 2006-09-04 18:02:43.000000000 +0100 +++ linux-2.6.18-rc5-mm1-frv/fs/proc/task_mmu.c 2006-09-05 15:49:18.000000000 +0100 @@ -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; diff -urp ../kernels/linux-2.6.18-rc5-mm1/kernel/signal.c linux-2.6.18-rc5-mm1-frv/kernel/signal.c --- ../kernels/linux-2.6.18-rc5-mm1/kernel/signal.c 2006-09-04 18:03:32.000000000 +0100 +++ linux-2.6.18-rc5-mm1-frv/kernel/signal.c 2006-09-05 15:49:19.000000000 +0100 @@ -773,6 +773,11 @@ static void pad_len_spaces(int len) printk("%*c", len, ' '); } +__attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma) +{ + return NULL; +} + static int print_vma(struct vm_area_struct *vma) { struct mm_struct *mm = vma->vm_mm; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/