Re: Linux 2.4.19pre3-ac2

From: Mike Fedyk (mfedyk@matchmail.com)
Date: Tue Mar 19 2002 - 14:01:37 EST


On Tue, Mar 19, 2002 at 06:59:42PM +0000, Alan Cox wrote:
> > gcc -D__KERNEL__ -I/home/bunk/linux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -DKBUILD_BASENAME=shm -c -o shm.o shm.c
> > shm.c: In function `sys_shmdt':
> > shm.c:682: too few arguments to function `do_munmap'
>
> Whoops - stick a ,1 on it

Then this patch should do it then...

--- ipc/shm.c.orig Tue Mar 19 10:58:06 2002
+++ ipc/shm.c Tue Mar 19 10:59:57 2002
@@ -679,7 +679,7 @@
                 shmdnext = shmd->vm_next;
                 if (shmd->vm_ops == &shm_vm_ops
                     && shmd->vm_start - (shmd->vm_pgoff << PAGE_SHIFT) == (ulong) shmaddr) {
- do_munmap(mm, shmd->vm_start, shmd->vm_end - shmd->vm_start);
+ do_munmap(mm, shmd->vm_start, shmd->vm_end - shmd->vm_start, 1);
                         retval = 0;
                 }
         }
-
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/



This archive was generated by hypermail 2b29 : Sat Mar 23 2002 - 22:00:18 EST