Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Sep 2013 00:02:37 +0300
From:      Ivan Klymenko <fidaj@ukr.net>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, FreeBSD Ports <freebsd-ports@freebsd.org>
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:  <20130910000237.6b5604da@nonamehost.local>
In-Reply-To: <20130909223748.61dd8859@thor.walstatt.dyndns.org>
References:  <20130909223748.61dd8859@thor.walstatt.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
=D0=92 Mon, 9 Sep 2013 22:37:48 +0200
"O. Hartmann" <ohartman@zedat.fu-berlin.de> =D0=BF=D0=B8=D1=88=D0=B5=D1=82:

> x11/nvidia-driver (as well as emulators/virtualbox-ose-kmod) do not
> compile on  FreeBSD 10.0-CURRENT #0 r255426: Mon Sep  9 21:35:43 CEST
> 2013 amd64.
>=20
> The error is:
>=20
> x11/nvidia-driver:
>=20
> --- nvidia_subr.o ---
> nvidia_subr.c:835:46: error: too few arguments to function call,
> expected 10, have 9 (VM_PROT_READ | VM_PROT_WRITE), 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, ^
> 1 error generated.
> *** [nvidia_subr.o] Error code 1
>=20
>=20
> emulators/virtualbox-ose-kmod:
>=20
> [...]
>  /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.2.18/out/free=
bsd.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); ^
> @/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 =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_AL=
L, VM_PROT_ALL, 0);

for Nvidia driver need to make similar changes...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130910000237.6b5604da>