nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Sun Sep 13 18:57:20 2020 installer version: 390.138 PATH: /usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/qt/bin:/usr/lib64/qt5/bin nvidia-installer command line: ./nvidia-installer Using: nvidia-installer ncurses v6 user interface -> Detected 2 CPUs online; setting concurrency level to 2. -> Installing NVIDIA driver version 390.138. -> Performing CC sanity check with CC="/usr/bin/cc". -> Kernel source path: '/lib/modules/5.8.9/source' -> Kernel output path: '/lib/modules/5.8.9/build' -> Performing Compiler check. -> Performing Dom0 check. -> Performing Xen check. -> Performing PREEMPT_RT check. -> Performing vgpu_kvm check. -> Cleaning kernel module build directory. executing: 'cd ./kernel; /usr/bin/make -k -j2 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.9/source" SYSOUT="/lib/modules/5.8.9/build"'... rm -f -r conftest make[1]: Entering directory '/usr/src/linux' make[1]: Leaving directory '/usr/src/linux' -> Building kernel modules executing: 'cd ./kernel; /usr/bin/make -k -j2 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.9/source" SYSOUT="/lib/modules/5.8.9/build"'... make[1]: Entering directory '/usr/src/linux' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead SYMLINK /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-kernel.o SYMLINK /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset/nv-modeset-kernel.o CONFTEST: remap_pfn_range CONFTEST: INIT_WORK CONFTEST: hash__remap_4k_pfn CONFTEST: follow_pfn CONFTEST: set_pages_uc CONFTEST: vmap CONFTEST: list_is_first CONFTEST: set_memory_uc CONFTEST: set_memory_array_uc CONFTEST: change_page_attr CONFTEST: pci_get_class CONFTEST: pci_choose_state CONFTEST: vm_insert_page CONFTEST: acpi_device_id CONFTEST: acquire_console_sem CONFTEST: console_lock CONFTEST: kmem_cache_create CONFTEST: on_each_cpu CONFTEST: smp_call_function CONFTEST: acpi_evaluate_integer CONFTEST: ioremap_cache CONFTEST: ioremap_wc CONFTEST: acpi_walk_namespace CONFTEST: pci_domain_nr CONFTEST: pci_dma_mapping_error CONFTEST: sg_alloc_table CONFTEST: sg_init_table CONFTEST: pci_get_domain_bus_and_slot CONFTEST: get_num_physpages CONFTEST: efi_enabled CONFTEST: proc_create_data CONFTEST: pde_data CONFTEST: proc_remove CONFTEST: pm_vt_switch_required CONFTEST: xen_ioemu_inject_msi CONFTEST: phys_to_dma CONFTEST: get_dma_ops CONFTEST: write_cr4 CONFTEST: of_get_property CONFTEST: of_find_node_by_phandle CONFTEST: of_node_to_nid CONFTEST: pnv_pci_get_npu_dev CONFTEST: for_each_online_node CONFTEST: node_end_pfn CONFTEST: pci_bus_address CONFTEST: pci_stop_and_remove_bus_device CONFTEST: pci_remove_bus_device CONFTEST: request_threaded_irq CONFTEST: register_cpu_notifier CONFTEST: cpuhp_setup_state CONFTEST: dma_map_resource CONFTEST: backlight_device_register CONFTEST: register_acpi_notifier CONFTEST: timer_setup CONFTEST: kmem_cache_create_usercopy CONFTEST: do_gettimeofday CONFTEST: dma_direct_map_resource CONFTEST: vmf_insert_pfn CONFTEST: jiffies_to_timespec CONFTEST: ktime_get_raw_ts64 CONFTEST: ktime_get_real_ts64 CONFTEST: ioremap_nocache CONFTEST: remap_page_range CONFTEST: address_space_init_once CONFTEST: kbasename CONFTEST: fatal_signal_pending CONFTEST: list_cut_position CONFTEST: vzalloc CONFTEST: wait_on_bit_lock_argument_count CONFTEST: bitmap_clear CONFTEST: usleep_range CONFTEST: radix_tree_empty CONFTEST: radix_tree_replace_slot CONFTEST: drm_dev_unref CONFTEST: drm_reinit_primary_mode_group CONFTEST: get_user_pages_remote CONFTEST: get_user_pages CONFTEST: drm_gem_object_lookup CONFTEST: drm_atomic_state_ref_counting CONFTEST: drm_driver_has_gem_prime_res_obj CONFTEST: drm_atomic_helper_connector_dpms CONFTEST: drm_connector_funcs_have_mode_in_name CONFTEST: drm_framebuffer_get CONFTEST: drm_gem_object_get CONFTEST: drm_dev_put CONFTEST: drm_connector_for_each_possible_encoder CONFTEST: is_export_symbol_gpl_of_node_to_nid CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs CONFTEST: is_export_symbol_present_swiotlb_dma_ops CONFTEST: i2c_adapter CONFTEST: pm_message_t CONFTEST: irq_handler_t CONFTEST: acpi_device_ops CONFTEST: acpi_op_remove CONFTEST: outer_flush_all CONFTEST: proc_dir_entry CONFTEST: scatterlist CONFTEST: sg_table CONFTEST: file_operations CONFTEST: vm_operations_struct CONFTEST: atomic_long_type CONFTEST: pci_save_state CONFTEST: file_inode CONFTEST: task_struct CONFTEST: kuid_t CONFTEST: dma_ops CONFTEST: swiotlb_dma_ops CONFTEST: dma_map_ops CONFTEST: noncoherent_swiotlb_dma_ops CONFTEST: vm_fault_present CONFTEST: vm_fault_has_address CONFTEST: kernel_write CONFTEST: strnstr CONFTEST: iterate_dir CONFTEST: kstrtoull CONFTEST: backlight_properties_type CONFTEST: proc_ops CONFTEST: timeval CONFTEST: kmem_cache_has_kobj_remove_work CONFTEST: sysfs_slab_unlink CONFTEST: pci_dev_has_skip_bus_pm CONFTEST: fault_flags CONFTEST: atomic64_type CONFTEST: address_space CONFTEST: backing_dev_info CONFTEST: mm_context_t CONFTEST: vm_ops_fault_removed_vma_arg CONFTEST: vm_fault_t CONFTEST: pnv_npu2_init_context CONFTEST: drm_bus_present CONFTEST: drm_bus_has_bus_type CONFTEST: drm_bus_has_get_irq CONFTEST: drm_bus_has_get_name CONFTEST: drm_driver_has_legacy_dev_list CONFTEST: drm_driver_has_set_busid CONFTEST: drm_crtc_state_has_connectors_changed CONFTEST: drm_init_function_args CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg CONFTEST: drm_helper_mode_fill_fb_struct CONFTEST: drm_master_drop_has_from_release_arg CONFTEST: drm_driver_unload_has_int_return_type CONFTEST: kref_has_refcount_of_type_refcount_t CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg CONFTEST: drm_crtc_helper_funcs_has_atomic_enable CONFTEST: drm_mode_object_find_has_file_priv_arg CONFTEST: drm_connector_list_iter CONFTEST: drm_atomic_helper_swap_state_has_stall_arg CONFTEST: drm_driver_prime_flag_present CONFTEST: drm_gem_prime_export_has_dev_arg CONFTEST: drm_gem_object_has_resv CONFTEST: dom0_kernel_present CONFTEST: nvidia_vgpu_kvm_build CONFTEST: nvidia_grid_build CONFTEST: drm_available CONFTEST: drm_atomic_available CONFTEST: is_export_symbol_gpl_refcount_inc CONFTEST: is_export_symbol_gpl_refcount_dec_and_test CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 255 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:257:9: note: here 257 | default: | ^~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.c:14: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.c:14: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:47:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 47 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:80:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 80 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:118:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 118 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:121:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 121 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pci-table.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-kthread-q.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-kthread-q-selftest.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.c:12: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.c:12: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.c:27: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.c:21: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.c:21: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_utils.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.c:30: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_utils.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_utils.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_utils.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.c:29: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.c:29: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/nvstatus.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/nvCpuUuid.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_managed': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:301:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 301 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:301:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 301 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:350:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 350 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:350:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 350 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_managed': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:360:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 360 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:360:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 360 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:390:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 390 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:390:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 390 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_fault': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:418:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 418 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:418:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_read' 418 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:478:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 478 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:478:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read' 478 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_semaphore_pool': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:543:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 543 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:543:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 543 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:581:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 581 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:581:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 581 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_semaphore_pool': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:591:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 591 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:591:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 591 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:600:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 600 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:600:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 600 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_mmap': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:626:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 626 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:626:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 626 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:712:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 712 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:712:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 712 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm8_initialize': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:852:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 852 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:504:16: note: in definition of macro 'uvm_down_write_mmap_sem' 504 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:852:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 852 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:504:34: note: in definition of macro 'uvm_down_write_mmap_sem' 504 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:506:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion] 506 | down_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:852:5: note: in expansion of macro 'uvm_down_write_mmap_sem' 852 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: ./include/linux/rwsem.h:136:45: note: expected 'struct rw_semaphore *' but argument is of type 'int' 136 | extern void down_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:871:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 871 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:16: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:871:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 871 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:34: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:511:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 511 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:871:5: note: in expansion of macro 'uvm_up_write_mmap_sem' 871 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: ./include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int' 152 | extern void up_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c: In function 'map_user_pages': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:256:29: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 256 | down_read(¤t->mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:258:27: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 258 | up_read(¤t->mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_isr.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_isr.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_isr.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_isr.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:638:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 638 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:638:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 638 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:638:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 638 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:653:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 653 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:653:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 653 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:653:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 653 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_register_gpu_va_space': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1056:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1056 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:504:16: note: in definition of macro 'uvm_down_write_mmap_sem' 504 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1056:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1056 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:504:34: note: in definition of macro 'uvm_down_write_mmap_sem' 504 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:506:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion] 506 | down_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1056:5: note: in expansion of macro 'uvm_down_write_mmap_sem' 1056 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:136:45: note: expected 'struct rw_semaphore *' but argument is of type 'int' 136 | extern void down_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1095:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1095 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:16: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1095:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1095 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:34: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:511:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 511 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1095:5: note: in expansion of macro 'uvm_up_write_mmap_sem' 1095 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int' 152 | extern void up_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1111:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1111 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:16: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1111:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1111 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:34: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:511:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 511 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1111:5: note: in expansion of macro 'uvm_up_write_mmap_sem' 1111 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int' 152 | extern void up_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu_va_space': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1183:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1183 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1183:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1183 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1183:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 1183 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1202:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1202 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1202:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1202 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1202:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 1202 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_sysmem_user': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_vidmem_user': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c: In function 'uvm8_test_va_range_info': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1728:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1728 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1728:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1728 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1728:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 1728 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1789:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1789 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1789:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1789 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1789:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 1789 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c: In function 'block_map_cpu_page_to': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_change_pte_mapping': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10034:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10034 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10034:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10034 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10034:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10034 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10117:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10117 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10117:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10117 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10117:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10117 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_block_info': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10132:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10132 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10132:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10132 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10132:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10132 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10150:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10150 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10150:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10150 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10150:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10150 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_residency_info': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10166:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10166 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10166:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10166 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10166:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10166 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10289:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10289 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10289:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10289 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10289:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10289 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_access_counters.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_access_counters.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu.c:26: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.h:38, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.h:38, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_ce.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_host.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_ce.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_ce.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_ce.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_mmu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_host.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_host.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_host.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_mmu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell_host.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell_host.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell_host.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell_host.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_ce.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_host.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_ce.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_ce.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_ce.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_mmu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_host.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_host.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_host.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_mmu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_host.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_mmu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_host.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_host.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_host.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_mmu.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_mmu.c:26: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_mmu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c: In function 'accessed_by_set': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:282:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 282 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:282:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 282 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:282:9: note: in expansion of macro 'uvm_down_read_mmap_sem' 282 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:338:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 338 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:338:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 338 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:338:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 338 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c: In function 'read_duplication_set': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:528:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 528 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:528:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 528 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:528:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 528 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:571:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 571 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:571:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 571 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:571:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 571 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_migrate': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:562:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 562 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:562:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 562 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:562:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 562 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:623:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 623 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:498:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 498 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:623:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 623 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:498:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 498 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:499:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 499 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:623:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order' 623 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate_range_group': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:669:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 669 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:669:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 669 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:669:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 669 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:714:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 714 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:498:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 498 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:714:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 714 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:498:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 498 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:499:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 499 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:714:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order' 714 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_heuristics.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_heuristics.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_page_tree_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_page_tree_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_page_tree_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_page_tree_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push_test.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push_test.c:26: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_ce_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_ce_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_ce_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_ce_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group_tree_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset/nvidia-modeset-linux.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group_tree_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-drv.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-utils.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-crtc.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-encoder.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-connector.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-gem.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-fb.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-modeset.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-prime-fence.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-helper.o /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.c: In function 'nv_drm_lock_user_pages': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.c:106:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 106 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.c:110:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 110 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nv-pci-table.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o LD [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset.o ld -r -o /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset/nvidia-modeset-linux.o make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1756: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux' make: *** [Makefile:81: modules] Error 2 -> Error. ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details. -> The command `cd ./kernel; /usr/bin/make -k -j2 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.9/source" SYSOUT="/lib/modules/5.8.9/build"` failed with the following output: make[1]: Entering directory '/usr/src/linux' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead SYMLINK /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-kernel.o SYMLINK /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset/nv-modeset-kernel.o CONFTEST: remap_pfn_range CONFTEST: INIT_WORK CONFTEST: hash__remap_4k_pfn CONFTEST: follow_pfn CONFTEST: set_pages_uc CONFTEST: vmap CONFTEST: list_is_first CONFTEST: set_memory_uc CONFTEST: set_memory_array_uc CONFTEST: change_page_attr CONFTEST: pci_get_class CONFTEST: pci_choose_state CONFTEST: vm_insert_page CONFTEST: acpi_device_id CONFTEST: acquire_console_sem CONFTEST: console_lock CONFTEST: kmem_cache_create CONFTEST: on_each_cpu CONFTEST: smp_call_function CONFTEST: acpi_evaluate_integer CONFTEST: ioremap_cache CONFTEST: ioremap_wc CONFTEST: acpi_walk_namespace CONFTEST: pci_domain_nr CONFTEST: pci_dma_mapping_error CONFTEST: sg_alloc_table CONFTEST: sg_init_table CONFTEST: pci_get_domain_bus_and_slot CONFTEST: get_num_physpages CONFTEST: efi_enabled CONFTEST: proc_create_data CONFTEST: pde_data CONFTEST: proc_remove CONFTEST: pm_vt_switch_required CONFTEST: xen_ioemu_inject_msi CONFTEST: phys_to_dma CONFTEST: get_dma_ops CONFTEST: write_cr4 CONFTEST: of_get_property CONFTEST: of_find_node_by_phandle CONFTEST: of_node_to_nid CONFTEST: pnv_pci_get_npu_dev CONFTEST: for_each_online_node CONFTEST: node_end_pfn CONFTEST: pci_bus_address CONFTEST: pci_stop_and_remove_bus_device CONFTEST: pci_remove_bus_device CONFTEST: request_threaded_irq CONFTEST: register_cpu_notifier CONFTEST: cpuhp_setup_state CONFTEST: dma_map_resource CONFTEST: backlight_device_register CONFTEST: register_acpi_notifier CONFTEST: timer_setup CONFTEST: kmem_cache_create_usercopy CONFTEST: do_gettimeofday CONFTEST: dma_direct_map_resource CONFTEST: vmf_insert_pfn CONFTEST: jiffies_to_timespec CONFTEST: ktime_get_raw_ts64 CONFTEST: ktime_get_real_ts64 CONFTEST: ioremap_nocache CONFTEST: remap_page_range CONFTEST: address_space_init_once CONFTEST: kbasename CONFTEST: fatal_signal_pending CONFTEST: list_cut_position CONFTEST: vzalloc CONFTEST: wait_on_bit_lock_argument_count CONFTEST: bitmap_clear CONFTEST: usleep_range CONFTEST: radix_tree_empty CONFTEST: radix_tree_replace_slot CONFTEST: drm_dev_unref CONFTEST: drm_reinit_primary_mode_group CONFTEST: get_user_pages_remote CONFTEST: get_user_pages CONFTEST: drm_gem_object_lookup CONFTEST: drm_atomic_state_ref_counting CONFTEST: drm_driver_has_gem_prime_res_obj CONFTEST: drm_atomic_helper_connector_dpms CONFTEST: drm_connector_funcs_have_mode_in_name CONFTEST: drm_framebuffer_get CONFTEST: drm_gem_object_get CONFTEST: drm_dev_put CONFTEST: drm_connector_for_each_possible_encoder CONFTEST: is_export_symbol_gpl_of_node_to_nid CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs CONFTEST: is_export_symbol_present_swiotlb_dma_ops CONFTEST: i2c_adapter CONFTEST: pm_message_t CONFTEST: irq_handler_t CONFTEST: acpi_device_ops CONFTEST: acpi_op_remove CONFTEST: outer_flush_all CONFTEST: proc_dir_entry CONFTEST: scatterlist CONFTEST: sg_table CONFTEST: file_operations CONFTEST: vm_operations_struct CONFTEST: atomic_long_type CONFTEST: pci_save_state CONFTEST: file_inode CONFTEST: task_struct CONFTEST: kuid_t CONFTEST: dma_ops CONFTEST: swiotlb_dma_ops CONFTEST: dma_map_ops CONFTEST: noncoherent_swiotlb_dma_ops CONFTEST: vm_fault_present CONFTEST: vm_fault_has_address CONFTEST: kernel_write CONFTEST: strnstr CONFTEST: iterate_dir CONFTEST: kstrtoull CONFTEST: backlight_properties_type CONFTEST: proc_ops CONFTEST: timeval CONFTEST: kmem_cache_has_kobj_remove_work CONFTEST: sysfs_slab_unlink CONFTEST: pci_dev_has_skip_bus_pm CONFTEST: fault_flags CONFTEST: atomic64_type CONFTEST: address_space CONFTEST: backing_dev_info CONFTEST: mm_context_t CONFTEST: vm_ops_fault_removed_vma_arg CONFTEST: vm_fault_t CONFTEST: pnv_npu2_init_context CONFTEST: drm_bus_present CONFTEST: drm_bus_has_bus_type CONFTEST: drm_bus_has_get_irq CONFTEST: drm_bus_has_get_name CONFTEST: drm_driver_has_legacy_dev_list CONFTEST: drm_driver_has_set_busid CONFTEST: drm_crtc_state_has_connectors_changed CONFTEST: drm_init_function_args CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg CONFTEST: drm_helper_mode_fill_fb_struct CONFTEST: drm_master_drop_has_from_release_arg CONFTEST: drm_driver_unload_has_int_return_type CONFTEST: kref_has_refcount_of_type_refcount_t CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg CONFTEST: drm_crtc_helper_funcs_has_atomic_enable CONFTEST: drm_mode_object_find_has_file_priv_arg CONFTEST: drm_connector_list_iter CONFTEST: drm_atomic_helper_swap_state_has_stall_arg CONFTEST: drm_driver_prime_flag_present CONFTEST: drm_gem_prime_export_has_dev_arg CONFTEST: drm_gem_object_has_resv CONFTEST: dom0_kernel_present CONFTEST: nvidia_vgpu_kvm_build CONFTEST: nvidia_grid_build CONFTEST: drm_available CONFTEST: drm_atomic_available CONFTEST: is_export_symbol_gpl_refcount_inc CONFTEST: is_export_symbol_gpl_refcount_dec_and_test CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 255 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:257:9: note: here 257 | default: | ^~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.c:14: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.c:14: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:47:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 47 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:80:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 80 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:118:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 118 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:121:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 121 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pci-table.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-kthread-q.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-kthread-q-selftest.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.c:12: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.c:12: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.c:27: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.c:21: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.c:21: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_utils.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.c:30: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_utils.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_utils.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_utils.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.c:29: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.c:29: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/nvstatus.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/nvCpuUuid.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_managed': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:301:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 301 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:301:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 301 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:350:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 350 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:350:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 350 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_managed': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:360:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 360 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:360:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 360 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:390:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 390 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:390:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 390 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_fault': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:418:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 418 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:418:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_read' 418 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:478:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 478 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:478:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read' 478 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_semaphore_pool': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:543:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 543 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:543:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 543 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:581:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 581 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:581:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 581 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_semaphore_pool': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:591:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 591 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:591:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 591 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:600:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 600 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:600:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 600 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm_mmap': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:626:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 626 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:626:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 626 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:712:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 712 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:712:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 712 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c: In function 'uvm8_initialize': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:852:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 852 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:504:16: note: in definition of macro 'uvm_down_write_mmap_sem' 504 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:852:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 852 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:504:34: note: in definition of macro 'uvm_down_write_mmap_sem' 504 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:506:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion] 506 | down_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:852:5: note: in expansion of macro 'uvm_down_write_mmap_sem' 852 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: ./include/linux/rwsem.h:136:45: note: expected 'struct rw_semaphore *' but argument is of type 'int' 136 | extern void down_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:871:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 871 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:16: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:871:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 871 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:34: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:511:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 511 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:871:5: note: in expansion of macro 'uvm_up_write_mmap_sem' 871 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.c:24: ./include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int' 152 | extern void up_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c: In function 'map_user_pages': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:256:29: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 256 | down_read(¤t->mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.c:258:27: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 258 | up_read(¤t->mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tools.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_isr.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_isr.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_isr.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_isr.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_procfs.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:638:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 638 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:638:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 638 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:638:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 638 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:653:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 653 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:653:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 653 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:653:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 653 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_register_gpu_va_space': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1056:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1056 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:504:16: note: in definition of macro 'uvm_down_write_mmap_sem' 504 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1056:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1056 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:504:34: note: in definition of macro 'uvm_down_write_mmap_sem' 504 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:506:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion] 506 | down_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1056:5: note: in expansion of macro 'uvm_down_write_mmap_sem' 1056 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:136:45: note: expected 'struct rw_semaphore *' but argument is of type 'int' 136 | extern void down_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1095:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1095 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:16: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1095:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1095 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:34: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:511:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 511 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1095:5: note: in expansion of macro 'uvm_up_write_mmap_sem' 1095 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int' 152 | extern void up_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1111:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1111 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:16: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1111:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1111 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:510:34: note: in definition of macro 'uvm_up_write_mmap_sem' 510 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:511:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 511 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1111:5: note: in expansion of macro 'uvm_up_write_mmap_sem' 1111 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int' 152 | extern void up_write(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu_va_space': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1183:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1183 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1183:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1183 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1183:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 1183 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1202:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1202 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1202:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1202 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:1202:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 1202 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_sysmem_user': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:482:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 482 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_vidmem_user': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:506:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 506 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c: In function 'uvm8_test_va_range_info': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1728:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1728 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1728:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1728 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1728:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 1728 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1789:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1789 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1789:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1789 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:1789:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 1789 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c: In function 'block_map_cpu_page_to': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:6230:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6230 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_change_pte_mapping': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10034:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10034 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10034:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10034 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10034:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10034 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10117:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10117 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10117:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10117 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10117:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10117 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_block_info': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10132:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10132 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10132:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10132 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10132:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10132 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10150:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10150 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10150:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10150 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10150:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10150 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_residency_info': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10166:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10166 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10166:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10166 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10166:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10166 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10289:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10289 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10289:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10289 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:10289:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10289 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_access_counters.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_access_counters.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu.c:26: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pte_batch.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tlb_batch.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pushbuffer.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.h:38, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.h:38, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_thread_context.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_ce.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_host.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_ce.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_ce.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_ce.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_mmu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_host.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_host.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_host.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kepler_mmu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell_host.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell_host.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell_host.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_maxwell_host.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_ce.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_host.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_ce.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_ce.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_ce.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_mmu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_host.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_host.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_host.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_mmu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_host.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_mmu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_host.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_host.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_host.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_mmu.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_mmu.c:26: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_mmu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c: In function 'accessed_by_set': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:282:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 282 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:282:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 282 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:282:9: note: in expansion of macro 'uvm_down_read_mmap_sem' 282 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:338:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 338 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:338:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 338 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:338:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 338 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c: In function 'read_duplication_set': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:528:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 528 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:528:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 528 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:528:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 528 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:571:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 571 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:16: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:571:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 571 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:492:34: note: in definition of macro 'uvm_up_read_mmap_sem' 492 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:493:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 493 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:571:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 571 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.c:25: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_policy.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_migrate': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:356:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 356 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:562:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 562 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:562:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 562 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:562:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 562 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:623:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 623 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:498:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 498 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:623:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 623 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:498:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 498 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:499:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 499 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:623:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order' 623 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate_range_group': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:669:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 669 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:16: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:669:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 669 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:486:34: note: in definition of macro 'uvm_down_read_mmap_sem' 486 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:488:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 488 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:669:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 669 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int' 125 | extern void down_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:714:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 714 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:498:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 498 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:714:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 714 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:498:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 498 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:499:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 499 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:714:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order' 714 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.c:24: ./include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int' 147 | extern void up_read(struct rw_semaphore *sem); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_migrate.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_map_external.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_user_channel.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_heuristics.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hmm.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_heuristics.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_thrashing.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_prefetch.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test_rng.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_tree_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_allocator_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mem_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_page_tree_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_page_tree_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_page_tree_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_rm_mem_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_page_tree_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push_test.c:26: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push_test.c:26: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_tracker_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_push_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_ce_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_ce_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_ce_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_channel_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_ce_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_utils_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.c:25: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_global.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_current': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:477:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 477 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/mm_types.h:11, from ./include/linux/mmzone.h:21, from ./include/linux/gfp.h:6, from ./include/linux/mm.h:10, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-pgprot.h:17, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:20, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: ./include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int' 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem) | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~ | | | int /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR' 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG' 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n") | ^~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:478:7: note: in expansion of macro 'UVM_ASSERT' 478 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \ | ^~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:481:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 481 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_range.h:664:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 664 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_lock.h:447:38: note: expected 'void *' but argument is of type 'int' 447 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_events_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_kvmalloc.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_perf_module_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_mmu_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group_tree_test.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_common.h:48, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_va_block_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset/nvidia-modeset-linux.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-uvm/uvm8_range_group_tree_test.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-drv.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-utils.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-crtc.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-encoder.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-connector.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-gem.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-fb.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-modeset.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-prime-fence.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-helper.o /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.c: In function 'nv_drm_lock_user_pages': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.c:106:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 106 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.c:110:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 110 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-linux.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nv-pci-table.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o LD [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset.o ld -r -o /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia-modeset/nvidia-modeset-linux.o make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1756: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux' make: *** [Makefile:81: modules] Error 2 -> Checking to see whether the nvidia kernel module was successfully built executing: 'cd ./kernel; /usr/bin/make -k -j2 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.9/source" SYSOUT="/lib/modules/5.8.9/build"'... make[1]: Entering directory '/usr/src/linux' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 255 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:257:9: note: here 257 | default: | ^~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.c:14: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.c:14: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:47:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 47 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:80:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 80 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.o] Error 1 /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:118:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 118 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:121:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 121 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.c:12: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.c:12: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.c:27: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.c:21: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.c:21: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.o] Error 1 In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.c:30: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.o] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1756: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux' make: *** [Makefile:81: modules] Error 2 -> Error. ERROR: An error occurred while performing the step: "Checking to see whether the nvidia kernel module was successfully built". See /var/log/nvidia-installer.log for details. -> The command `cd ./kernel; /usr/bin/make -k -j2 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.9/source" SYSOUT="/lib/modules/5.8.9/build"` failed with the following output: make[1]: Entering directory '/usr/src/linux' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-instance.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-frontend.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.c:13: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.c:13: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gpu-numa.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-acpi.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-chrdev.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-cray.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-dma.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-gvi.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-i2c.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mempool.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 255 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.c:257:9: note: here 257 | default: | ^~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-mmap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-p2p.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-pat.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-procfs.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-usermap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.c:14: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.c:14: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vm.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-vtophys.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:47:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 47 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:80:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 80 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-interface.o] Error 1 /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:118:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 118 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.c:121:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 121 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-mlock.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-pci.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-registry.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/os-usermap.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.c:15: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.c:15: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-modeset-interface.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.c:12: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.c:12: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-memdbg.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.c:27: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.c:27: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-ibmnpu.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.c:24: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv-report-err.o] Error 1 CC [M] /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.o In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.c:21: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.c:21: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nv_uvm_interface.o] Error 1 In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:534:17: error: too many arguments to function '__vmalloc' 534 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/common/inc/nv-linux.h:94, from /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.c:30: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel/nvidia/nvlink_linux.o] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1756: /tmp/selfgz532/NVIDIA-Linux-x86_64-390.138/kernel] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux' make: *** [Makefile:81: modules] Error 2 ERROR: The nvidia kernel module was not created. ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.