X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Fnommu.c;h=88ff091eb07a23dcaee1e8e6d0cc70927183b89b;hb=5a4bbd01c8516d4f116c32e6c4b64bfd5e5fe10d;hp=b76f3ee0abe015a85f36ff4b2599cff21d3c3efd;hpb=11e4afb49b7fa1fc8e1ffd850c1806dd86a08204;p=mv-sheeva.git diff --git a/mm/nommu.c b/mm/nommu.c index b76f3ee0abe..88ff091eb07 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -36,11 +36,6 @@ #include #include "internal.h" -static inline __attribute__((format(printf, 1, 2))) -void no_printk(const char *fmt, ...) -{ -} - #if 0 #define kenter(FMT, ...) \ printk(KERN_DEBUG "==> %s("FMT")\n", __func__, ##__VA_ARGS__) @@ -609,7 +604,7 @@ static void protect_vma(struct vm_area_struct *vma, unsigned long flags) */ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma) { - struct vm_area_struct *pvma, **pp; + struct vm_area_struct *pvma, **pp, *next; struct address_space *mapping; struct rb_node **p, *parent; @@ -669,8 +664,11 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma) break; } - vma->vm_next = *pp; + next = *pp; *pp = vma; + vma->vm_next = next; + if (next) + next->vm_prev = vma; } /*