cc -O2 -pipe -DNV_VERSION_STRING=\"304.125\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -c nvidia_subr.c -o nvidia_subr.o
nvidia_subr.c:904:5: error: implicit declaration of function 'VM_OBJECT_LOCK' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
VM_OBJECT_LOCK(sc->AGP_object);
^
nvidia_subr.c:906:5: error: implicit declaration of function 'VM_OBJECT_UNLOCK'
is invalid in C99 [-Werror,-Wimplicit-function-declaration]
VM_OBJECT_UNLOCK(sc->AGP_object);
^
nvidia_subr.c:906:5: note: did you mean 'VM_OBJECT_LOCK'?
nvidia_subr.c:904:5: note: 'VM_OBJECT_LOCK' declared here
VM_OBJECT_LOCK(sc->AGP_object);
^
2 errors generated.
*** Error code 1
Stop.
make[1]: stopped in /root/nv/NVIDIA-FreeBSD-x86_64-304.125/src
*** Error code 1
Stop
This is actually a 10.2-BETA1 FreeBSD 10.2-BETA1 #1 r285439 from today (10-stable).
Regards,
Holm