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);

From: Ivan Klymenko <fidaj_at_ukr.net>
Date: Tue, 10 Sep 2013 00:24:05 +0300
В Mon, 9 Sep 2013 23:17:13 +0200
"O. Hartmann" <ohartman_at_zedat.fu-berlin.de> пишет:

> On Tue, 10 Sep 2013 00:02:37 +0300
> Ivan Klymenko <fidaj_at_ukr.net> wrote:
> 
> > В Mon, 9 Sep 2013 22:37:48 +0200
> > "O. Hartmann" <ohartman_at_zedat.fu-berlin.de> пишет:
> > >  /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.2.18/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/alloc-r0drv-freebsd.c:83:76:
> > > error: too few arguments to function call, expected 10, have 9
> > > cbAllocated, TRUE, VM_PROT_ALL, VM_PROT_ALL, 0); ^
> > > _at_/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,
> > 
> > Try the following changes:
> >         int rc = 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);
> > 
> > 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.
> 
> But simply filling in a int zero is a bit strange without knowing what
> to do, isn't it?
> 
> Thanks anyway,
> 
> Oliver

This commit you to find an appropriate example ...
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=291456+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% :)
Received on Mon Sep 09 2013 - 19:24:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC