nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Thu Jun 9 15:33:01 2022 installer version: 390.147 PATH: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin nvidia-installer command line: ./nvidia-installer Using: nvidia-installer ncurses v6 user interface -> Detected 8 CPUs online; setting concurrency level to 8. -> Installing NVIDIA driver version 390.147. -> Running distribution scripts executing: '/usr/lib/nvidia/pre-install'... grep: /etc/sysconfig/kernel: No such file or directory -> done. -> The distribution-provided pre-install script completed successfully. If this is the first time you have run the installer, this script may have helped disable Nouveau, but a reboot may be required first. Would you like to continue, or would you prefer to abort installation to reboot the system? (Answer: Continue installation) -> Performing CC sanity check with CC="/bin/cc". -> Kernel source path: '/lib/modules/5.18.1-1-default/source' -> Kernel output path: '/lib/modules/5.18.1-1-default/build' -> Performing Compiler check. -> Performing Dom0 check. -> Performing Xen check. -> Performing PREEMPT_RT check. -> Performing vgpu_kvm check. -> Cleaning kernel module build directory. executing: 'cd ./kernel; /bin/make -k -j8 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.18.1-1-default/source" SYSOUT="/lib/modules/5.18.1-1-default/build"'... rm -f -r conftest make[1]: Entering directory '/usr/src/linux-5.18.1-1' make[2]: Entering directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' make[2]: Leaving directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' make[1]: Leaving directory '/usr/src/linux-5.18.1-1' -> Building kernel modules executing: 'cd ./kernel; /bin/make -k -j8 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.18.1-1-default/source" SYSOUT="/lib/modules/5.18.1-1-default/build"'... make[1]: Entering directory '/usr/src/linux-5.18.1-1' make[2]: Entering directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (SUSE Linux) 12.1.0 You are using: cc (SUSE Linux) 12.1.0 SYMLINK /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-kernel.o SYMLINK /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nv-modeset-kernel.o CONFTEST: INIT_WORK CONFTEST: remap_pfn_range CONFTEST: hash__remap_4k_pfn CONFTEST: follow_pfn CONFTEST: vmap CONFTEST: set_pages_uc CONFTEST: list_is_first CONFTEST: set_memory_uc CONFTEST: set_memory_array_uc CONFTEST: change_page_attr CONFTEST: pci_get_class CONFTEST: pci_choose_state CONFTEST: vm_insert_page CONFTEST: acpi_device_id CONFTEST: acquire_console_sem CONFTEST: console_lock CONFTEST: kmem_cache_create CONFTEST: on_each_cpu CONFTEST: smp_call_function CONFTEST: acpi_evaluate_integer CONFTEST: ioremap_cache CONFTEST: ioremap_wc CONFTEST: acpi_walk_namespace CONFTEST: pci_domain_nr CONFTEST: pci_dma_mapping_error CONFTEST: sg_alloc_table CONFTEST: sg_init_table CONFTEST: pci_get_domain_bus_and_slot CONFTEST: get_num_physpages CONFTEST: efi_enabled CONFTEST: proc_create_data CONFTEST: pde_data CONFTEST: proc_remove CONFTEST: pm_vt_switch_required CONFTEST: xen_ioemu_inject_msi CONFTEST: phys_to_dma CONFTEST: get_dma_ops CONFTEST: write_cr4 CONFTEST: of_get_property CONFTEST: of_find_node_by_phandle CONFTEST: of_node_to_nid CONFTEST: pnv_pci_get_npu_dev CONFTEST: for_each_online_node CONFTEST: node_end_pfn CONFTEST: pci_bus_address CONFTEST: pci_stop_and_remove_bus_device CONFTEST: pci_remove_bus_device CONFTEST: request_threaded_irq CONFTEST: register_cpu_notifier CONFTEST: cpuhp_setup_state CONFTEST: dma_map_resource CONFTEST: backlight_device_register CONFTEST: register_acpi_notifier CONFTEST: timer_setup CONFTEST: kmem_cache_create_usercopy CONFTEST: do_gettimeofday CONFTEST: dma_direct_map_resource CONFTEST: vmf_insert_pfn CONFTEST: jiffies_to_timespec CONFTEST: ktime_get_raw_ts64 CONFTEST: ktime_get_real_ts64 CONFTEST: ioremap_nocache CONFTEST: vga_tryget CONFTEST: unsafe_follow_pfn CONFTEST: remap_page_range CONFTEST: address_space_init_once CONFTEST: kbasename CONFTEST: fatal_signal_pending CONFTEST: list_cut_position CONFTEST: vzalloc CONFTEST: wait_on_bit_lock_argument_count CONFTEST: bitmap_clear CONFTEST: usleep_range CONFTEST: radix_tree_empty CONFTEST: radix_tree_replace_slot CONFTEST: drm_dev_unref CONFTEST: drm_reinit_primary_mode_group CONFTEST: get_user_pages_remote CONFTEST: get_user_pages CONFTEST: drm_gem_object_lookup CONFTEST: drm_atomic_state_ref_counting CONFTEST: drm_driver_has_gem_prime_res_obj CONFTEST: drm_atomic_helper_connector_dpms CONFTEST: drm_connector_funcs_have_mode_in_name CONFTEST: drm_framebuffer_get CONFTEST: drm_gem_object_get CONFTEST: drm_dev_put CONFTEST: drm_connector_for_each_possible_encoder CONFTEST: drm_gem_object_put_unlocked CONFTEST: is_export_symbol_gpl_of_node_to_nid CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs CONFTEST: is_export_symbol_present_swiotlb_dma_ops CONFTEST: i2c_adapter CONFTEST: pm_message_t CONFTEST: irq_handler_t CONFTEST: acpi_device_ops CONFTEST: acpi_op_remove CONFTEST: outer_flush_all CONFTEST: proc_dir_entry CONFTEST: scatterlist CONFTEST: sg_table CONFTEST: file_operations CONFTEST: vm_operations_struct CONFTEST: atomic_long_type CONFTEST: pci_save_state CONFTEST: file_inode CONFTEST: task_struct CONFTEST: kuid_t CONFTEST: dma_ops CONFTEST: swiotlb_dma_ops CONFTEST: dma_map_ops CONFTEST: noncoherent_swiotlb_dma_ops CONFTEST: vm_fault_present CONFTEST: vm_fault_has_address CONFTEST: kernel_write CONFTEST: strnstr CONFTEST: iterate_dir CONFTEST: kstrtoull CONFTEST: backlight_properties_type CONFTEST: proc_ops CONFTEST: timeval CONFTEST: mm_has_mmap_lock CONFTEST: kmem_cache_has_kobj_remove_work CONFTEST: sysfs_slab_unlink CONFTEST: vmalloc_has_pgprot_t_arg CONFTEST: pci_dev_has_skip_bus_pm CONFTEST: pci_channel_state CONFTEST: fault_flags CONFTEST: atomic64_type CONFTEST: address_space CONFTEST: backing_dev_info CONFTEST: mm_context_t CONFTEST: vm_ops_fault_removed_vma_arg CONFTEST: vm_fault_t CONFTEST: pnv_npu2_init_context CONFTEST: drm_bus_present CONFTEST: drm_bus_has_bus_type CONFTEST: drm_bus_has_get_irq CONFTEST: drm_bus_has_get_name CONFTEST: drm_driver_has_device_list CONFTEST: drm_driver_has_legacy_dev_list CONFTEST: drm_driver_has_set_busid CONFTEST: drm_crtc_state_has_connectors_changed CONFTEST: drm_init_function_args CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg CONFTEST: drm_helper_mode_fill_fb_struct CONFTEST: drm_master_drop_has_from_release_arg CONFTEST: drm_driver_unload_has_int_return_type CONFTEST: kref_has_refcount_of_type_refcount_t CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg CONFTEST: drm_mode_object_find_has_file_priv_arg CONFTEST: drm_connector_list_iter CONFTEST: drm_atomic_helper_swap_state_has_stall_arg CONFTEST: drm_driver_prime_flag_present CONFTEST: drm_gem_prime_export_has_dev_arg CONFTEST: drm_gem_object_has_resv CONFTEST: drm_display_mode_has_vrefresh CONFTEST: drm_driver_master_set_has_int_return_type CONFTEST: drm_driver_has_gem_free_object CONFTEST: drm_prime_pages_to_sg_has_drm_device_arg CONFTEST: drm_driver_has_gem_prime_callbacks CONFTEST: drm_crtc_atomic_check_has_atomic_state_arg CONFTEST: drm_gem_object_vmap_has_map_arg CONFTEST: drm_plane_atomic_check_has_atomic_state_arg CONFTEST: drm_device_has_pdev CONFTEST: dom0_kernel_present CONFTEST: nvidia_vgpu_kvm_build CONFTEST: nvidia_grid_build CONFTEST: drm_available CONFTEST: drm_atomic_available CONFTEST: is_export_symbol_gpl_refcount_inc CONFTEST: is_export_symbol_gpl_refcount_dec_and_test CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-instance.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-gpu-numa.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-chrdev.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-cray.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_dma_map_contig': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:30:11: error: implicit declaration of function 'pci_map_page'; did you mean 'dma_map_page'? [-Werror=implicit-function-declaration] 30 | *va = pci_map_page(dma_map->dev, dma_map->pages[0], 0, | ^~~~~~~~~~~~ | dma_map_page /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.c: In function 'nv_acpi_methods_init': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.c:613:22: error: implicit declaration of function 'acpi_bus_get_device'; did you mean 'acpi_is_pnp_device'? [-Werror=implicit-function-declaration] 613 | retVal = acpi_bus_get_device(nvif_parent_gpu_handle, &device); | ^~~~~~~~~~~~~~~~~~~ | acpi_is_pnp_device /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.c: In function 'nv_set_dma_address_size': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.c:2745:9: error: implicit declaration of function 'pci_set_dma_mask' [-Werror=implicit-function-declaration] 2745 | pci_set_dma_mask(nvl->dev, new_mask); | ^~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:31:46: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 31 | dma_map->page_count * PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:31:46: note: each undeclared identifier is reported only once for each function it appears in CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-gvi.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-i2c.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mempool.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:15: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:343:5: error: implicit declaration of function 'pci_dma_mapping_error'; did you mean 'dma_mapping_error'? [-Werror=implicit-function-declaration] 343 | pci_dma_mapping_error(dev, addr) | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:32:9: note: in expansion of macro 'NV_PCI_DMA_MAPPING_ERROR' 32 | if (NV_PCI_DMA_MAPPING_ERROR(dma_map->dev, *va)) | ^~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_dma_unmap_contig': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:60:5: error: implicit declaration of function 'pci_unmap_page'; did you mean 'dma_unmap_page'? [-Werror=implicit-function-declaration] 60 | pci_unmap_page(dma_map->dev, dma_map->mapping.contig.dma_addr, | ^~~~~~~~~~~~~~ | dma_unmap_page CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mmap.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:61:46: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 61 | dma_map->page_count * PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_map_dma_map_scatterlist': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:169:32: error: implicit declaration of function 'pci_map_sg'; did you mean 'pci_map_rom'? [-Werror=implicit-function-declaration] 169 | submap->sg_map_count = pci_map_sg(dma_map->dev, | ^~~~~~~~~~ | pci_map_rom /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:172:17: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 172 | PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_unmap_dma_map_scatterlist': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:200:9: error: implicit declaration of function 'pci_unmap_sg'; did you mean 'pci_unmap_rom'? [-Werror=implicit-function-declaration] 200 | pci_unmap_sg(dma_map->dev, NV_DMA_SUBMAP_SCATTERLIST(submap), | ^~~~~~~~~~~~ | pci_unmap_rom cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.o] Error 1 /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:202:17: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 202 | PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-p2p.o cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-pat.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-usermap.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 255 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mmap.c:257:9: note: here 257 | default: | ^~~~~~~ CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-vm.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-vtophys.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-interface.o cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-mlock.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-pci.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_version': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:175:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 175 | NV_DEFINE_PROCFS_SINGLE_FILE(version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_file': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:195:23: note: in expansion of macro 'NV_PDE_DATA' 195 | nvfp->proc_data = NV_PDE_DATA(inode); | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_params': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:346:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 346 | NV_DEFINE_PROCFS_SINGLE_FILE(params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_text_file': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:672:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 672 | NV_DEFINE_PROCFS_SINGLE_FILE(text_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:672:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 672 | NV_DEFINE_PROCFS_SINGLE_FILE(text_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_version': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:175:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 175 | NV_DEFINE_PROCFS_SINGLE_FILE(version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_params': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:346:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 346 | NV_DEFINE_PROCFS_SINGLE_FILE(params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-registry.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-usermap.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-modeset-interface.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-pci-table.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-kthread-q.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-kthread-q-selftest.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-memdbg.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-ibmnpu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-report-err.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv_uvm_interface.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_utils.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_common.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_linux.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/nvstatus.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/nvCpuUuid.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_tools.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c: In function 'nv_procfs_open_permissions': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_global.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_isr.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_procfs.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_va_space.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:24: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:354:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 354 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:354:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 354 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'nv_procfs_open_gpu_fault_stats': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:355:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 355 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_fault_stats); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_semaphore.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_mem.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'uvm_gpu_map_cpu_pages': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2217:22: error: implicit declaration of function 'pci_map_page'; did you mean 'dma_map_page'? [-Werror=implicit-function-declaration] 2217 | NvU64 dma_addr = pci_map_page(gpu->pci_dev, page, 0, size, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~ | dma_map_page /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2217:64: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 2217 | NvU64 dma_addr = pci_map_page(gpu->pci_dev, page, 0, size, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2217:64: note: each undeclared identifier is reported only once for each function it appears in /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:343:5: error: implicit declaration of function 'pci_dma_mapping_error'; did you mean 'dma_mapping_error'? [-Werror=implicit-function-declaration] 343 | pci_dma_mapping_error(dev, addr) | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2221:9: note: in expansion of macro 'NV_PCI_DMA_MAPPING_ERROR' 2221 | if (NV_PCI_DMA_MAPPING_ERROR(gpu->pci_dev, dma_addr)) | ^~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2225:9: error: implicit declaration of function 'pci_unmap_page'; did you mean 'dma_unmap_page'? [-Werror=implicit-function-declaration] 2225 | pci_unmap_page(gpu->pci_dev, dma_addr, size, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~ | dma_unmap_page /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'uvm_gpu_unmap_cpu_pages': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2259:53: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 2259 | pci_unmap_page(gpu->pci_dev, dma_address, size, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'nv_procfs_open_gpu_fault_stats': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:355:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 355 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_fault_stats); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:354:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 354 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_rm_mem.o make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_lock.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_hal.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_rb_tree.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_tree.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_allocator.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:24: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_manager_pending_pushes': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1173:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1173 | NV_DEFINE_PROCFS_SINGLE_FILE(manager_pending_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1173:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1173 | NV_DEFINE_PROCFS_SINGLE_FILE(manager_pending_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_channel_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1197:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1197 | NV_DEFINE_PROCFS_SINGLE_FILE(channel_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_channel_pushes': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1207:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1207 | NV_DEFINE_PROCFS_SINGLE_FILE(channel_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1207:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1207 | NV_DEFINE_PROCFS_SINGLE_FILE(channel_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_channel_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1197:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1197 | NV_DEFINE_PROCFS_SINGLE_FILE(channel_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_manager_pending_pushes': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1173:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1173 | NV_DEFINE_PROCFS_SINGLE_FILE(manager_pending_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_va_range.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_va_block.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_group.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_access_counters.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_events.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_module.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_mmu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pte_batch.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_tlb_batch.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_push.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_thread_context.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_tracker.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.h:28, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c:24: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c: In function 'nv_procfs_open_pushbuffer_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c:44:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 44 | NV_DEFINE_PROCFS_SINGLE_FILE(pushbuffer_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c:44:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 44 | NV_DEFINE_PROCFS_SINGLE_FILE(pushbuffer_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kepler.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kepler_ce.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c:44:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 44 | NV_DEFINE_PROCFS_SINGLE_FILE(pushbuffer_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kepler_host.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kepler_mmu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_maxwell.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_maxwell_host.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal_ce.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal_host.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal_mmu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta_host.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta_mmu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_policy.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_utils.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kvmalloc.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pmm_sysmem.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pmm_gpu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_migrate.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_map_external.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_user_channel.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_hmm.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_heuristics.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_thrashing.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_prefetch.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_test_rng.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_tree_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_allocator_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_mem_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_rm_mem_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_page_tree_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_tracker_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_push_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_ce_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_lock_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_utils_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kvmalloc_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pmm_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_events_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_module_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_mmu_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_va_block_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_group_tree_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_rb_tree_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-drv.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c:35: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c: In function 'nv_procfs_open_nvkms_proc': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c:992:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 992 | NV_DEFINE_PROCFS_SINGLE_FILE(nvkms_proc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c:992:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 992 | NV_DEFINE_PROCFS_SINGLE_FILE(nvkms_proc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c:992:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 992 | NV_DEFINE_PROCFS_SINGLE_FILE(nvkms_proc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-utils.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-crtc.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-encoder.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-connector.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-fb.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-modeset.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-prime-fence.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:57:35: warning: 'struct dma_buf_map' declared inside parameter list will not be visible outside of this definition or declaration 57 | struct dma_buf_map *map) | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c: In function 'nv_drm_gem_vmap': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:59:8: error: invalid use of undefined type 'struct dma_buf_map' 59 | map->vaddr = nv_drm_gem_prime_vmap(gem); | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:60:12: error: invalid use of undefined type 'struct dma_buf_map' 60 | if (map->vaddr == NULL) { | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:63:8: error: invalid use of undefined type 'struct dma_buf_map' 63 | map->is_iomem = true; | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c: At top level: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:68:38: warning: 'struct dma_buf_map' declared inside parameter list will not be visible outside of this definition or declaration 68 | struct dma_buf_map *map) | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c: In function 'nv_drm_gem_vunmap': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:70:37: error: invalid use of undefined type 'struct dma_buf_map' 70 | nv_drm_gem_prime_vunmap(gem, map->vaddr); | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:71:8: error: invalid use of undefined type 'struct dma_buf_map' 71 | map->vaddr = NULL; | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c: At top level: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:84:16: error: initialization of 'int (*)(struct drm_gem_object *, struct iosys_map *)' from incompatible pointer type 'int (*)(struct drm_gem_object *, struct dma_buf_map *)' [-Werror=incompatible-pointer-types] 84 | .vmap = nv_drm_gem_vmap, | ^~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:84:16: note: (near initialization for 'nv_drm_gem_funcs.vmap') /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:85:16: error: initialization of 'void (*)(struct drm_gem_object *, struct iosys_map *)' from incompatible pointer type 'void (*)(struct drm_gem_object *, struct dma_buf_map *)' [-Werror=incompatible-pointer-types] 85 | .vunmap = nv_drm_gem_vunmap, | ^~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:85:16: note: (near initialization for 'nv_drm_gem_funcs.vunmap') cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-linux.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-helper.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nv-pci-table.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o make[3]: Target '__build' not remade because of errors. make[2]: *** [/usr/src/linux-5.18.1-1/Makefile:1848: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel] Error 2 make[2]: Target 'modules' not remade because of errors. make[2]: Leaving directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' make[1]: *** [Makefile:219: __sub-make] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux-5.18.1-1' 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; /bin/make -k -j8 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.18.1-1-default/source" SYSOUT="/lib/modules/5.18.1-1-default/build"` failed with the following output: make[1]: Entering directory '/usr/src/linux-5.18.1-1' make[2]: Entering directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (SUSE Linux) 12.1.0 You are using: cc (SUSE Linux) 12.1.0 SYMLINK /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-kernel.o SYMLINK /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nv-modeset-kernel.o CONFTEST: INIT_WORK CONFTEST: remap_pfn_range CONFTEST: hash__remap_4k_pfn CONFTEST: follow_pfn CONFTEST: vmap CONFTEST: set_pages_uc CONFTEST: list_is_first CONFTEST: set_memory_uc CONFTEST: set_memory_array_uc CONFTEST: change_page_attr CONFTEST: pci_get_class CONFTEST: pci_choose_state CONFTEST: vm_insert_page CONFTEST: acpi_device_id CONFTEST: acquire_console_sem CONFTEST: console_lock CONFTEST: kmem_cache_create CONFTEST: on_each_cpu CONFTEST: smp_call_function CONFTEST: acpi_evaluate_integer CONFTEST: ioremap_cache CONFTEST: ioremap_wc CONFTEST: acpi_walk_namespace CONFTEST: pci_domain_nr CONFTEST: pci_dma_mapping_error CONFTEST: sg_alloc_table CONFTEST: sg_init_table CONFTEST: pci_get_domain_bus_and_slot CONFTEST: get_num_physpages CONFTEST: efi_enabled CONFTEST: proc_create_data CONFTEST: pde_data CONFTEST: proc_remove CONFTEST: pm_vt_switch_required CONFTEST: xen_ioemu_inject_msi CONFTEST: phys_to_dma CONFTEST: get_dma_ops CONFTEST: write_cr4 CONFTEST: of_get_property CONFTEST: of_find_node_by_phandle CONFTEST: of_node_to_nid CONFTEST: pnv_pci_get_npu_dev CONFTEST: for_each_online_node CONFTEST: node_end_pfn CONFTEST: pci_bus_address CONFTEST: pci_stop_and_remove_bus_device CONFTEST: pci_remove_bus_device CONFTEST: request_threaded_irq CONFTEST: register_cpu_notifier CONFTEST: cpuhp_setup_state CONFTEST: dma_map_resource CONFTEST: backlight_device_register CONFTEST: register_acpi_notifier CONFTEST: timer_setup CONFTEST: kmem_cache_create_usercopy CONFTEST: do_gettimeofday CONFTEST: dma_direct_map_resource CONFTEST: vmf_insert_pfn CONFTEST: jiffies_to_timespec CONFTEST: ktime_get_raw_ts64 CONFTEST: ktime_get_real_ts64 CONFTEST: ioremap_nocache CONFTEST: vga_tryget CONFTEST: unsafe_follow_pfn CONFTEST: remap_page_range CONFTEST: address_space_init_once CONFTEST: kbasename CONFTEST: fatal_signal_pending CONFTEST: list_cut_position CONFTEST: vzalloc CONFTEST: wait_on_bit_lock_argument_count CONFTEST: bitmap_clear CONFTEST: usleep_range CONFTEST: radix_tree_empty CONFTEST: radix_tree_replace_slot CONFTEST: drm_dev_unref CONFTEST: drm_reinit_primary_mode_group CONFTEST: get_user_pages_remote CONFTEST: get_user_pages CONFTEST: drm_gem_object_lookup CONFTEST: drm_atomic_state_ref_counting CONFTEST: drm_driver_has_gem_prime_res_obj CONFTEST: drm_atomic_helper_connector_dpms CONFTEST: drm_connector_funcs_have_mode_in_name CONFTEST: drm_framebuffer_get CONFTEST: drm_gem_object_get CONFTEST: drm_dev_put CONFTEST: drm_connector_for_each_possible_encoder CONFTEST: drm_gem_object_put_unlocked CONFTEST: is_export_symbol_gpl_of_node_to_nid CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs CONFTEST: is_export_symbol_present_swiotlb_dma_ops CONFTEST: i2c_adapter CONFTEST: pm_message_t CONFTEST: irq_handler_t CONFTEST: acpi_device_ops CONFTEST: acpi_op_remove CONFTEST: outer_flush_all CONFTEST: proc_dir_entry CONFTEST: scatterlist CONFTEST: sg_table CONFTEST: file_operations CONFTEST: vm_operations_struct CONFTEST: atomic_long_type CONFTEST: pci_save_state CONFTEST: file_inode CONFTEST: task_struct CONFTEST: kuid_t CONFTEST: dma_ops CONFTEST: swiotlb_dma_ops CONFTEST: dma_map_ops CONFTEST: noncoherent_swiotlb_dma_ops CONFTEST: vm_fault_present CONFTEST: vm_fault_has_address CONFTEST: kernel_write CONFTEST: strnstr CONFTEST: iterate_dir CONFTEST: kstrtoull CONFTEST: backlight_properties_type CONFTEST: proc_ops CONFTEST: timeval CONFTEST: mm_has_mmap_lock CONFTEST: kmem_cache_has_kobj_remove_work CONFTEST: sysfs_slab_unlink CONFTEST: vmalloc_has_pgprot_t_arg CONFTEST: pci_dev_has_skip_bus_pm CONFTEST: pci_channel_state CONFTEST: fault_flags CONFTEST: atomic64_type CONFTEST: address_space CONFTEST: backing_dev_info CONFTEST: mm_context_t CONFTEST: vm_ops_fault_removed_vma_arg CONFTEST: vm_fault_t CONFTEST: pnv_npu2_init_context CONFTEST: drm_bus_present CONFTEST: drm_bus_has_bus_type CONFTEST: drm_bus_has_get_irq CONFTEST: drm_bus_has_get_name CONFTEST: drm_driver_has_device_list CONFTEST: drm_driver_has_legacy_dev_list CONFTEST: drm_driver_has_set_busid CONFTEST: drm_crtc_state_has_connectors_changed CONFTEST: drm_init_function_args CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg CONFTEST: drm_helper_mode_fill_fb_struct CONFTEST: drm_master_drop_has_from_release_arg CONFTEST: drm_driver_unload_has_int_return_type CONFTEST: kref_has_refcount_of_type_refcount_t CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg CONFTEST: drm_mode_object_find_has_file_priv_arg CONFTEST: drm_connector_list_iter CONFTEST: drm_atomic_helper_swap_state_has_stall_arg CONFTEST: drm_driver_prime_flag_present CONFTEST: drm_gem_prime_export_has_dev_arg CONFTEST: drm_gem_object_has_resv CONFTEST: drm_display_mode_has_vrefresh CONFTEST: drm_driver_master_set_has_int_return_type CONFTEST: drm_driver_has_gem_free_object CONFTEST: drm_prime_pages_to_sg_has_drm_device_arg CONFTEST: drm_driver_has_gem_prime_callbacks CONFTEST: drm_crtc_atomic_check_has_atomic_state_arg CONFTEST: drm_gem_object_vmap_has_map_arg CONFTEST: drm_plane_atomic_check_has_atomic_state_arg CONFTEST: drm_device_has_pdev CONFTEST: dom0_kernel_present CONFTEST: nvidia_vgpu_kvm_build CONFTEST: nvidia_grid_build CONFTEST: drm_available CONFTEST: drm_atomic_available CONFTEST: is_export_symbol_gpl_refcount_inc CONFTEST: is_export_symbol_gpl_refcount_dec_and_test CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-frontend.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-instance.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-gpu-numa.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-chrdev.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-cray.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_dma_map_contig': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:30:11: error: implicit declaration of function 'pci_map_page'; did you mean 'dma_map_page'? [-Werror=implicit-function-declaration] 30 | *va = pci_map_page(dma_map->dev, dma_map->pages[0], 0, | ^~~~~~~~~~~~ | dma_map_page /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.c: In function 'nv_acpi_methods_init': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.c:613:22: error: implicit declaration of function 'acpi_bus_get_device'; did you mean 'acpi_is_pnp_device'? [-Werror=implicit-function-declaration] 613 | retVal = acpi_bus_get_device(nvif_parent_gpu_handle, &device); | ^~~~~~~~~~~~~~~~~~~ | acpi_is_pnp_device /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.c: In function 'nv_set_dma_address_size': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.c:2745:9: error: implicit declaration of function 'pci_set_dma_mask' [-Werror=implicit-function-declaration] 2745 | pci_set_dma_mask(nvl->dev, new_mask); | ^~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:31:46: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 31 | dma_map->page_count * PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:31:46: note: each undeclared identifier is reported only once for each function it appears in CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-gvi.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-i2c.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mempool.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:15: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:343:5: error: implicit declaration of function 'pci_dma_mapping_error'; did you mean 'dma_mapping_error'? [-Werror=implicit-function-declaration] 343 | pci_dma_mapping_error(dev, addr) | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:32:9: note: in expansion of macro 'NV_PCI_DMA_MAPPING_ERROR' 32 | if (NV_PCI_DMA_MAPPING_ERROR(dma_map->dev, *va)) | ^~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_dma_unmap_contig': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:60:5: error: implicit declaration of function 'pci_unmap_page'; did you mean 'dma_unmap_page'? [-Werror=implicit-function-declaration] 60 | pci_unmap_page(dma_map->dev, dma_map->mapping.contig.dma_addr, | ^~~~~~~~~~~~~~ | dma_unmap_page CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mmap.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:61:46: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 61 | dma_map->page_count * PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_map_dma_map_scatterlist': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:169:32: error: implicit declaration of function 'pci_map_sg'; did you mean 'pci_map_rom'? [-Werror=implicit-function-declaration] 169 | submap->sg_map_count = pci_map_sg(dma_map->dev, | ^~~~~~~~~~ | pci_map_rom /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:172:17: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 172 | PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_unmap_dma_map_scatterlist': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:200:9: error: implicit declaration of function 'pci_unmap_sg'; did you mean 'pci_unmap_rom'? [-Werror=implicit-function-declaration] 200 | pci_unmap_sg(dma_map->dev, NV_DMA_SUBMAP_SCATTERLIST(submap), | ^~~~~~~~~~~~ | pci_unmap_rom cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.o] Error 1 /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:202:17: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 202 | PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-p2p.o cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-pat.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-usermap.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 255 | if (NV_ALLOW_CACHING(memory_type)) | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-mmap.c:257:9: note: here 257 | default: | ^~~~~~~ CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-vm.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-vtophys.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-interface.o cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-mlock.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-pci.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_version': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:175:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 175 | NV_DEFINE_PROCFS_SINGLE_FILE(version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_file': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:195:23: note: in expansion of macro 'NV_PDE_DATA' 195 | nvfp->proc_data = NV_PDE_DATA(inode); | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_params': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:346:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 346 | NV_DEFINE_PROCFS_SINGLE_FILE(params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_text_file': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:672:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 672 | NV_DEFINE_PROCFS_SINGLE_FILE(text_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:672:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 672 | NV_DEFINE_PROCFS_SINGLE_FILE(text_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_version': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:175:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 175 | NV_DEFINE_PROCFS_SINGLE_FILE(version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_params': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:346:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 346 | NV_DEFINE_PROCFS_SINGLE_FILE(params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-registry.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/os-usermap.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-modeset-interface.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-pci-table.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-kthread-q.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-kthread-q-selftest.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-memdbg.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-ibmnpu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-report-err.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv_uvm_interface.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_utils.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_common.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_linux.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/nvstatus.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/nvCpuUuid.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_tools.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c: In function 'nv_procfs_open_permissions': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_global.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_isr.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_procfs.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_va_space.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv_uvm_interface.h:30, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:24: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:354:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 354 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:354:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 354 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'nv_procfs_open_gpu_fault_stats': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:355:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 355 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_fault_stats); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_semaphore.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_mem.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'uvm_gpu_map_cpu_pages': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2217:22: error: implicit declaration of function 'pci_map_page'; did you mean 'dma_map_page'? [-Werror=implicit-function-declaration] 2217 | NvU64 dma_addr = pci_map_page(gpu->pci_dev, page, 0, size, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~ | dma_map_page /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2217:64: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 2217 | NvU64 dma_addr = pci_map_page(gpu->pci_dev, page, 0, size, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2217:64: note: each undeclared identifier is reported only once for each function it appears in /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:343:5: error: implicit declaration of function 'pci_dma_mapping_error'; did you mean 'dma_mapping_error'? [-Werror=implicit-function-declaration] 343 | pci_dma_mapping_error(dev, addr) | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2221:9: note: in expansion of macro 'NV_PCI_DMA_MAPPING_ERROR' 2221 | if (NV_PCI_DMA_MAPPING_ERROR(gpu->pci_dev, dma_addr)) | ^~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2225:9: error: implicit declaration of function 'pci_unmap_page'; did you mean 'dma_unmap_page'? [-Werror=implicit-function-declaration] 2225 | pci_unmap_page(gpu->pci_dev, dma_addr, size, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~ | dma_unmap_page /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'uvm_gpu_unmap_cpu_pages': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:2259:53: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 2259 | pci_unmap_page(gpu->pci_dev, dma_address, size, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'nv_procfs_open_gpu_fault_stats': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:355:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 355 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_fault_stats); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.c:354:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 354 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_rm_mem.o make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_lock.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_hal.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_rb_tree.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_tree.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_allocator.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.h:29, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:24: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_manager_pending_pushes': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1173:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1173 | NV_DEFINE_PROCFS_SINGLE_FILE(manager_pending_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1173:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1173 | NV_DEFINE_PROCFS_SINGLE_FILE(manager_pending_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_channel_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1197:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1197 | NV_DEFINE_PROCFS_SINGLE_FILE(channel_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_channel_pushes': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1207:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1207 | NV_DEFINE_PROCFS_SINGLE_FILE(channel_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1207:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1207 | NV_DEFINE_PROCFS_SINGLE_FILE(channel_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_channel_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1197:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1197 | NV_DEFINE_PROCFS_SINGLE_FILE(channel_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c: In function 'nv_procfs_open_manager_pending_pushes': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.c:1173:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 1173 | NV_DEFINE_PROCFS_SINGLE_FILE(manager_pending_pushes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_va_range.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_va_block.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_group.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_access_counters.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_events.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_module.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_mmu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pte_batch.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_tlb_batch.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_push.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_thread_context.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_tracker.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm_linux.h:41, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_lock.h:28, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.h:28, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c:24: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c: In function 'nv_procfs_open_pushbuffer_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c:44:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 44 | NV_DEFINE_PROCFS_SINGLE_FILE(pushbuffer_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c:44:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 44 | NV_DEFINE_PROCFS_SINGLE_FILE(pushbuffer_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kepler.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kepler_ce.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.c:44:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 44 | NV_DEFINE_PROCFS_SINGLE_FILE(pushbuffer_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pushbuffer.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kepler_host.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kepler_mmu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_maxwell.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_maxwell_host.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal_ce.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal_host.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal_mmu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta_host.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta_mmu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_policy.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_utils.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kvmalloc.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pmm_sysmem.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pmm_gpu.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_migrate.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_map_external.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_user_channel.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_hmm.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_heuristics.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_thrashing.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_prefetch.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_test_rng.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_tree_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_allocator_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_mem_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_rm_mem_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_page_tree_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_tracker_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_push_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_channel_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_ce_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_lock_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_utils_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_kvmalloc_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pmm_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_events_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_perf_module_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_mmu_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_va_block_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_range_group_tree_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-uvm/uvm8_rb_tree_test.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-drv.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c:35: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c: In function 'nv_procfs_open_nvkms_proc': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c:992:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 992 | NV_DEFINE_PROCFS_SINGLE_FILE(nvkms_proc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c:992:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 992 | NV_DEFINE_PROCFS_SINGLE_FILE(nvkms_proc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.c:992:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 992 | NV_DEFINE_PROCFS_SINGLE_FILE(nvkms_proc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-modeset/nvidia-modeset-linux.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-utils.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-crtc.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-encoder.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-connector.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-fb.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-modeset.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-prime-fence.o /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:57:35: warning: 'struct dma_buf_map' declared inside parameter list will not be visible outside of this definition or declaration 57 | struct dma_buf_map *map) | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c: In function 'nv_drm_gem_vmap': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:59:8: error: invalid use of undefined type 'struct dma_buf_map' 59 | map->vaddr = nv_drm_gem_prime_vmap(gem); | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:60:12: error: invalid use of undefined type 'struct dma_buf_map' 60 | if (map->vaddr == NULL) { | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:63:8: error: invalid use of undefined type 'struct dma_buf_map' 63 | map->is_iomem = true; | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c: At top level: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:68:38: warning: 'struct dma_buf_map' declared inside parameter list will not be visible outside of this definition or declaration 68 | struct dma_buf_map *map) | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c: In function 'nv_drm_gem_vunmap': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:70:37: error: invalid use of undefined type 'struct dma_buf_map' 70 | nv_drm_gem_prime_vunmap(gem, map->vaddr); | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:71:8: error: invalid use of undefined type 'struct dma_buf_map' 71 | map->vaddr = NULL; | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c: At top level: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:84:16: error: initialization of 'int (*)(struct drm_gem_object *, struct iosys_map *)' from incompatible pointer type 'int (*)(struct drm_gem_object *, struct dma_buf_map *)' [-Werror=incompatible-pointer-types] 84 | .vmap = nv_drm_gem_vmap, | ^~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:84:16: note: (near initialization for 'nv_drm_gem_funcs.vmap') /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:85:16: error: initialization of 'void (*)(struct drm_gem_object *, struct iosys_map *)' from incompatible pointer type 'void (*)(struct drm_gem_object *, struct dma_buf_map *)' [-Werror=incompatible-pointer-types] 85 | .vunmap = nv_drm_gem_vunmap, | ^~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.c:85:16: note: (near initialization for 'nv_drm_gem_funcs.vunmap') cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem.o] Error 1 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-linux.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-helper.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nv-pci-table.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o make[3]: Target '__build' not remade because of errors. make[2]: *** [/usr/src/linux-5.18.1-1/Makefile:1848: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel] Error 2 make[2]: Target 'modules' not remade because of errors. make[2]: Leaving directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' make[1]: *** [Makefile:219: __sub-make] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux-5.18.1-1' make: *** [Makefile:81: modules] Error 2 -> Checking to see whether the nvidia kernel module was successfully built executing: 'cd ./kernel; /bin/make -k -j8 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.18.1-1-default/source" SYSOUT="/lib/modules/5.18.1-1-default/build"'... make[1]: Entering directory '/usr/src/linux-5.18.1-1' make[2]: Entering directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (SUSE Linux) 12.1.0 You are using: cc (SUSE Linux) 12.1.0 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_version': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:175:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 175 | NV_DEFINE_PROCFS_SINGLE_FILE(version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_file': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:195:23: note: in expansion of macro 'NV_PDE_DATA' 195 | nvfp->proc_data = NV_PDE_DATA(inode); | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_params': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:346:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 346 | NV_DEFINE_PROCFS_SINGLE_FILE(params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_text_file': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:672:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 672 | NV_DEFINE_PROCFS_SINGLE_FILE(text_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:672:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 672 | NV_DEFINE_PROCFS_SINGLE_FILE(text_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_version': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:175:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 175 | NV_DEFINE_PROCFS_SINGLE_FILE(version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_params': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:346:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 346 | NV_DEFINE_PROCFS_SINGLE_FILE(params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.c: In function 'nv_set_dma_address_size': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.c:2745:9: error: implicit declaration of function 'pci_set_dma_mask' [-Werror=implicit-function-declaration] 2745 | pci_set_dma_mask(nvl->dev, new_mask); | ^~~~~~~~~~~~~~~~ make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.o] Error 1 /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.c: In function 'nv_acpi_methods_init': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.c:613:22: error: implicit declaration of function 'acpi_bus_get_device'; did you mean 'acpi_is_pnp_device'? [-Werror=implicit-function-declaration] 613 | retVal = acpi_bus_get_device(nvif_parent_gpu_handle, &device); | ^~~~~~~~~~~~~~~~~~~ | acpi_is_pnp_device /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_dma_map_contig': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:30:11: error: implicit declaration of function 'pci_map_page'; did you mean 'dma_map_page'? [-Werror=implicit-function-declaration] 30 | *va = pci_map_page(dma_map->dev, dma_map->pages[0], 0, | ^~~~~~~~~~~~ | dma_map_page In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c: In function 'nv_procfs_open_permissions': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:31:46: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 31 | dma_map->page_count * PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:31:46: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.o] Error 1 cc1: some warnings being treated as errors In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:15: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:343:5: error: implicit declaration of function 'pci_dma_mapping_error'; did you mean 'dma_mapping_error'? [-Werror=implicit-function-declaration] 343 | pci_dma_mapping_error(dev, addr) | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:32:9: note: in expansion of macro 'NV_PCI_DMA_MAPPING_ERROR' 32 | if (NV_PCI_DMA_MAPPING_ERROR(dma_map->dev, *va)) | ^~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.o] Error 1 /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_dma_unmap_contig': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:60:5: error: implicit declaration of function 'pci_unmap_page'; did you mean 'dma_unmap_page'? [-Werror=implicit-function-declaration] 60 | pci_unmap_page(dma_map->dev, dma_map->mapping.contig.dma_addr, | ^~~~~~~~~~~~~~ | dma_unmap_page /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:61:46: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 61 | dma_map->page_count * PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_map_dma_map_scatterlist': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:169:32: error: implicit declaration of function 'pci_map_sg'; did you mean 'pci_map_rom'? [-Werror=implicit-function-declaration] 169 | submap->sg_map_count = pci_map_sg(dma_map->dev, | ^~~~~~~~~~ | pci_map_rom /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:172:17: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 172 | PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_unmap_dma_map_scatterlist': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:200:9: error: implicit declaration of function 'pci_unmap_sg'; did you mean 'pci_unmap_rom'? [-Werror=implicit-function-declaration] 200 | pci_unmap_sg(dma_map->dev, NV_DMA_SUBMAP_SCATTERLIST(submap), | ^~~~~~~~~~~~ | pci_unmap_rom /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:202:17: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 202 | PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.o] Error 1 cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.o] Error 1 make[3]: Target '__build' not remade because of errors. make[2]: *** [/usr/src/linux-5.18.1-1/Makefile:1848: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel] Error 2 make[2]: Target 'modules' not remade because of errors. make[2]: Leaving directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' make[1]: *** [Makefile:219: __sub-make] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux-5.18.1-1' 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; /bin/make -k -j8 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.18.1-1-default/source" SYSOUT="/lib/modules/5.18.1-1-default/build"` failed with the following output: make[1]: Entering directory '/usr/src/linux-5.18.1-1' make[2]: Entering directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (SUSE Linux) 12.1.0 You are using: cc (SUSE Linux) 12.1.0 CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.o CC [M] /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.o In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:15: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_version': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:175:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 175 | NV_DEFINE_PROCFS_SINGLE_FILE(version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_file': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:195:23: note: in expansion of macro 'NV_PDE_DATA' 195 | nvfp->proc_data = NV_PDE_DATA(inode); | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_params': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:346:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 346 | NV_DEFINE_PROCFS_SINGLE_FILE(params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_text_file': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:672:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 672 | NV_DEFINE_PROCFS_SINGLE_FILE(text_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:672:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 672 | NV_DEFINE_PROCFS_SINGLE_FILE(text_file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_version': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:175:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 175 | NV_DEFINE_PROCFS_SINGLE_FILE(version); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_params': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:346:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 346 | NV_DEFINE_PROCFS_SINGLE_FILE(params); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_open_gpu_info': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.c:161:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 161 | NV_DEFINE_PROCFS_SINGLE_FILE(gpu_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.c: In function 'nv_set_dma_address_size': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.c:2745:9: error: implicit declaration of function 'pci_set_dma_mask' [-Werror=implicit-function-declaration] 2745 | pci_set_dma_mask(nvl->dev, new_mask); | ^~~~~~~~~~~~~~~~ make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-procfs.o] Error 1 /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.c: In function 'nv_acpi_methods_init': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.c:613:22: error: implicit declaration of function 'acpi_bus_get_device'; did you mean 'acpi_is_pnp_device'? [-Werror=implicit-function-declaration] 613 | retVal = acpi_bus_get_device(nvif_parent_gpu_handle, &device); | ^~~~~~~~~~~~~~~~~~~ | acpi_is_pnp_device /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_dma_map_contig': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:30:11: error: implicit declaration of function 'pci_map_page'; did you mean 'dma_map_page'? [-Werror=implicit-function-declaration] 30 | *va = pci_map_page(dma_map->dev, dma_map->pages[0], 0, | ^~~~~~~~~~~~ | dma_map_page In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:293, from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:30: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c: In function 'nv_procfs_open_permissions': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:29: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration] 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:118:39: error: invalid type argument of '->' (have 'int') 118 | # define NV_PDE_DATA(inode) PDE(inode)->data | ^~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:136:13: note: in expansion of macro 'NV_PDE_DATA' 136 | NV_PDE_DATA(inode)); \ | ^~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-procfs.h:137:5: error: control reaches end of non-void function [-Werror=return-type] 137 | } \ | ^ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.c:87:1: note: in expansion of macro 'NV_DEFINE_PROCFS_SINGLE_FILE' 87 | NV_DEFINE_PROCFS_SINGLE_FILE(permissions); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:31:46: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 31 | dma_map->page_count * PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:31:46: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nvlink_linux.o] Error 1 cc1: some warnings being treated as errors In file included from /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:15: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/common/inc/nv-linux.h:343:5: error: implicit declaration of function 'pci_dma_mapping_error'; did you mean 'dma_mapping_error'? [-Werror=implicit-function-declaration] 343 | pci_dma_mapping_error(dev, addr) | ^~~~~~~~~~~~~~~~~~~~~ /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:32:9: note: in expansion of macro 'NV_PCI_DMA_MAPPING_ERROR' 32 | if (NV_PCI_DMA_MAPPING_ERROR(dma_map->dev, *va)) | ^~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-acpi.o] Error 1 /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_dma_unmap_contig': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:60:5: error: implicit declaration of function 'pci_unmap_page'; did you mean 'dma_unmap_page'? [-Werror=implicit-function-declaration] 60 | pci_unmap_page(dma_map->dev, dma_map->mapping.contig.dma_addr, | ^~~~~~~~~~~~~~ | dma_unmap_page /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:61:46: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 61 | dma_map->page_count * PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_map_dma_map_scatterlist': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:169:32: error: implicit declaration of function 'pci_map_sg'; did you mean 'pci_map_rom'? [-Werror=implicit-function-declaration] 169 | submap->sg_map_count = pci_map_sg(dma_map->dev, | ^~~~~~~~~~ | pci_map_rom /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:172:17: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 172 | PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c: In function 'nv_unmap_dma_map_scatterlist': /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:200:9: error: implicit declaration of function 'pci_unmap_sg'; did you mean 'pci_unmap_rom'? [-Werror=implicit-function-declaration] 200 | pci_unmap_sg(dma_map->dev, NV_DMA_SUBMAP_SCATTERLIST(submap), | ^~~~~~~~~~~~ | pci_unmap_rom /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.c:202:17: error: 'PCI_DMA_BIDIRECTIONAL' undeclared (first use in this function); did you mean 'DMA_BIDIRECTIONAL'? 202 | PCI_DMA_BIDIRECTIONAL); | ^~~~~~~~~~~~~~~~~~~~~ | DMA_BIDIRECTIONAL cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv-dma.o] Error 1 cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-5.18.1-1/scripts/Makefile.build:289: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel/nvidia/nv.o] Error 1 make[3]: Target '__build' not remade because of errors. make[2]: *** [/usr/src/linux-5.18.1-1/Makefile:1848: /tmp/selfgz16555/NVIDIA-Linux-x86_64-390.147/kernel] Error 2 make[2]: Target 'modules' not remade because of errors. make[2]: Leaving directory '/usr/src/linux-5.18.1-1-obj/x86_64/default' make[1]: *** [Makefile:219: __sub-make] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux-5.18.1-1' make: *** [Makefile:81: modules] Error 2 ERROR: The nvidia kernel module was not created.