X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Fmremap.c;h=08e3c7f2bd15a1b2e502aeb3e9f509148cb5dfa8;hb=a67ad9c9f82342a9b320fdad204a490727ef4a18;hp=bc7c52efc71bb1d5dddded25b836c4b842a54edf;hpb=16cefa8c3863721fd40445a1b34dea18cd16ccfe;p=mv-sheeva.git diff --git a/mm/mremap.c b/mm/mremap.c index bc7c52efc71..08e3c7f2bd1 100644 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -120,7 +120,7 @@ static void move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd, #define LATENCY_LIMIT (64 * PAGE_SIZE) -static unsigned long move_page_tables(struct vm_area_struct *vma, +unsigned long move_page_tables(struct vm_area_struct *vma, unsigned long old_addr, struct vm_area_struct *new_vma, unsigned long new_addr, unsigned long len) { @@ -291,7 +291,7 @@ unsigned long do_mremap(unsigned long addr, if ((addr <= new_addr) && (addr+old_len) > new_addr) goto out; - ret = security_file_mmap(0, 0, 0, 0, new_addr, 1); + ret = security_file_mmap(NULL, 0, 0, 0, new_addr, 1); if (ret) goto out; @@ -399,7 +399,7 @@ unsigned long do_mremap(unsigned long addr, goto out; } - ret = security_file_mmap(0, 0, 0, 0, new_addr, 1); + ret = security_file_mmap(NULL, 0, 0, 0, new_addr, 1); if (ret) goto out; }