]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/nommu.c
numa: mempolicy: trivial debug fixes.
[linux-2.6-omap-h63xx.git] / mm / nommu.c
index 1f60194d9b9b436e0d8020c4bc73b5226429b2be..989e2e9af5c3adc42cb250409a4b7249288e0df7 100644 (file)
@@ -261,6 +261,14 @@ void vunmap(void *addr)
        BUG();
 }
 
+/*
+ * Implement a stub for vmalloc_sync_all() if the architecture chose not to
+ * have one.
+ */
+void  __attribute__((weak)) vmalloc_sync_all(void)
+{
+}
+
 /*
  *  sys_brk() for the most part doesn't need the global kernel
  *  lock, except when an application is doing something nasty
@@ -631,7 +639,7 @@ static int validate_mmap_request(struct file *file,
        }
 
        /* allow the security API to have its say */
-       ret = security_file_mmap(file, reqprot, prot, flags);
+       ret = security_file_mmap(file, reqprot, prot, flags, addr, 0);
        if (ret < 0)
                return ret;