lkml.org 
[lkml]   [2006]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] NOMMU: Move the fallback arch_vma_name() to a sensible place
    Date

    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 <dhowells@redhat.com>
    ---
    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/
    \
     
     \ /
      Last update: 2006-09-05 17:33    [W:0.052 / U:119.304 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site