Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 19 Mar 2002 14:00:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 19 Mar 2002 14:00:25 -0500 Received: from adsl-63-194-239-202.dsl.lsan03.pacbell.net ([63.194.239.202]:43758 "EHLO mmp-linux.matchmail.com") by vger.kernel.org with ESMTP id ; Tue, 19 Mar 2002 14:00:19 -0500 Date: Tue, 19 Mar 2002 11:01:37 -0800 From: Mike Fedyk To: Alan Cox Cc: Adrian Bunk , linux-kernel@vger.kernel.org Subject: Re: Linux 2.4.19pre3-ac2 Message-ID: <20020319190137.GU2254@matchmail.com> Mail-Followup-To: Alan Cox , Adrian Bunk , linux-kernel@vger.kernel.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/