From owner-freebsd-ports@FreeBSD.ORG Mon Sep 9 21:24:21 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2A39EDDE; Mon, 9 Sep 2013 21:24:21 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm1.ukr.net (fsm1.ukr.net [195.214.192.120]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CF858254E; Mon, 9 Sep 2013 21:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=1c64/cEj9Aj4lyTAcGuGtRNf/gCS2uNdn0VTfl5pX8Q=; b=g0zYtO8hIodOOXsgVFeH81WuUg9nIHZ06O7HF2k7HyEUkzHeVz3m0x1K4/F6fACZKH3CfbhDjkmLmO6nbmqc1Yzy3uDgpmIKuK3TptfjpyfCe0+mLMFwmN1wpq4oMBcOfqjcoEKBg+pE6Pqt/5QF7pN2WD300mKCrNn5U58PddU=; Received: from [178.137.138.140] (helo=nonamehost.local) by fsm1.ukr.net with esmtpsa ID 1VJ8wK-000CVM-Er ; Tue, 10 Sep 2013 00:24:08 +0300 Date: Tue, 10 Sep 2013 00:24:05 +0300 From: Ivan Klymenko To: "O. Hartmann" Subject: Re: CURRENT r255426: x11/nvidia-driver: nvidia_subr.c:835:46: error: too few arguments to function call, expected 10, have 9 (VM_PROT_READ | VM_PROT_WRITE), 0); Message-ID: <20130910002405.4aa701d0@nonamehost.local> In-Reply-To: <20130909231713.34ebfbdd@thor.walstatt.dyndns.org> References: <20130909223748.61dd8859@thor.walstatt.dyndns.org> <20130910000237.6b5604da@nonamehost.local> <20130909231713.34ebfbdd@thor.walstatt.dyndns.org> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Authentication-Result: IP=178.137.138.140; mail.from=fidaj@ukr.net; dkim=pass; header.d=ukr.net Cc: FreeBSD CURRENT , FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 21:24:21 -0000 =D0=92 Mon, 9 Sep 2013 23:17:13 +0200 "O. Hartmann" =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Tue, 10 Sep 2013 00:02:37 +0300 > Ivan Klymenko wrote: >=20 > > =D0=92 Mon, 9 Sep 2013 22:37:48 +0200 > > "O. Hartmann" =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: > > > /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.2.18/out/= freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/alloc-r0drv-freebsd.c:8= 3:76: > > > error: too few arguments to function call, expected 10, have 9 > > > cbAllocated, TRUE, VM_PROT_ALL, VM_PROT_ALL, 0); ^ > > > @/vm/vm_map.h:368:1: note: 'vm_map_find' declared here int > > > vm_map_find(vm_map_t, vm_object_t, vm_ooffset_t, vm_offset_t *, > > > vm_size_t, > >=20 > > Try the following changes: > > int rc =3D vm_map_find(kernel_map, pVmObject, 0, &Addr, > > --- cbAllocated, TRUE, VM_PROT_ALL, > > VM_PROT_ALL, 0); +++ cbAllocated, 0, > > VMFS_OPTIMAL_SPACE, VM_PROT_ALL, VM_PROT_ALL, 0); > >=20 > > for Nvidia driver need to make similar changes... > The man page of vm_map_find() says the last parameter is of int, named > int cow. On the hurry, I didn't find any explanation of that > parameter. Setting it to "0" (zero) also in the nvidia_subr.c makes > the driver compile again. >=20 > But simply filling in a int zero is a bit strange without knowing what > to do, isn't it? >=20 > Thanks anyway, >=20 > Oliver This commit you to find an appropriate example ... http://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D291456+0+current/svn-src-head And in this case, the driver Nvidia really need to specify 0 in place of the sixth argument ... but I'm not sure at 100% :)