Date: Tue, 28 Aug 2018 16:14:45 +0700 From: "Alex V. Petrov" <alexvpetrov@gmail.com> To: freebsd-current@freebsd.org Subject: Current and nvidia-driver again Message-ID: <2fe26c67-cfe3-90e9-89ae-aff6afdbf7f8@gmail.com>
next in thread | raw e-mail | index | archive | help
/usr/src Revision: 338342 ===> Building for nvidia-driver-390.77 nvidia_subr.c:1179:65: error: too many arguments to function call, expected 2, have 3 kmem_free(kmem_arena, at->pte_array[0].virtual_address, at->size); ~~~~~~~~~ ^~~~~~~~ /usr/src/sys/vm/vm_extern.h:69:1: note: 'kmem_free' declared here void kmem_free(vm_offset_t addr, vm_size_t size); ^ nvidia_subr.c:1205:61: error: too many arguments to function call, expected 2, have 3 kmem_free(kmem_arena, at->pte_array[0].virtual_address, at->size); ~~~~~~~~~ ^~~~~~~~ /usr/src/sys/vm/vm_extern.h:69:1: note: 'kmem_free' declared here void kmem_free(vm_offset_t addr, vm_size_t size); ^ nvidia_subr.c:1322:65: error: too many arguments to function call, expected 2, have 3 kmem_free(kmem_arena, at->pte_array[i].virtual_address, PAGE_SIZE); ~~~~~~~~~ ^~~~~~~~~ ./machine/param.h:101:19: note: expanded from macro 'PAGE_SIZE' #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ ^~~~~~~~~~~~~~~ /usr/src/sys/vm/vm_extern.h:69:1: note: 'kmem_free' declared here void kmem_free(vm_offset_t addr, vm_size_t size); ^ nvidia_subr.c:1351:65: error: too many arguments to function call, expected 2, have 3 kmem_free(kmem_arena, at->pte_array[i].virtual_address, PAGE_SIZE); ~~~~~~~~~ ^~~~~~~~~ ./machine/param.h:101:19: note: expanded from macro 'PAGE_SIZE' #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ ^~~~~~~~~~~~~~~ /usr/src/sys/vm/vm_extern.h:69:1: note: 'kmem_free' declared here void kmem_free(vm_offset_t addr, vm_size_t size); ^ 4 errors generated. *** Error code 1 -- ----- Alex.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2fe26c67-cfe3-90e9-89ae-aff6afdbf7f8>