Current and nvidia-driver again

From: Alex V. Petrov <alexvpetrov_at_gmail.com>
Date: Tue, 28 Aug 2018 16:14:45 +0700
/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.
Received on Tue Aug 28 2018 - 07:14:50 UTC

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