nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Wed Jul 1 07:37:52 2020 installer version: 450.51 PATH: /usr/lib64/qt-3.3/bin:/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/scripts:/root/.local/bin:/root/bin:/root/.local/bin nvidia-installer command line: ./nvidia-installer --kernel-source-path=/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/ Using: nvidia-installer ncurses v6 user interface -> Detected 16 CPUs online; setting concurrency level to 16. -> Tagging shared libraries with chcon -t textrel_shlib_t. -> Installing NVIDIA driver version 450.51. -> There appears to already be a driver installed on your system (version: 440.82). As part of installing this driver (version: 450.51), the existing driver will be uninstalled. Are you sure you want to continue? (Answer: Continue installation) -> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: No) -> Performing CC sanity check with CC="/usr/bin/cc". -> Performing CC check. -> Using the kernel source path '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/' as specified by the '--kernel-source-path' commandline option. -> Kernel source path: '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/' -> Kernel output path: '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/' -> 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 -j16 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/" SYSOUT="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/"'... rm -f -r conftest make[1]: Entering directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' make[1]: Leaving directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' -> Building kernel modules executing: 'cd ./kernel; /usr/bin/make -k -j16 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/" SYSOUT="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/"'... make[1]: Entering directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead SYMLINK /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-kernel.o SYMLINK /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nv-modeset-kernel.o CONFTEST: hash__remap_4k_pfn CONFTEST: set_pages_uc CONFTEST: list_is_first CONFTEST: set_memory_uc CONFTEST: acquire_console_sem CONFTEST: set_memory_array_uc CONFTEST: console_lock CONFTEST: set_pages_array_uc CONFTEST: ioremap_cache CONFTEST: ioremap_wc CONFTEST: pci_get_domain_bus_and_slot CONFTEST: sg_alloc_table CONFTEST: acpi_walk_namespace CONFTEST: efi_enabled CONFTEST: get_num_physpages 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: of_get_ibm_chip_id CONFTEST: node_end_pfn CONFTEST: pci_bus_address CONFTEST: pci_stop_and_remove_bus_device CONFTEST: pci_remove_bus_device CONFTEST: register_cpu_notifier CONFTEST: cpuhp_setup_state CONFTEST: backlight_device_register CONFTEST: dma_map_resource CONFTEST: timer_setup CONFTEST: pci_enable_msix_range CONFTEST: do_gettimeofday CONFTEST: kernel_read CONFTEST: kernel_write CONFTEST: kthread_create_on_node CONFTEST: of_find_matching_node CONFTEST: dev_is_pci CONFTEST: dma_direct_map_resource CONFTEST: tegra_get_platform CONFTEST: flush_cache_all CONFTEST: vmf_insert_pfn CONFTEST: jiffies_to_timespec CONFTEST: ktime_get_raw_ts64 CONFTEST: ktime_get_real_ts64 CONFTEST: address_space_init_once CONFTEST: kbasename CONFTEST: vzalloc CONFTEST: bitmap_clear CONFTEST: wait_on_bit_lock_argument_count CONFTEST: usleep_range CONFTEST: radix_tree_empty CONFTEST: radix_tree_replace_slot CONFTEST: pnv_npu2_init_context CONFTEST: cpumask_of_node 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_format_num_planes 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: is_export_symbol_present___close_fd CONFTEST: is_export_symbol_present_get_unused_fd CONFTEST: is_export_symbol_present_get_unused_fd_flags CONFTEST: is_export_symbol_present_screen_info CONFTEST: is_export_symbol_present_kthread_create_on_node CONFTEST: acpi_op_remove CONFTEST: outer_flush_all CONFTEST: file_operations CONFTEST: file_inode CONFTEST: kuid_t CONFTEST: dma_ops CONFTEST: swiotlb_dma_ops CONFTEST: noncoherent_swiotlb_dma_ops CONFTEST: vm_fault_has_address CONFTEST: backlight_properties_type CONFTEST: vm_insert_pfn_prot CONFTEST: vmf_insert_pfn_prot CONFTEST: vm_ops_fault_removed_vma_arg CONFTEST: vmbus_channel_has_ringbuffer_page CONFTEST: device_driver_of_match_table CONFTEST: device_of_node CONFTEST: node_states_n_memory CONFTEST: kmem_cache_has_kobj_remove_work CONFTEST: sysfs_slab_unlink CONFTEST: proc_ops CONFTEST: timeval CONFTEST: address_space CONFTEST: backing_dev_info CONFTEST: mm_context_t CONFTEST: vm_fault_t CONFTEST: mmu_notifier_ops_invalidate_range 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_helper_mode_fill_fb_struct CONFTEST: drm_master_drop_has_from_release_arg CONFTEST: drm_driver_unload_has_int_return_type 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: dma_buf_owner CONFTEST: drm_connector_list_iter CONFTEST: drm_atomic_helper_swap_state_has_stall_arg CONFTEST: drm_driver_prime_flag_present CONFTEST: drm_gem_object_has_resv CONFTEST: dom0_kernel_present CONFTEST: nvidia_vgpu_hyperv_available CONFTEST: nvidia_vgpu_kvm_build CONFTEST: nvidia_grid_build CONFTEST: nvidia_grid_csp_build CONFTEST: pm_runtime_available CONFTEST: drm_available CONFTEST: drm_atomic_available CONFTEST: is_export_symbol_gpl_refcount_inc CONFTEST: is_export_symbol_gpl_refcount_dec_and_test CONFTEST: drm_alpha_blending_available CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.c:13: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-pci.h:15, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.c:12: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/io.h:13, from ./include/linux/pci.h:39, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci-table.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.c:11: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.c:14: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.c:14: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.c:14: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c: In function 'nvidia_mmap': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:662:9: warning: unused variable 'i' [-Wunused-variable] 662 | int i = 0; | ^ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:46:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 46 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:79:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 79 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:113:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 113 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:116:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 116 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:334:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 334 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:336:9: note: here 336 | default: | ^~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci-table.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-kthread-q.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_caps.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.c:12: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-msi.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.c:11: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-msi.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.c:11: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.c:21: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_ce.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_host.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_mmu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_utils.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.c:23: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nvstatus.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nvCpuUuid.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q-selftest.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_isr.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_procfs.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_ce.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_ce.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_host.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_mmu.c:34: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_mmu.c:34: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.c:20: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_utils.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.c:20: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q-selftest.c:39: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q-selftest.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_utils.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q-selftest.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_isr.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_mmu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_ce.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_procfs.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_host.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c: In function 'map_user_pages': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:267:29: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 267 | down_read(¤t->mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:269:27: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 269 | up_read(¤t->mm->mmap_sem); | ^~~~~~~~ | mmap_base In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_managed': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:371:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 371 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:371:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 371 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_procfs.o] Error 1 /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:420:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 420 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:420:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 420 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_managed': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:435:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 435 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:435:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 435 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:479:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 479 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:479:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 479 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_fault': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:527:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 527 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:527:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_read' 527 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:590:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 590 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:590:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read' 590 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_semaphore_pool': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:666:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 666 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:666:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 666 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:706:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 706 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:706:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 706 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_semaphore_pool': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:721:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 721 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:721:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 721 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:730:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 730 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:730:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 730 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_mmap': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:800:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 800 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:800:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 800 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:867:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 867 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:867:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 867 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_isr.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_initialize': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:519:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 519 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:564:16: note: in definition of macro 'uvm_down_write_mmap_sem' 564 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:519:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 519 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:564:34: note: in definition of macro 'uvm_down_write_mmap_sem' 564 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:566:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion] 566 | down_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:519:5: note: in expansion of macro 'uvm_down_write_mmap_sem' 519 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:548:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 548 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:16: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:548:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 548 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:34: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:571:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 571 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:548:5: note: in expansion of macro 'uvm_up_write_mmap_sem' 548 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:838:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 838 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:838:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 838 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:838:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 838 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:855:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 855 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:855:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 855 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:855:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 855 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_register_gpu_va_space': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1288:47: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1288 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:564:16: note: in definition of macro 'uvm_down_write_mmap_sem' 564 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1288:47: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1288 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:564:34: note: in definition of macro 'uvm_down_write_mmap_sem' 564 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:566:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion] 566 | down_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1288:9: note: in expansion of macro 'uvm_down_write_mmap_sem' 1288 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1290:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1290 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1290:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1290 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1290:9: note: in expansion of macro 'uvm_down_read_mmap_sem' 1290 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ~~~~~~~~~~~~~~~~~~~~~^~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1345:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1345 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:16: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1345:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1345 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:34: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:571:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 571 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1345:9: note: in expansion of macro 'uvm_up_write_mmap_sem' 1345 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1347:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1347 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1347:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1347 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1347:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 1347 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1366:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1366 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:16: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1366:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1366 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:34: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:571:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 571 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1366:9: note: in expansion of macro 'uvm_up_write_mmap_sem' 1366 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1368:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1368 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1368:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1368 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1368:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 1368 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu_va_space': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1442:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1442 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1442:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1442 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1442:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 1442 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1460:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1460 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1460:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1460 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1460:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 1460 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c: In function 'uvm_mmu_notifier_register': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:60: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:60: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:543:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 543 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_EXCLUSIVE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:543:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 543 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_EXCLUSIVE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c: In function 'uvm_va_space_mm_register': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:543:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 543 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_EXCLUSIVE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:543:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 543 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_EXCLUSIVE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c: In function 'mm_read64': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:549:33: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 549 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:549:33: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 549 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:549:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 549 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:551:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 551 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:551:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 551 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:551:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 551 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_sysmem_user': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_vidmem_user': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pushbuffer.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c: In function 'uvm8_test_va_range_info': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1807:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1807 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1807:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1807 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1807:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 1807 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1868:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1868 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1868:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1868 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1868:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 1868 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_ce.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c: In function 'service_fault': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:511:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 511 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:511:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 511 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:511:9: note: in expansion of macro 'uvm_down_read_mmap_sem' 511 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: ./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); | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c: In function 'service_fault_batch': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:562:35: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 562 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:562:35: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 562 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:562:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 562 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: ./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); | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1466:47: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1466 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1466:47: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1466 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1466:21: note: in expansion of macro 'uvm_up_read_mmap_sem' 1466 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1482:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1482 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1482:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1482 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1482:17: note: in expansion of macro 'uvm_down_read_mmap_sem' 1482 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1589:39: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1589 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1589:39: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1589 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1589:13: note: in expansion of macro 'uvm_up_read_mmap_sem' 1589 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.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); | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c: In function 'block_map_cpu_page_to': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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) | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_host.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.h:26, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.h:26, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_mmu.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c: In function 'service_phys_single_va_block': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1177:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1177 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1177:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1177 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1177:13: note: in expansion of macro 'uvm_down_read_mmap_sem' 1177 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1219:35: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1219 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1219:35: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1219 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1219:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 1219 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.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); | ~~~~~~~~~~~~~~~~~~~~~^~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell_host.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_change_pte_mapping': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10678:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10678 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10678:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10678 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10678:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10678 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10761:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10761 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10761:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10761 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10761:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10761 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_block_info': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10776:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10776 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10776:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10776 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10776:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10776 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10794:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10794 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10794:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10794 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10794:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10794 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_residency_info': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10811:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10811 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10811:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10811 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10811:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10811 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10954:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10954 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10954:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10954 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10954:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10954 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pushbuffer.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_ce.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_host.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_mmu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_host.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_mmu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pushbuffer.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_ce.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_ce.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_mmu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_mmu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_host.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_host.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell_host.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_ce.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_mmu.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_ce.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_host.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_mmu.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_mmu.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_heuristics.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_host.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_mmu.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_host.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_mmu.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_ibm.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_is_valid_vma_range': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_api_set_preferred_location': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:236:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 236 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:236:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 236 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:236:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 236 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:309:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 309 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:309:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 309 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:309:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 309 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_api_unset_preferred_location': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:321:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 321 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:321:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 321 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:321:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 321 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:332:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 332 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:332:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 332 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:332:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 332 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'accessed_by_set': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:413:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 413 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:413:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 413 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:413:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 413 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:477:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 477 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:477:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 477 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:477:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 477 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'read_duplication_set': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:660:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 660 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:660:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 660 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:660:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 660 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:714:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 714 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:714:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 714 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:714:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 714 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_host.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator_test.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:33, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:33, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_populate_pageable_vma': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:69:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 69 | uvm_record_unlock_mmap_sem_read(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:69:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read' 69 | uvm_record_unlock_mmap_sem_read(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:74:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 74 | uvm_record_lock_mmap_sem_read(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:74:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_read' 74 | uvm_record_lock_mmap_sem_read(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_populate_pageable': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_migrate': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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) | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:858:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 858 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_api_populate_pageable': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:158:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 158 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:158:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 158 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:158:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 158 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:165:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 165 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:165:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 165 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:165:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 165 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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); | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:858:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 858 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:858:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 858 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:940:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 940 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:558:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 558 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:940:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 940 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:558:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 558 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:559:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 559 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:940:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order' 940 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate_range_group': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:986:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 986 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:986:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 986 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:986:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 986 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:1031:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1031 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:558:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 558 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:1031:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1031 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:558:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 558 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:559:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 559 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:1031:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order' 1031 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem_test.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_page_tree_test.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_ibm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_ibm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_heuristics.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ce_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_ibm.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc_test.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_types.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_types.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_types.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree_test.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_page_tree_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push_test.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ce_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem_test.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_page_tree_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group_tree_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker_test.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push_test.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ce_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nvidia-modeset-linux.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nv-kthread-q.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc_test.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-drv.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-utils.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-crtc.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-encoder.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-connector.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-gem.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-fb.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-modeset.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context_test.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context_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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-prime-fence.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-linux.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu_test.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-helper.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nv-pci-table.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group_tree_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-format.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context_test.o] Error 1 ld -r -o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nvidia-modeset-linux.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nv-kthread-q.o LD [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-linux.c: In function 'nv_drm_lock_user_pages': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/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:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-linux.o] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1756: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' 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 -j16 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/" SYSOUT="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/"` failed with the following output: make[1]: Entering directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead SYMLINK /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-kernel.o SYMLINK /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nv-modeset-kernel.o CONFTEST: hash__remap_4k_pfn CONFTEST: set_pages_uc CONFTEST: list_is_first CONFTEST: set_memory_uc CONFTEST: acquire_console_sem CONFTEST: set_memory_array_uc CONFTEST: console_lock CONFTEST: set_pages_array_uc CONFTEST: ioremap_cache CONFTEST: ioremap_wc CONFTEST: pci_get_domain_bus_and_slot CONFTEST: sg_alloc_table CONFTEST: acpi_walk_namespace CONFTEST: efi_enabled CONFTEST: get_num_physpages 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: of_get_ibm_chip_id CONFTEST: node_end_pfn CONFTEST: pci_bus_address CONFTEST: pci_stop_and_remove_bus_device CONFTEST: pci_remove_bus_device CONFTEST: register_cpu_notifier CONFTEST: cpuhp_setup_state CONFTEST: backlight_device_register CONFTEST: dma_map_resource CONFTEST: timer_setup CONFTEST: pci_enable_msix_range CONFTEST: do_gettimeofday CONFTEST: kernel_read CONFTEST: kernel_write CONFTEST: kthread_create_on_node CONFTEST: of_find_matching_node CONFTEST: dev_is_pci CONFTEST: dma_direct_map_resource CONFTEST: tegra_get_platform CONFTEST: flush_cache_all CONFTEST: vmf_insert_pfn CONFTEST: jiffies_to_timespec CONFTEST: ktime_get_raw_ts64 CONFTEST: ktime_get_real_ts64 CONFTEST: address_space_init_once CONFTEST: kbasename CONFTEST: vzalloc CONFTEST: bitmap_clear CONFTEST: wait_on_bit_lock_argument_count CONFTEST: usleep_range CONFTEST: radix_tree_empty CONFTEST: radix_tree_replace_slot CONFTEST: pnv_npu2_init_context CONFTEST: cpumask_of_node 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_format_num_planes 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: is_export_symbol_present___close_fd CONFTEST: is_export_symbol_present_get_unused_fd CONFTEST: is_export_symbol_present_get_unused_fd_flags CONFTEST: is_export_symbol_present_screen_info CONFTEST: is_export_symbol_present_kthread_create_on_node CONFTEST: acpi_op_remove CONFTEST: outer_flush_all CONFTEST: file_operations CONFTEST: file_inode CONFTEST: kuid_t CONFTEST: dma_ops CONFTEST: swiotlb_dma_ops CONFTEST: noncoherent_swiotlb_dma_ops CONFTEST: vm_fault_has_address CONFTEST: backlight_properties_type CONFTEST: vm_insert_pfn_prot CONFTEST: vmf_insert_pfn_prot CONFTEST: vm_ops_fault_removed_vma_arg CONFTEST: vmbus_channel_has_ringbuffer_page CONFTEST: device_driver_of_match_table CONFTEST: device_of_node CONFTEST: node_states_n_memory CONFTEST: kmem_cache_has_kobj_remove_work CONFTEST: sysfs_slab_unlink CONFTEST: proc_ops CONFTEST: timeval CONFTEST: address_space CONFTEST: backing_dev_info CONFTEST: mm_context_t CONFTEST: vm_fault_t CONFTEST: mmu_notifier_ops_invalidate_range 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_helper_mode_fill_fb_struct CONFTEST: drm_master_drop_has_from_release_arg CONFTEST: drm_driver_unload_has_int_return_type 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: dma_buf_owner CONFTEST: drm_connector_list_iter CONFTEST: drm_atomic_helper_swap_state_has_stall_arg CONFTEST: drm_driver_prime_flag_present CONFTEST: drm_gem_object_has_resv CONFTEST: dom0_kernel_present CONFTEST: nvidia_vgpu_hyperv_available CONFTEST: nvidia_vgpu_kvm_build CONFTEST: nvidia_grid_build CONFTEST: nvidia_grid_csp_build CONFTEST: pm_runtime_available CONFTEST: drm_available CONFTEST: drm_atomic_available CONFTEST: is_export_symbol_gpl_refcount_inc CONFTEST: is_export_symbol_gpl_refcount_dec_and_test CONFTEST: drm_alpha_blending_available CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.c:13: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-pci.h:15, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.c:12: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/io.h:13, from ./include/linux/pci.h:39, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci-table.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.c:11: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.c:14: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.c:14: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.c:14: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c: In function 'nvidia_mmap': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:662:9: warning: unused variable 'i' [-Wunused-variable] 662 | int i = 0; | ^ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:46:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 46 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:79:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 79 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:113:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 113 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:116:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 116 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:334:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 334 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:336:9: note: here 336 | default: | ^~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci-table.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-kthread-q.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_caps.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.c:12: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-msi.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.c:11: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-msi.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.c:11: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.c:21: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_ce.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_host.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_mmu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_utils.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.c:23: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nvstatus.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nvCpuUuid.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q-selftest.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_isr.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_procfs.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_ce.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_ce.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_host.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_mmu.c:34: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_mmu.c:34: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.c:20: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_utils.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.c:20: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q-selftest.c:39: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q-selftest.c:25: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_utils.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/nv-kthread-q-selftest.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_isr.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_mmu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_ce.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_procfs.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ampere_host.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c: In function 'map_user_pages': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:267:29: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 267 | down_read(¤t->mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.c:269:27: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 269 | up_read(¤t->mm->mmap_sem); | ^~~~~~~~ | mmap_base In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_managed': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:371:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 371 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:371:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 371 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_procfs.o] Error 1 /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:420:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 420 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:420:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 420 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_managed': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:435:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 435 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:435:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 435 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:479:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 479 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:479:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 479 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_fault': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:527:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 527 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:527:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_read' 527 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:590:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 590 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:590:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read' 590 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_semaphore_pool': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:666:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 666 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:666:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 666 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:706:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 706 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:706:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 706 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_semaphore_pool': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:721:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 721 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:721:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 721 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:730:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 730 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:730:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 730 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c: In function 'uvm_mmap': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:800:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 800 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:800:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write' 800 | uvm_record_lock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:867:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 867 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.c:867:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write' 867 | uvm_record_unlock_mmap_sem_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_isr.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_initialize': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:519:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 519 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:564:16: note: in definition of macro 'uvm_down_write_mmap_sem' 564 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:519:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 519 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:564:34: note: in definition of macro 'uvm_down_write_mmap_sem' 564 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:566:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion] 566 | down_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:519:5: note: in expansion of macro 'uvm_down_write_mmap_sem' 519 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:548:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 548 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:16: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:548:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 548 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:34: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:571:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 571 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:548:5: note: in expansion of macro 'uvm_up_write_mmap_sem' 548 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:838:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 838 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:838:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 838 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:838:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 838 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:855:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 855 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:855:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 855 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:855:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 855 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_register_gpu_va_space': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1288:47: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1288 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:564:16: note: in definition of macro 'uvm_down_write_mmap_sem' 564 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1288:47: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1288 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:564:34: note: in definition of macro 'uvm_down_write_mmap_sem' 564 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:566:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion] 566 | down_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1288:9: note: in expansion of macro 'uvm_down_write_mmap_sem' 1288 | uvm_down_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1290:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1290 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1290:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1290 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1290:9: note: in expansion of macro 'uvm_down_read_mmap_sem' 1290 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ~~~~~~~~~~~~~~~~~~~~~^~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1345:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1345 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:16: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1345:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1345 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:34: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:571:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 571 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1345:9: note: in expansion of macro 'uvm_up_write_mmap_sem' 1345 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1347:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1347 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1347:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1347 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1347:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 1347 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1366:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1366 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:16: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1366:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1366 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:570:34: note: in definition of macro 'uvm_up_write_mmap_sem' 570 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:571:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion] 571 | up_write(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1366:9: note: in expansion of macro 'uvm_up_write_mmap_sem' 1366 | uvm_up_write_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1368:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1368 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1368:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1368 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1368:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 1368 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu_va_space': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1442:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1442 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1442:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1442 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1442:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 1442 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1460:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1460 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1460:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1460 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.c:1460:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 1460 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c: In function 'uvm_mmu_notifier_register': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:60: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:60: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:543:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 543 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_EXCLUSIVE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:543:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 543 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_EXCLUSIVE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:249:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 249 | uvm_assert_mmap_sem_locked_write(&va_space_mm->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c: In function 'uvm_va_space_mm_register': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:543:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 543 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_EXCLUSIVE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:543:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 543 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_EXCLUSIVE) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:281:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked_write' 281 | uvm_assert_mmap_sem_locked_write(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c: In function 'mm_read64': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:549:33: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 549 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:549:33: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 549 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:549:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 549 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:551:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 551 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:551:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 551 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.c:551:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 551 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_sysmem_user': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:485:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 485 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_vidmem_user': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space_mm.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:509:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 509 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pushbuffer.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c: In function 'uvm8_test_va_range_info': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1807:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1807 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1807:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1807 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1807:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 1807 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1868:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1868 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1868:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1868 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.c:1868:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 1868 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_ce.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c: In function 'service_fault': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:511:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 511 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:511:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 511 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:511:9: note: in expansion of macro 'uvm_down_read_mmap_sem' 511 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: ./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); | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c: In function 'service_fault_batch': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:562:35: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 562 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:562:35: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 562 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:562:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 562 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23: ./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); | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1466:47: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1466 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1466:47: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1466 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1466:21: note: in expansion of macro 'uvm_up_read_mmap_sem' 1466 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1482:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1482 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1482:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1482 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1482:17: note: in expansion of macro 'uvm_down_read_mmap_sem' 1482 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1589:39: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1589 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1589:39: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1589 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1589:13: note: in expansion of macro 'uvm_up_read_mmap_sem' 1589 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.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); | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c: In function 'block_map_cpu_page_to': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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) | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:6531:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 6531 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_host.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.h:26, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.h:26, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_mmu.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c: In function 'service_phys_single_va_block': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1177:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1177 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1177:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1177 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1177:13: note: in expansion of macro 'uvm_down_read_mmap_sem' 1177 | uvm_down_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1219:35: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1219 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1219:35: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1219 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1219:9: note: in expansion of macro 'uvm_up_read_mmap_sem' 1219 | uvm_up_read_mmap_sem(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.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); | ~~~~~~~~~~~~~~~~~~~~~^~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_access_counters.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell_host.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_change_pte_mapping': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10678:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10678 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10678:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10678 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal_types.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10678:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10678 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10761:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10761 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10761:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10761 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10761:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10761 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_block_info': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10776:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10776 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10776:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10776 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10776:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10776 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10794:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10794 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10794:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10794 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10794:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10794 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_residency_info': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10811:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10811 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10811:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10811 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10811:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 10811 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10954:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10954 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10954:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 10954 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.c:10954:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 10954 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ~~~~~~~~~~~~~~~~~~~~~^~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pushbuffer.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tlb_batch.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_ce.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_host.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_mmu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_host.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_mmu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pushbuffer.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_ce.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_ce.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_mmu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_mmu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kepler_host.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_host.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_maxwell_host.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_ce.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_mmu.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_ce.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_host.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_mmu.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_mmu.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_heuristics.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_volta_host.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_mmu.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_host.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_host.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_mmu.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_ibm.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_is_valid_vma_range': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:41:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 41 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_api_set_preferred_location': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:236:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 236 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:236:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 236 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:236:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 236 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:309:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 309 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:309:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 309 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:309:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 309 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_api_unset_preferred_location': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:321:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 321 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:321:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 321 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:321:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 321 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:332:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 332 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:332:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 332 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:332:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 332 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'accessed_by_set': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:413:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 413 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:413:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 413 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:413:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 413 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:477:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 477 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:477:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 477 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:477:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 477 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c: In function 'read_duplication_set': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:660:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 660 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:660:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 660 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:660:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 660 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:714:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 714 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:714:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 714 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.c:714:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 714 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_turing_host.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_policy.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: ./include/linux/vmalloc.h:111:14: note: declared here 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hmm.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator_test.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:33, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:33, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_populate_pageable_vma': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:51:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 51 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:69:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 69 | uvm_record_unlock_mmap_sem_read(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:69:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read' 69 | uvm_record_unlock_mmap_sem_read(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:74:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 74 | uvm_record_lock_mmap_sem_read(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:74:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_read' 74 | uvm_record_lock_mmap_sem_read(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_populate_pageable': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_migrate': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:599:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 599 | uvm_assert_mmap_sem_locked(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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) | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:858:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 858 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:97:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 97 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_api_populate_pageable': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:158:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 158 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:158:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 158 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:158:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 158 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:165:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 165 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:16: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:165:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 165 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:552:34: note: in definition of macro 'uvm_up_read_mmap_sem' 552 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:553:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 553 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.c:165:5: note: in expansion of macro 'uvm_up_read_mmap_sem' 165 | uvm_up_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.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); | ~~~~~~~~~~~~~~~~~~~~~^~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:858:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 858 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:858:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 858 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:940:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 940 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:558:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 558 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:940:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 940 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:558:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 558 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:559:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 559 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:940:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order' 940 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate_range_group': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:986:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 986 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:16: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:986:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 986 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:546:34: note: in definition of macro 'uvm_down_read_mmap_sem' 546 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:548:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion] 548 | down_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:986:5: note: in expansion of macro 'uvm_down_read_mmap_sem' 986 | uvm_down_read_mmap_sem(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:1031:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1031 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:558:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 558 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:1031:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 1031 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:558:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order' 558 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:559:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion] 559 | up_read(_sem); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.c:1031:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order' 1031 | uvm_up_read_mmap_sem_out_of_order(¤t->mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_populate_pageable.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem_test.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_space.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_map_external.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_page_tree_test.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_user_channel.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_migrate_pageable.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_ibm.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_ibm.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_heuristics.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ce_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_prefetch.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_thrashing.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test_rng.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_ibm.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc_test.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_types.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_types.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pte_batch.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_types.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tools.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_tree_test.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ats_faults.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:30, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_allocator_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_hal.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_page_tree_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push_test.c:26: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_extern_decl.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ce_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mem_test.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_rm_mem_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_page_tree_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group_tree_test.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_tracker_test.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context_test.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_push_test.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_ce_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nvidia-modeset-linux.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_channel_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nv-kthread-q.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc_test.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-drv.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_kvmalloc.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_utils_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-utils.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.c:25: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:37, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_global.h:32, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:534:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode' 534 | typeof(mmap_sem) _sem = (mmap_sem); \ | ^~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-lock.h:17, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:19, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_processors.h:28, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion] 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~ | | | int /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:131:47: note: in definition of macro 'UVM_IGNORE_EXPR' 131 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr))) | ^~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:170:45: note: in expansion of macro 'UVM_ASSERT_MSG_IGNORE' 170 | #define UVM_ASSERT(expr) UVM_ASSERT_MSG_IGNORE(expr, "\n") | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:535:7: note: in expansion of macro 'UVM_ASSERT' 535 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (flags))); \ | ^~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:539:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode' 539 | uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_FLAGS_MODE_ANY) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_range.h:715:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked' 715 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_lock.h:503:38: note: expected 'void *' but argument is of type 'int' 503 | static bool uvm_check_locked(void *lock, uvm_lock_flags_t flags) | ~~~~~~^~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-crtc.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_events_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-encoder.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-connector.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_perf_module_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-gem.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-fb.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_gpu.h:31, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_common.h:43, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_test.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-modeset.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context_test.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_api.h:29, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context_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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-prime-fence.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-linux.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_mmu_test.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-helper.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_va_block_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nv-pci-table.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_range_group_tree_test.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-format.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-uvm/uvm8_thread_context_test.o] Error 1 ld -r -o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nvidia-modeset-linux.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset/nv-kthread-q.o LD [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-modeset.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-linux.c: In function 'nv_drm_lock_user_pages': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/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:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia-drm/nvidia-drm-linux.o] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1756: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' make: *** [Makefile:81: modules] Error 2 -> Checking to see whether the nvidia kernel module was successfully built executing: 'cd ./kernel; /usr/bin/make -k -j16 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/" SYSOUT="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/"'... make[1]: Entering directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.c:14: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.c:14: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.c:13: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-pci.h:15, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.c:12: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/io.h:13, from ./include/linux/pci.h:39, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci-table.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.c:11: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.c:14: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.o] Error 1 /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c: In function 'nvidia_mmap': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:662:9: warning: unused variable 'i' [-Wunused-variable] 662 | int i = 0; | ^ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:334:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 334 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:336:9: note: here 336 | default: | ^~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:46:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 46 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:79:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 79 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:113:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 113 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:116:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 116 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.c:12: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-msi.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.c:11: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-msi.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.c:11: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.c:21: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.o] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1756: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' 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 -j16 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/" SYSOUT="/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64/"` failed with the following output: make[1]: Entering directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.o In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.c:14: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.c:14: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.c:13: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-pci.h:15, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.c:12: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from ./include/asm-generic/io.h:911, from ./arch/x86/include/asm/io.h:375, from ./include/linux/io.h:13, from ./include/linux/pci.h:39, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci-table.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.c:11: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.c:14: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-cray.o] Error 1 /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c: In function 'nvidia_mmap': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:662:9: warning: unused variable 'i' [-Wunused-variable] 662 | int i = 0; | ^ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-i2c.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vtophys.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.o /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:334:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 334 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.c:336:9: note: here 336 | default: | ^~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:46:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 46 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:79:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 79 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:113:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 113 | down_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.c:116:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? 116 | up_read(&mm->mmap_sem); | ^~~~~~~~ | mmap_base make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-acpi.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-frontend.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pat.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.o make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-usermap.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-pci.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-dma.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-mmap.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-p2p.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-vm.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-interface.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-procfs.o] Error 1 make[2]: *** [scripts/Makefile.build:280: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-mlock.o] Error 1 CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.o CC [M] /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.o make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-usermap.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/procfs_nvswitch.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.c:27: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.c:12: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-ibmnpu.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-pci.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-msi.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.c:11: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-msi.h:14, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.c:11: ./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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-memdbg.o] Error 1 In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.c:15: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.c:24: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.c:21: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/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); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.c:23: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc': /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:508:17: error: too many arguments to function '__vmalloc' 508 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL); | ^~~~~~~~~ In file included from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/common/inc/nv-linux.h:95, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.h:27, from /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.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/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/os-registry.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-rsync.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-msi.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-modeset-interface.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-report-err.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nvlink_linux.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv_uvm_interface.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/linux_nvswitch.o] Error 1 make[2]: *** [scripts/Makefile.build:281: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel/nvidia/nv-caps.o] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1756: /tmp/selfgz1307/NVIDIA-Linux-x86_64-450.51/kernel] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/kernels/5.8.0-0.rc3.20200630git7c30b859a947.1.vanilla.1.fc32.x86_64' 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.