1. nvidia-installer log file '/var/log/nvidia-installer.log'
  2. creation time: Fri Oct 23 22:31:53 2020
  3. installer version: 418.113
  4. PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  5. nvidia-installer command line:
  6. ./nvidia-installer
  7. Using: nvidia-installer ncurses v6 user interface
  8. -> Detected 8 CPUs online; setting concurrency level to 8.
  9. -> Installing NVIDIA driver version 418.113.
  10. -> Performing CC sanity check with CC="/usr/bin/cc".
  11. -> Kernel source path: '/lib/modules/5.8.0-kali3-amd64/source'
  12. -> Kernel output path: '/lib/modules/5.8.0-kali3-amd64/build'
  13. -> The CC version check failed:
  14. The kernel was built with gcc-10 (Debian 10.2.0-13) 10.2.0, GNU ld (GNU Binutils for Debian) 2.35.1, but the current compiler version is cc (Debian 9.3.0-18) 9.3.0.
  15. This may lead to subtle problems; if you are not certain whether the mismatched compiler will be compatible with your kernel, you may wish to abort installation, set the CC environment variable to the name of the compiler used to compile your kernel, and restart installation. (Answer: Ignore CC version check)
  16. WARNING: Ignoring CC version mismatch:
  17. The kernel was built with gcc-10 (Debian 10.2.0-13) 10.2.0, GNU ld (GNU Binutils for Debian) 2.35.1, but the current compiler version is cc (Debian 9.3.0-18) 9.3.0.
  18. -> Performing Compiler check.
  19. -> Performing Dom0 check.
  20. -> Performing Xen check.
  21. -> Performing PREEMPT_RT check.
  22. -> Performing vgpu_kvm check.
  23. -> Cleaning kernel module build directory.
  24. executing: 'cd ./kernel; /usr/bin/make -k -j8 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.0-kali3-amd64/source" SYSOUT="/lib/modules/5.8.0-kali3-amd64/build"'...
  25. rm -f -r conftest
  26. make[1]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-common'
  27. make[2]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  28. make[2]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  29. make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-common'
  30. -> Building kernel modules
  31. executing: 'cd ./kernel; /usr/bin/make -k -j8 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.0-kali3-amd64/source" SYSOUT="/lib/modules/5.8.0-kali3-amd64/build"'...
  32. make[1]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-common'
  33. make[2]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  34. scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
  35. SYMLINK /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-kernel.o
  36. SYMLINK /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nv-modeset-kernel.o
  37. CONFTEST: INIT_WORK
  38. CONFTEST: remap_pfn_range
  39. CONFTEST: hash__remap_4k_pfn
  40. CONFTEST: follow_pfn
  41. CONFTEST: vmap
  42. CONFTEST: set_pages_uc
  43. CONFTEST: list_is_first
  44. CONFTEST: set_memory_uc
  45. CONFTEST: set_memory_array_uc
  46. CONFTEST: change_page_attr
  47. CONFTEST: pci_get_class
  48. CONFTEST: pci_choose_state
  49. CONFTEST: vm_insert_page
  50. CONFTEST: acpi_device_id
  51. CONFTEST: acquire_console_sem
  52. CONFTEST: console_lock
  53. CONFTEST: kmem_cache_create
  54. CONFTEST: on_each_cpu
  55. CONFTEST: smp_call_function
  56. CONFTEST: acpi_evaluate_integer
  57. CONFTEST: ioremap_cache
  58. CONFTEST: ioremap_wc
  59. CONFTEST: acpi_walk_namespace
  60. CONFTEST: pci_domain_nr
  61. CONFTEST: pci_dma_mapping_error
  62. CONFTEST: sg_alloc_table
  63. CONFTEST: sg_init_table
  64. CONFTEST: pci_get_domain_bus_and_slot
  65. CONFTEST: get_num_physpages
  66. CONFTEST: efi_enabled
  67. CONFTEST: proc_create_data
  68. CONFTEST: pde_data
  69. CONFTEST: proc_remove
  70. CONFTEST: pm_vt_switch_required
  71. CONFTEST: xen_ioemu_inject_msi
  72. CONFTEST: phys_to_dma
  73. CONFTEST: get_dma_ops
  74. CONFTEST: write_cr4
  75. CONFTEST: of_get_property
  76. CONFTEST: of_find_node_by_phandle
  77. CONFTEST: of_node_to_nid
  78. CONFTEST: pnv_pci_get_npu_dev
  79. CONFTEST: of_get_ibm_chip_id
  80. CONFTEST: for_each_online_node
  81. CONFTEST: node_end_pfn
  82. CONFTEST: pci_bus_address
  83. CONFTEST: pci_stop_and_remove_bus_device
  84. CONFTEST: pci_remove_bus_device
  85. CONFTEST: request_threaded_irq
  86. CONFTEST: register_cpu_notifier
  87. CONFTEST: cpuhp_setup_state
  88. CONFTEST: dma_map_resource
  89. CONFTEST: backlight_device_register
  90. CONFTEST: register_acpi_notifier
  91. CONFTEST: timer_setup
  92. CONFTEST: pci_enable_msix_range
  93. CONFTEST: compound_order
  94. CONFTEST: do_gettimeofday
  95. CONFTEST: dma_direct_map_resource
  96. CONFTEST: vmf_insert_pfn
  97. CONFTEST: remap_page_range
  98. CONFTEST: address_space_init_once
  99. CONFTEST: kbasename
  100. CONFTEST: fatal_signal_pending
  101. CONFTEST: list_cut_position
  102. CONFTEST: vzalloc
  103. CONFTEST: wait_on_bit_lock_argument_count
  104. CONFTEST: bitmap_clear
  105. CONFTEST: usleep_range
  106. CONFTEST: radix_tree_empty
  107. CONFTEST: radix_tree_replace_slot
  108. CONFTEST: pnv_npu2_init_context
  109. CONFTEST: drm_dev_unref
  110. CONFTEST: drm_reinit_primary_mode_group
  111. CONFTEST: get_user_pages_remote
  112. CONFTEST: get_user_pages
  113. CONFTEST: drm_gem_object_lookup
  114. CONFTEST: drm_atomic_state_ref_counting
  115. CONFTEST: drm_driver_has_gem_prime_res_obj
  116. CONFTEST: drm_atomic_helper_connector_dpms
  117. CONFTEST: drm_connector_funcs_have_mode_in_name
  118. CONFTEST: drm_framebuffer_get
  119. CONFTEST: drm_gem_object_get
  120. CONFTEST: drm_dev_put
  121. CONFTEST: is_export_symbol_gpl_of_node_to_nid
  122. CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
  123. CONFTEST: is_export_symbol_present_swiotlb_dma_ops
  124. CONFTEST: i2c_adapter
  125. CONFTEST: pm_message_t
  126. CONFTEST: irq_handler_t
  127. CONFTEST: acpi_device_ops
  128. CONFTEST: acpi_op_remove
  129. CONFTEST: outer_flush_all
  130. CONFTEST: proc_dir_entry
  131. CONFTEST: scatterlist
  132. CONFTEST: sg_table
  133. CONFTEST: file_operations
  134. CONFTEST: vm_operations_struct
  135. CONFTEST: atomic_long_type
  136. CONFTEST: file_inode
  137. CONFTEST: task_struct
  138. CONFTEST: kuid_t
  139. CONFTEST: dma_ops
  140. CONFTEST: swiotlb_dma_ops
  141. CONFTEST: dma_map_ops
  142. CONFTEST: noncoherent_swiotlb_dma_ops
  143. CONFTEST: vm_fault_present
  144. CONFTEST: vm_fault_has_address
  145. CONFTEST: backlight_properties_type
  146. CONFTEST: vmbus_channel_has_ringbuffer_page
  147. CONFTEST: kmem_cache_has_kobj_remove_work
  148. CONFTEST: sysfs_slab_unlink
  149. CONFTEST: fault_flags
  150. CONFTEST: atomic64_type
  151. CONFTEST: address_space
  152. CONFTEST: backing_dev_info
  153. CONFTEST: mm_context_t
  154. CONFTEST: vm_ops_fault_removed_vma_arg
  155. CONFTEST: node_states_n_memory
  156. CONFTEST: drm_bus_present
  157. CONFTEST: drm_bus_has_bus_type
  158. CONFTEST: drm_bus_has_get_irq
  159. CONFTEST: drm_bus_has_get_name
  160. CONFTEST: drm_driver_has_legacy_dev_list
  161. CONFTEST: drm_driver_has_set_busid
  162. CONFTEST: drm_crtc_state_has_connectors_changed
  163. CONFTEST: drm_init_function_args
  164. CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
  165. CONFTEST: drm_helper_mode_fill_fb_struct
  166. CONFTEST: drm_master_drop_has_from_release_arg
  167. CONFTEST: drm_driver_unload_has_int_return_type
  168. CONFTEST: kref_has_refcount_of_type_refcount_t
  169. CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
  170. CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
  171. CONFTEST: drm_mode_object_find_has_file_priv_arg
  172. CONFTEST: dma_buf_owner
  173. CONFTEST: drm_connector_list_iter
  174. CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
  175. CONFTEST: drm_driver_prime_flag_present
  176. CONFTEST: dom0_kernel_present
  177. CONFTEST: nvidia_vgpu_hyperv_available
  178. CONFTEST: nvidia_vgpu_kvm_build
  179. CONFTEST: nvidia_grid_build
  180. CONFTEST: drm_available
  181. CONFTEST: drm_atomic_available
  182. CONFTEST: is_export_symbol_gpl_refcount_inc
  183. CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
  184. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.o
  185. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.o
  186. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.o
  187. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.o
  188. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.o
  189. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.o
  190. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.o
  191. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.o
  192. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  193. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  194. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  195. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  196. | ^~~~~~~~~
  197. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  198. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  199. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  200. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  201. | ^~~~~~~~~
  202. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  203. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  204. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  205. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  206. | ^~~~~~~~~
  207. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  208. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  209. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  210. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  211. | ^~~~~~~~~
  212. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  213. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  214. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  215. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  216. | ^~~~~~~~~
  217. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  218. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  219. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  220. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  221. | ^~~~~~~~~
  222. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  223. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  224. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  225. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  226. | ^~~~~~~~~
  227. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  228. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  229. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  230. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  231. | ^~~~~~~~~
  232. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  234. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  235. 578 | void *ptr = ioremap_nocache(phys, size);
  236. | ^~~~~~~~~~~~~~~
  237. | ioremap_cache
  238. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  239. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  240. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  241. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  242. 578 | void *ptr = ioremap_nocache(phys, size);
  243. | ^~~~~~~~~~~~~~~
  244. | ioremap_cache
  245. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  246. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  247. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  248. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  249. 578 | void *ptr = ioremap_nocache(phys, size);
  250. | ^~~~~~~~~~~~~~~
  251. | ioremap_cache
  252. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  253. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  254. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  255. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  256. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  257. | ^~~~~~~~~
  258. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  259. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  260. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  261. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  262. | ^~~~~~~~~
  263. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  265. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  266. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  267. | ^~~~~~~~~
  268. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  269. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  270. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  271. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  272. | ^~~~~~~~~
  273. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  275. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  276. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  277. | ^~~~~~~~~
  278. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  279. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  280. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  281. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  282. | ^~~~~~~~~
  283. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  286. 578 | void *ptr = ioremap_nocache(phys, size);
  287. | ^~~~~~~~~~~~~~~
  288. | ioremap_cache
  289. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  290. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  291. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  293. 578 | void *ptr = ioremap_nocache(phys, size);
  294. | ^~~~~~~~~~~~~~~
  295. | ioremap_cache
  296. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  297. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  298. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  300. 578 | void *ptr = ioremap_nocache(phys, size);
  301. | ^~~~~~~~~~~~~~~
  302. | ioremap_cache
  303. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  304. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  306. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  307. 578 | void *ptr = ioremap_nocache(phys, size);
  308. | ^~~~~~~~~~~~~~~
  309. | ioremap_cache
  310. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  311. cc1: some warnings being treated as errors
  312. cc1: some warnings being treated as errors
  313. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  314. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  315. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  316. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  317. | ^~~~~~~~~
  318. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  319. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  320. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  321. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  322. | ^~~~~~~~~
  323. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.o] Error 1
  324. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.o] Error 1
  325. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.o
  326. cc1: some warnings being treated as errors
  327. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.o
  328. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.o] Error 1
  329. cc1: some warnings being treated as errors
  330. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  331. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  332. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  333. 578 | void *ptr = ioremap_nocache(phys, size);
  334. | ^~~~~~~~~~~~~~~
  335. | ioremap_cache
  336. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  337. cc1: some warnings being treated as errors
  338. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.o
  339. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.o] Error 1
  340. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:285: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.o] Error 1
  341. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.o
  342. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.o
  343. cc1: some warnings being treated as errors
  344. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.o] Error 1
  345. cc1: some warnings being treated as errors
  346. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.o
  347. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.o] Error 1
  348. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.o
  349. cc1: some warnings being treated as errors
  350. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.o] Error 1
  351. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.o
  352. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  353. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  355. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  356. | ^~~~~~~~~
  357. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  358. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  359. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  360. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  361. | ^~~~~~~~~
  362. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  363. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  364. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  365. 578 | void *ptr = ioremap_nocache(phys, size);
  366. | ^~~~~~~~~~~~~~~
  367. | ioremap_cache
  368. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  369. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  370. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  371. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  372. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  373. | ^~~~~~~~~
  374. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  375. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  376. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  377. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  378. | ^~~~~~~~~
  379. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  380. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  382. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  383. | ^~~~~~~~~
  384. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  385. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  386. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  387. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  388. | ^~~~~~~~~
  389. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  390. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  392. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  393. | ^~~~~~~~~
  394. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  395. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  396. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  397. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  398. | ^~~~~~~~~
  399. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  400. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  401. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  402. 578 | void *ptr = ioremap_nocache(phys, size);
  403. | ^~~~~~~~~~~~~~~
  404. | ioremap_cache
  405. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  406. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  408. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  409. 578 | void *ptr = ioremap_nocache(phys, size);
  410. | ^~~~~~~~~~~~~~~
  411. | ioremap_cache
  412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  413. cc1: some warnings being treated as errors
  414. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  415. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  416. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  417. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  418. | ^~~~~~~~~
  419. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  420. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  421. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  422. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  423. | ^~~~~~~~~
  424. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  425. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  426. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  427. 578 | void *ptr = ioremap_nocache(phys, size);
  428. | ^~~~~~~~~~~~~~~
  429. | ioremap_cache
  430. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  431. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.o] Error 1
  432. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.o
  433. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  435. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  436. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  437. | ^~~~~~~~~
  438. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  439. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  440. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  441. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  442. | ^~~~~~~~~
  443. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  444. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  445. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  446. 578 | void *ptr = ioremap_nocache(phys, size);
  447. | ^~~~~~~~~~~~~~~
  448. | ioremap_cache
  449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  450. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  451. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  452. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  453. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  454. | ^~~~~~~~~
  455. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  456. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  457. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  458. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  459. | ^~~~~~~~~
  460. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  461. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  462. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  463. 578 | void *ptr = ioremap_nocache(phys, size);
  464. | ^~~~~~~~~~~~~~~
  465. | ioremap_cache
  466. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  467. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching':
  468. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
  469. 255 | if (NV_ALLOW_CACHING(memory_type))
  470. | ^
  471. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:257:9: note: here
  472. 257 | default:
  473. | ^~~~~~~
  474. cc1: some warnings being treated as errors
  475. cc1: some warnings being treated as errors
  476. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  477. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  478. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  479. 578 | void *ptr = ioremap_nocache(phys, size);
  480. | ^~~~~~~~~~~~~~~
  481. | ioremap_cache
  482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  483. cc1: some warnings being treated as errors
  484. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  485. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  486. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  487. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  488. | ^~~~~~~~~
  489. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  490. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  491. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  492. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  493. | ^~~~~~~~~
  494. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.o] Error 1
  495. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.o] Error 1
  496. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.o
  497. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.o] Error 1
  498. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.o
  499. cc1: some warnings being treated as errors
  500. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.o
  501. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  502. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  503. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  504. 578 | void *ptr = ioremap_nocache(phys, size);
  505. | ^~~~~~~~~~~~~~~
  506. | ioremap_cache
  507. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  508. cc1: some warnings being treated as errors
  509. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.o] Error 1
  510. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  511. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  512. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_add_text_file':
  513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  514. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  515. | ^~~~
  516. | |
  517. | const struct file_operations *
  518. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  519. 39 | proc_create_data(name, mode, parent, fops, __data)
  520. | ^~~~
  521. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1026:5: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  522. 1026 | NV_CREATE_PROC_FILE(filename, parent, text_file, (void *)text);
  523. | ^~~~~~~~~~~~~~~~~~~
  524. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  525. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  526. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  527. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  528. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  529. | ^~~~~~~~~~~~~~~~
  530. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.o] Error 1
  531. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  532. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  533. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_register_procfs':
  534. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  535. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  536. | ^~~~
  537. | |
  538. | const struct file_operations *
  539. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  540. 39 | proc_create_data(name, mode, parent, fops, __data)
  541. | ^~~~
  542. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1080:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  543. 1080 | entry = NV_CREATE_PROC_FILE("params", proc_nvidia, params, NULL);
  544. | ^~~~~~~~~~~~~~~~~~~
  545. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  546. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  547. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  548. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  549. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  550. | ^~~~~~~~~~~~~~~~
  551. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.o
  552. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  553. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  554. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  555. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  556. | ^~~~
  557. | |
  558. | const struct file_operations *
  559. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  560. 39 | proc_create_data(name, mode, parent, fops, __data)
  561. | ^~~~
  562. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1084:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  563. 1084 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia, registry, NULL);
  564. | ^~~~~~~~~~~~~~~~~~~
  565. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  566. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  567. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  568. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  569. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  570. | ^~~~~~~~~~~~~~~~
  571. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  572. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  573. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  574. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  575. | ^~~~
  576. | |
  577. | const struct file_operations *
  578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  579. 39 | proc_create_data(name, mode, parent, fops, __data)
  580. | ^~~~
  581. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1105:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  582. 1105 | entry = NV_CREATE_PROC_FILE("version", proc_nvidia, version, NULL);
  583. | ^~~~~~~~~~~~~~~~~~~
  584. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  585. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  586. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  587. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  588. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  589. | ^~~~~~~~~~~~~~~~
  590. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  591. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  592. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_add_gpu':
  593. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  594. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  595. | ^~~~
  596. | |
  597. | const struct file_operations *
  598. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  599. 39 | proc_create_data(name, mode, parent, fops, __data)
  600. | ^~~~
  601. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1147:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  602. 1147 | entry = NV_CREATE_PROC_FILE("information", proc_nvidia_gpu, gpu_info,
  603. | ^~~~~~~~~~~~~~~~~~~
  604. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  605. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  606. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  607. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  608. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  609. | ^~~~~~~~~~~~~~~~
  610. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  611. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  612. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  613. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  614. | ^~~~
  615. | |
  616. | const struct file_operations *
  617. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  618. 39 | proc_create_data(name, mode, parent, fops, __data)
  619. | ^~~~
  620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1152:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  621. 1152 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia_gpu, registry, nv);
  622. | ^~~~~~~~~~~~~~~~~~~
  623. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  624. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  625. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  626. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  627. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  628. | ^~~~~~~~~~~~~~~~
  629. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  630. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  631. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  632. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  633. | ^~~~
  634. | |
  635. | const struct file_operations *
  636. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  637. 39 | proc_create_data(name, mode, parent, fops, __data)
  638. | ^~~~
  639. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1158:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  640. 1158 | entry = NV_CREATE_PROC_FILE("exercise_error_forwarding", proc_nvidia_gpu,
  641. | ^~~~~~~~~~~~~~~~~~~
  642. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  643. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  644. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  645. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  646. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  647. | ^~~~~~~~~~~~~~~~
  648. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  649. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  650. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  651. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  652. | ^~~~
  653. | |
  654. | const struct file_operations *
  655. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  656. 39 | proc_create_data(name, mode, parent, fops, __data)
  657. | ^~~~
  658. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1166:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  659. 1166 | entry = NV_CREATE_PROC_FILE("unbindLock", proc_nvidia_gpu, unbind_lock, nv);
  660. | ^~~~~~~~~~~~~~~~~~~
  661. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  662. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  663. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  664. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  665. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  666. | ^~~~~~~~~~~~~~~~
  667. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  668. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  669. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  670. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  671. | ^~~~
  672. | |
  673. | const struct file_operations *
  674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  675. 39 | proc_create_data(name, mode, parent, fops, __data)
  676. | ^~~~
  677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1173:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  678. 1173 | entry = NV_CREATE_PROC_FILE("numa_status", proc_nvidia_gpu, numa_status,
  679. | ^~~~~~~~~~~~~~~~~~~
  680. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  681. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  682. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  683. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  684. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  685. | ^~~~~~~~~~~~~~~~
  686. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  687. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  688. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  689. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  690. | ^~~~
  691. | |
  692. | const struct file_operations *
  693. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  694. 39 | proc_create_data(name, mode, parent, fops, __data)
  695. | ^~~~
  696. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1178:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  697. 1178 | entry = NV_CREATE_PROC_FILE("offline_pages", proc_nvidia_gpu, offline_pages,
  698. | ^~~~~~~~~~~~~~~~~~~
  699. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  700. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  701. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  702. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  703. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  704. | ^~~~~~~~~~~~~~~~
  705. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.o
  706. cc1: some warnings being treated as errors
  707. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.o] Error 1
  708. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.o
  709. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c: In function 'nv_set_memory_array_type':
  710. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:86:13: error: implicit declaration of function 'set_memory_array_uc'; did you mean 'set_pages_array_uc'? [-Werror=implicit-function-declaration]
  711. 86 | set_memory_array_uc(pages, num_pages);
  712. | ^~~~~~~~~~~~~~~~~~~
  713. | set_pages_array_uc
  714. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:89:13: error: implicit declaration of function 'set_memory_array_wb'; did you mean 'set_pages_array_wb'? [-Werror=implicit-function-declaration]
  715. 89 | set_memory_array_wb(pages, num_pages);
  716. | ^~~~~~~~~~~~~~~~~~~
  717. | set_pages_array_wb
  718. cc1: some warnings being treated as errors
  719. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.o] Error 1
  720. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pci-table.o
  721. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  722. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  723. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  724. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  725. | ^~~~~~~~~
  726. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  727. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  728. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  729. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  730. | ^~~~~~~~~
  731. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  732. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  733. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  734. 578 | void *ptr = ioremap_nocache(phys, size);
  735. | ^~~~~~~~~~~~~~~
  736. | ioremap_cache
  737. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  738. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  739. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  740. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  741. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  742. | ^~~~~~~~~
  743. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  744. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  745. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  746. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  747. | ^~~~~~~~~
  748. cc1: some warnings being treated as errors
  749. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  750. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  751. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  752. 578 | void *ptr = ioremap_nocache(phys, size);
  753. | ^~~~~~~~~~~~~~~
  754. | ioremap_cache
  755. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  756. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  757. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  758. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  759. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  760. | ^~~~~~~~~
  761. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  762. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  763. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  764. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  765. | ^~~~~~~~~
  766. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  767. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  768. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  769. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  770. | ^~~~~~~~~
  771. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  772. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  773. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  774. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  775. | ^~~~~~~~~
  776. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.o] Error 1
  777. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  778. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  779. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  780. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  781. | ^~~~~~~~~
  782. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  783. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  784. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  785. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  786. | ^~~~~~~~~
  787. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-kthread-q.o
  788. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  789. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  790. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  791. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  792. | ^~~~~~~~~
  793. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  794. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  795. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  796. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  797. | ^~~~~~~~~
  798. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  799. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  800. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  801. 578 | void *ptr = ioremap_nocache(phys, size);
  802. | ^~~~~~~~~~~~~~~
  803. | ioremap_cache
  804. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  805. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:17:
  806. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: At top level:
  807. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  808. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  809. | ^~~~~~~
  810. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  811. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  812. 39 | *tv = (struct timeval) {
  813. | ^~~
  814. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  815. 40 | .tv_sec = now.tv_sec,
  816. | ^~~~~~
  817. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  818. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  819. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  820. 40 | .tv_sec = now.tv_sec,
  821. | ^~~
  822. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  823. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  824. 41 | .tv_usec = now.tv_nsec/1000,
  825. | ^~~~~~~
  826. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  827. 41 | .tv_usec = now.tv_nsec/1000,
  828. | ^~~
  829. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  830. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  831. 39 | *tv = (struct timeval) {
  832. | ^
  833. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  834. 578 | void *ptr = ioremap_nocache(phys, size);
  835. | ^~~~~~~~~~~~~~~
  836. | ioremap_cache
  837. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_get_current_time':
  839. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:432:20: error: storage size of 'tm' isn't known
  840. 432 | struct timeval tm;
  841. | ^~
  842. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:432:20: warning: unused variable 'tm' [-Wunused-variable]
  843. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_get_current_tick':
  844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:446:21: error: storage size of 'ts' isn't known
  845. 446 | struct timespec ts;
  846. | ^~
  847. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  849. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  850. 578 | void *ptr = ioremap_nocache(phys, size);
  851. | ^~~~~~~~~~~~~~~
  852. | ioremap_cache
  853. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  854. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  857. 578 | void *ptr = ioremap_nocache(phys, size);
  858. | ^~~~~~~~~~~~~~~
  859. | ioremap_cache
  860. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  861. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory':
  862. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:47:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  863. 47 | down_read(&mm->mmap_sem);
  864. | ^~~~~~~~
  865. | mmap_base
  866. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:80:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  867. 80 | up_read(&mm->mmap_sem);
  868. | ^~~~~~~~
  869. | mmap_base
  870. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages':
  871. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:118:20: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  872. 118 | down_read(&mm->mmap_sem);
  873. | ^~~~~~~~
  874. | mmap_base
  875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:121:18: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  876. 121 | up_read(&mm->mmap_sem);
  877. | ^~~~~~~~
  878. | mmap_base
  879. cc1: some warnings being treated as errors
  880. cc1: some warnings being treated as errors
  881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:448:5: error: implicit declaration of function 'jiffies_to_timespec'; did you mean 'jiffies_to_timespec64'? [-Werror=implicit-function-declaration]
  882. 448 | jiffies_to_timespec(jiffies, &ts);
  883. | ^~~~~~~~~~~~~~~~~~~
  884. | jiffies_to_timespec64
  885. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.o] Error 1
  886. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:446:21: warning: unused variable 'ts' [-Wunused-variable]
  887. 446 | struct timespec ts;
  888. | ^~
  889. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_delay':
  890. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:20: error: storage size of 'tm_end' isn't known
  891. 558 | struct timeval tm_end, tm_aux;
  892. | ^~~~~~
  893. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:28: error: storage size of 'tm_aux' isn't known
  894. 558 | struct timeval tm_end, tm_aux;
  895. | ^~~~~~
  896. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:28: warning: unused variable 'tm_aux' [-Wunused-variable]
  897. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:20: warning: unused variable 'tm_end' [-Wunused-variable]
  898. 558 | struct timeval tm_end, tm_aux;
  899. | ^~~~~~
  900. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  902. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  903. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  904. | ^~~~~~~~~
  905. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  906. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  907. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  908. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  909. | ^~~~~~~~~
  910. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-kthread-q-selftest.o
  911. cc1: some warnings being treated as errors
  912. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.o] Error 1
  913. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function '_os_ipmi_receive_resp':
  914. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:1917:29: error: storage size of 'tv' isn't known
  915. 1917 | struct timeval tv;
  916. | ^~
  917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:1917:29: warning: unused variable 'tv' [-Wunused-variable]
  918. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.o
  919. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.o] Error 1
  920. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  921. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  922. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  923. 578 | void *ptr = ioremap_nocache(phys, size);
  924. | ^~~~~~~~~~~~~~~
  925. | ioremap_cache
  926. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  927. cc1: some warnings being treated as errors
  928. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.o] Error 1
  929. cc1: some warnings being treated as errors
  930. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.o
  931. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.o
  932. cc1: some warnings being treated as errors
  933. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.o] Error 1
  934. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.o] Error 1
  935. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.o
  936. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.o
  937. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.o
  938. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  939. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  940. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  941. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  942. | ^~~~~~~~~
  943. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  944. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  945. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  946. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  947. | ^~~~~~~~~
  948. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  949. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  950. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  951. 578 | void *ptr = ioremap_nocache(phys, size);
  952. | ^~~~~~~~~~~~~~~
  953. | ioremap_cache
  954. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  955. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  956. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  957. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  958. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  959. | ^~~~~~~~~
  960. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  961. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  962. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  963. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  964. | ^~~~~~~~~
  965. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  966. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  967. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  968. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  969. | ^~~~~~~~~
  970. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  971. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  972. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  973. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  974. | ^~~~~~~~~
  975. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  976. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  977. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  978. 578 | void *ptr = ioremap_nocache(phys, size);
  979. | ^~~~~~~~~~~~~~~
  980. | ioremap_cache
  981. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  982. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  983. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  984. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  985. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  986. | ^~~~~~~~~
  987. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  988. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  989. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  990. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  991. | ^~~~~~~~~
  992. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  993. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  994. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  995. 578 | void *ptr = ioremap_nocache(phys, size);
  996. | ^~~~~~~~~~~~~~~
  997. | ioremap_cache
  998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  999. cc1: some warnings being treated as errors
  1000. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  1001. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  1002. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1004. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1005. | ^~~~~~~~~
  1006. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1007. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  1008. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  1009. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1010. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1011. | ^~~~~~~~~
  1012. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  1013. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1015. 578 | void *ptr = ioremap_nocache(phys, size);
  1016. | ^~~~~~~~~~~~~~~
  1017. | ioremap_cache
  1018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1019. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.o] Error 1
  1020. cc1: some warnings being treated as errors
  1021. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  1022. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  1023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1024. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1025. 578 | void *ptr = ioremap_nocache(phys, size);
  1026. | ^~~~~~~~~~~~~~~
  1027. | ioremap_cache
  1028. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1029. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.o] Error 1
  1030. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.o
  1031. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.o
  1032. cc1: some warnings being treated as errors
  1033. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  1034. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1036. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1037. | ^~~~~~~~~
  1038. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1039. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  1040. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1041. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1042. | ^~~~~~~~~
  1043. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.o] Error 1
  1044. cc1: some warnings being treated as errors
  1045. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.o
  1046. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  1047. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1048. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1049. 578 | void *ptr = ioremap_nocache(phys, size);
  1050. | ^~~~~~~~~~~~~~~
  1051. | ioremap_cache
  1052. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1053. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:285: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.o] Error 1
  1054. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.o
  1055. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.o
  1056. cc1: some warnings being treated as errors
  1057. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.o] Error 1
  1058. cc1: some warnings being treated as errors
  1059. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/nvstatus.o
  1060. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.o] Error 1
  1061. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/nvCpuUuid.o
  1062. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.o
  1063. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.o
  1064. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.o
  1065. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1066. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  1067. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1068. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1069. | ^~~~~~~
  1070. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1071. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1072. 39 | *tv = (struct timeval) {
  1073. | ^~~
  1074. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1075. 40 | .tv_sec = now.tv_sec,
  1076. | ^~~~~~
  1077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1078. 40 | .tv_sec = now.tv_sec,
  1079. | ^~~
  1080. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1081. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1082. 41 | .tv_usec = now.tv_nsec/1000,
  1083. | ^~~~~~~
  1084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1085. 41 | .tv_usec = now.tv_nsec/1000,
  1086. | ^~~
  1087. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1088. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1089. 39 | *tv = (struct timeval) {
  1090. | ^
  1091. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1092. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  1093. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1094. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1095. | ^~~~~~~
  1096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1097. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1098. 39 | *tv = (struct timeval) {
  1099. | ^~~
  1100. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1101. 40 | .tv_sec = now.tv_sec,
  1102. | ^~~~~~
  1103. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1104. 40 | .tv_sec = now.tv_sec,
  1105. | ^~~
  1106. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1107. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1108. 41 | .tv_usec = now.tv_nsec/1000,
  1109. | ^~~~~~~
  1110. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1111. 41 | .tv_usec = now.tv_nsec/1000,
  1112. | ^~~
  1113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1114. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1115. 39 | *tv = (struct timeval) {
  1116. | ^
  1117. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1118. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1119. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  1120. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1121. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1122. | ^~~~~~~
  1123. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1124. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1125. 39 | *tv = (struct timeval) {
  1126. | ^~~
  1127. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1128. 40 | .tv_sec = now.tv_sec,
  1129. | ^~~~~~
  1130. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1131. 40 | .tv_sec = now.tv_sec,
  1132. | ^~~
  1133. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1134. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1135. 41 | .tv_usec = now.tv_nsec/1000,
  1136. | ^~~~~~~
  1137. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1138. 41 | .tv_usec = now.tv_nsec/1000,
  1139. | ^~~
  1140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1141. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1142. 39 | *tv = (struct timeval) {
  1143. | ^
  1144. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1145. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1146. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1147. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1148. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1149. | ^~~~~~~
  1150. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1151. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1152. 39 | *tv = (struct timeval) {
  1153. | ^~~
  1154. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1155. 40 | .tv_sec = now.tv_sec,
  1156. | ^~~~~~
  1157. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1158. 40 | .tv_sec = now.tv_sec,
  1159. | ^~~
  1160. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1161. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1162. 41 | .tv_usec = now.tv_nsec/1000,
  1163. | ^~~~~~~
  1164. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1165. 41 | .tv_usec = now.tv_nsec/1000,
  1166. | ^~~
  1167. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1168. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1169. 39 | *tv = (struct timeval) {
  1170. | ^
  1171. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1172. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1173. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  1174. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1175. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1176. | ^~~~~~~
  1177. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1178. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1179. 39 | *tv = (struct timeval) {
  1180. | ^~~
  1181. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1182. 40 | .tv_sec = now.tv_sec,
  1183. | ^~~~~~
  1184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1185. 40 | .tv_sec = now.tv_sec,
  1186. | ^~~
  1187. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1188. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1189. 41 | .tv_usec = now.tv_nsec/1000,
  1190. | ^~~~~~~
  1191. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1192. 41 | .tv_usec = now.tv_nsec/1000,
  1193. | ^~~
  1194. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1195. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1196. 39 | *tv = (struct timeval) {
  1197. | ^
  1198. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1199. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1200. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  1201. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1202. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1203. | ^~~~~~~
  1204. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1205. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1206. 39 | *tv = (struct timeval) {
  1207. | ^~~
  1208. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1209. 40 | .tv_sec = now.tv_sec,
  1210. | ^~~~~~
  1211. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1212. 40 | .tv_sec = now.tv_sec,
  1213. | ^~~
  1214. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1215. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1216. 41 | .tv_usec = now.tv_nsec/1000,
  1217. | ^~~~~~~
  1218. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1219. 41 | .tv_usec = now.tv_nsec/1000,
  1220. | ^~~
  1221. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1222. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1223. 39 | *tv = (struct timeval) {
  1224. | ^
  1225. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  1226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1227. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1228. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1229. | ^~~~~~~~~
  1230. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1231. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  1232. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1233. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1234. | ^~~~~~~~~
  1235. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1236. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  1237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1238. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1239. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1240. | ^~~~~~~~~
  1241. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1242. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1243. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  1244. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1245. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1246. | ^~~~~~~~~
  1247. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  1248. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1249. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1250. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1251. | ^~~~~~~~~
  1252. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1253. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  1254. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1255. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1256. | ^~~~~~~~~
  1257. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  1258. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1259. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1260. 578 | void *ptr = ioremap_nocache(phys, size);
  1261. | ^~~~~~~~~~~~~~~
  1262. | ioremap_cache
  1263. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1264. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1265. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  1266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1268. 578 | void *ptr = ioremap_nocache(phys, size);
  1269. | ^~~~~~~~~~~~~~~
  1270. | ioremap_cache
  1271. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1272. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1273. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  1274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1275. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1276. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1277. | ^~~~~~~~~
  1278. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1279. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1280. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  1281. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1282. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1283. | ^~~~~~~~~
  1284. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1285. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1286. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  1287. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1289. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1290. | ^~~~~~~~~
  1291. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1292. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1293. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1294. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  1295. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1296. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1297. | ^~~~~~~~~
  1298. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  1299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1300. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1301. 578 | void *ptr = ioremap_nocache(phys, size);
  1302. | ^~~~~~~~~~~~~~~
  1303. | ioremap_cache
  1304. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1305. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:32:
  1306. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: At top level:
  1307. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1308. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1309. | ^~~~~~~
  1310. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1311. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1312. 39 | *tv = (struct timeval) {
  1313. | ^~~
  1314. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1315. 40 | .tv_sec = now.tv_sec,
  1316. | ^~~~~~
  1317. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1318. 40 | .tv_sec = now.tv_sec,
  1319. | ^~~
  1320. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1321. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1322. 41 | .tv_usec = now.tv_nsec/1000,
  1323. | ^~~~~~~
  1324. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1325. 41 | .tv_usec = now.tv_nsec/1000,
  1326. | ^~~
  1327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1328. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1329. 39 | *tv = (struct timeval) {
  1330. | ^
  1331. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  1332. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  1333. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nvlink_permissions_init':
  1334. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  1335. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  1336. | ^~~~
  1337. | |
  1338. | const struct file_operations *
  1339. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  1340. 39 | proc_create_data(name, mode, parent, fops, __data)
  1341. | ^~~~
  1342. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:105:26: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  1343. 105 | nvlink_permissions = NV_CREATE_PROC_FILE("permissions",
  1344. | ^~~~~~~~~~~~~~~~~~~
  1345. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  1346. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  1347. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  1348. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  1349. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  1350. | ^~~~~~~~~~~~~~~~
  1351. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  1352. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:506:18: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1353. 506 | const struct timeval *a,
  1354. | ^~~~~~~
  1355. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timer_less_than':
  1356. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:510:14: error: dereferencing pointer to incomplete type 'const struct timeval'
  1357. 510 | return (a->tv_sec == b->tv_sec) ? (a->tv_usec < b->tv_usec)
  1358. | ^~
  1359. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  1360. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:516:18: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1361. 516 | const struct timeval *a,
  1362. | ^~~~~~~
  1363. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timeradd':
  1364. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:521:11: error: dereferencing pointer to incomplete type 'struct timeval'
  1365. 521 | result->tv_sec = a->tv_sec + b->tv_sec;
  1366. | ^~
  1367. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:521:23: error: dereferencing pointer to incomplete type 'const struct timeval'
  1368. 521 | result->tv_sec = a->tv_sec + b->tv_sec;
  1369. | ^~
  1370. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  1371. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:532:18: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1372. 532 | const struct timeval *a,
  1373. | ^~~~~~~
  1374. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timersub':
  1375. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:537:11: error: dereferencing pointer to incomplete type 'struct timeval'
  1376. 537 | result->tv_sec = a->tv_sec - b->tv_sec;
  1377. | ^~
  1378. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:537:23: error: dereferencing pointer to incomplete type 'const struct timeval'
  1379. 537 | result->tv_sec = a->tv_sec - b->tv_sec;
  1380. | ^~
  1381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nvlink_sleep':
  1382. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:20: error: storage size of 'tm_end' isn't known
  1383. 554 | struct timeval tm_end, tm_aux;
  1384. | ^~~~~~
  1385. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1386. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  1387. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1388. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:28: error: storage size of 'tm_aux' isn't known
  1389. 554 | struct timeval tm_end, tm_aux;
  1390. | ^~~~~~
  1391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1392. 578 | void *ptr = ioremap_nocache(phys, size);
  1393. | ^~~~~~~~~~~~~~~
  1394. | ioremap_cache
  1395. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1396. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:28: warning: unused variable 'tm_aux' [-Wunused-variable]
  1397. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:20: warning: unused variable 'tm_end' [-Wunused-variable]
  1398. 554 | struct timeval tm_end, tm_aux;
  1399. | ^~~~~~
  1400. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1401. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1402. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  1403. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1405. 578 | void *ptr = ioremap_nocache(phys, size);
  1406. | ^~~~~~~~~~~~~~~
  1407. | ioremap_cache
  1408. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1409. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  1410. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  1411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  1412. 325 | struct timespec ts = {0};
  1413. | ^~~~~~~~
  1414. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  1415. 325 | struct timespec ts = {0};
  1416. | ^
  1417. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  1418. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  1419. 325 | struct timespec ts = {0};
  1420. | ^~
  1421. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:26:
  1422. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_permissions_init':
  1423. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  1424. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  1425. | ^~~~
  1426. | |
  1427. | const struct file_operations *
  1428. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  1429. 39 | proc_create_data(name, mode, parent, fops, __data)
  1430. | ^~~~
  1431. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:324:28: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  1432. 324 | nvswitch_permissions = NV_CREATE_PROC_FILE("permissions",
  1433. | ^~~~~~~~~~~~~~~~~~~
  1434. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:16,
  1435. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:26:
  1436. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  1437. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  1438. | ^~~~~~~~~~~~~~~~
  1439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_os_get_platform_time':
  1440. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1562:21: error: storage size of 'ts' isn't known
  1441. 1562 | struct timespec ts;
  1442. | ^~
  1443. cc1: some warnings being treated as errors
  1444. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.o] Error 1
  1445. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  1446. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  1447. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  1448. 325 | struct timespec ts = {0};
  1449. | ^~~~~~~~
  1450. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  1451. 325 | struct timespec ts = {0};
  1452. | ^
  1453. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  1454. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  1455. 325 | struct timespec ts = {0};
  1456. | ^~
  1457. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1458. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  1459. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  1460. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.o
  1461. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  1462. 325 | struct timespec ts = {0};
  1463. | ^~~~~~~~
  1464. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  1465. 325 | struct timespec ts = {0};
  1466. | ^
  1467. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  1468. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  1469. 325 | struct timespec ts = {0};
  1470. | ^~
  1471. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1472. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1473. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1474. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1475. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1476. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1477. | ^~~~~~~~~
  1478. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1479. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1480. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1481. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1482. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1483. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1484. | ^~~~~~~~~
  1485. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1564:5: error: implicit declaration of function 'getnstimeofday'; did you mean 'efi_gettimeofday'? [-Werror=implicit-function-declaration]
  1486. 1564 | getnstimeofday(&ts);
  1487. | ^~~~~~~~~~~~~~
  1488. | efi_gettimeofday
  1489. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  1490. 327 | getrawmonotonic(&ts);
  1491. | ^~~~~~~~~~~~~~~
  1492. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  1493. 325 | struct timespec ts = {0};
  1494. | ^~
  1495. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1496. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1497. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1498. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1500. 578 | void *ptr = ioremap_nocache(phys, size);
  1501. | ^~~~~~~~~~~~~~~
  1502. | ioremap_cache
  1503. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1504. cc1: some warnings being treated as errors
  1505. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1565:21: error: implicit declaration of function 'timespec_to_ns'; did you mean 'timespec64_to_ns'? [-Werror=implicit-function-declaration]
  1506. 1565 | return ((NvU64) timespec_to_ns(&ts));
  1507. | ^~~~~~~~~~~~~~
  1508. | timespec64_to_ns
  1509. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1562:21: warning: unused variable 'ts' [-Wunused-variable]
  1510. 1562 | struct timespec ts;
  1511. | ^~
  1512. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.o] Error 1
  1513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  1514. 327 | getrawmonotonic(&ts);
  1515. | ^~~~~~~~~~~~~~~
  1516. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  1517. 325 | struct timespec ts = {0};
  1518. | ^~
  1519. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  1520. 327 | getrawmonotonic(&ts);
  1521. | ^~~~~~~~~~~~~~~
  1522. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  1523. 325 | struct timespec ts = {0};
  1524. | ^~
  1525. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1526. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1527. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  1528. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1529. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1530. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1531. | ^~~~~~~~~
  1532. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1533. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1534. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1535. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  1536. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1537. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1538. | ^~~~~~~~~
  1539. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.o
  1540. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1541. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1542. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  1543. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  1544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  1545. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  1546. | ^~~~~~~~~
  1547. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  1548. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1549. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1550. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  1551. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  1552. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  1553. | ^~~~~~~~~
  1554. cc1: some warnings being treated as errors
  1555. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1566:1: warning: control reaches end of non-void function [-Wreturn-type]
  1556. 1566 | }
  1557. | ^
  1558. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1559. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1560. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  1561. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  1562. 325 | struct timespec ts = {0};
  1563. | ^~~~~~~~
  1564. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  1565. 325 | struct timespec ts = {0};
  1566. | ^
  1567. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  1568. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  1569. 325 | struct timespec ts = {0};
  1570. | ^~
  1571. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1572. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1573. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  1574. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1575. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1576. 578 | void *ptr = ioremap_nocache(phys, size);
  1577. | ^~~~~~~~~~~~~~~
  1578. | ioremap_cache
  1579. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1580. cc1: some warnings being treated as errors
  1581. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.o] Error 1
  1582. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1583. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1584. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  1585. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  1586. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  1587. 578 | void *ptr = ioremap_nocache(phys, size);
  1588. | ^~~~~~~~~~~~~~~
  1589. | ioremap_cache
  1590. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  1591. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.o
  1592. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.o] Error 1
  1593. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  1594. 331 | }
  1595. | ^
  1596. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1597. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  1598. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  1599. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  1600. 325 | struct timespec ts = {0};
  1601. | ^~~~~~~~
  1602. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  1603. 325 | struct timespec ts = {0};
  1604. | ^
  1605. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  1606. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  1607. 325 | struct timespec ts = {0};
  1608. | ^~
  1609. cc1: some warnings being treated as errors
  1610. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1611. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  1612. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  1613. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  1614. 325 | struct timespec ts = {0};
  1615. | ^~~~~~~~
  1616. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  1617. 325 | struct timespec ts = {0};
  1618. | ^
  1619. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  1620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  1621. 325 | struct timespec ts = {0};
  1622. | ^~
  1623. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.o] Error 1
  1624. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.o
  1625. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.o
  1626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  1627. 327 | getrawmonotonic(&ts);
  1628. | ^~~~~~~~~~~~~~~
  1629. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  1630. 325 | struct timespec ts = {0};
  1631. | ^~
  1632. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  1633. 327 | getrawmonotonic(&ts);
  1634. | ^~~~~~~~~~~~~~~
  1635. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  1636. 325 | struct timespec ts = {0};
  1637. | ^~
  1638. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  1639. 327 | getrawmonotonic(&ts);
  1640. | ^~~~~~~~~~~~~~~
  1641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  1642. 325 | struct timespec ts = {0};
  1643. | ^~
  1644. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1645. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  1646. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  1647. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1648. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1649. | ^~~~~~~
  1650. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1652. 39 | *tv = (struct timeval) {
  1653. | ^~~
  1654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1655. 40 | .tv_sec = now.tv_sec,
  1656. | ^~~~~~
  1657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1658. 40 | .tv_sec = now.tv_sec,
  1659. | ^~~
  1660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1662. 41 | .tv_usec = now.tv_nsec/1000,
  1663. | ^~~~~~~
  1664. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1665. 41 | .tv_usec = now.tv_nsec/1000,
  1666. | ^~~
  1667. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1669. 39 | *tv = (struct timeval) {
  1670. | ^
  1671. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1672. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  1673. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  1674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1675. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1676. | ^~~~~~~
  1677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1678. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1679. 39 | *tv = (struct timeval) {
  1680. | ^~~
  1681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1682. 40 | .tv_sec = now.tv_sec,
  1683. | ^~~~~~
  1684. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1685. 40 | .tv_sec = now.tv_sec,
  1686. | ^~~
  1687. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1688. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1689. 41 | .tv_usec = now.tv_nsec/1000,
  1690. | ^~~~~~~
  1691. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1692. 41 | .tv_usec = now.tv_nsec/1000,
  1693. | ^~~
  1694. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1695. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1696. 39 | *tv = (struct timeval) {
  1697. | ^
  1698. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1699. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  1700. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  1701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1702. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1703. | ^~~~~~~
  1704. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1706. 39 | *tv = (struct timeval) {
  1707. | ^~~
  1708. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1709. 40 | .tv_sec = now.tv_sec,
  1710. | ^~~~~~
  1711. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1712. 40 | .tv_sec = now.tv_sec,
  1713. | ^~~
  1714. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1715. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1716. 41 | .tv_usec = now.tv_nsec/1000,
  1717. | ^~~~~~~
  1718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1719. 41 | .tv_usec = now.tv_nsec/1000,
  1720. | ^~~
  1721. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1722. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1723. 39 | *tv = (struct timeval) {
  1724. | ^
  1725. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1726. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1727. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  1728. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1729. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1730. | ^~~~~~~
  1731. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1732. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1733. 39 | *tv = (struct timeval) {
  1734. | ^~~
  1735. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1736. 40 | .tv_sec = now.tv_sec,
  1737. | ^~~~~~
  1738. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1739. 40 | .tv_sec = now.tv_sec,
  1740. | ^~~
  1741. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1742. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1743. 41 | .tv_usec = now.tv_nsec/1000,
  1744. | ^~~~~~~
  1745. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1746. 41 | .tv_usec = now.tv_nsec/1000,
  1747. | ^~~
  1748. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1749. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1750. 39 | *tv = (struct timeval) {
  1751. | ^
  1752. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  1753. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  1754. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  1755. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  1756. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  1757. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  1758. | ^~~~~~~
  1759. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  1760. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  1761. 39 | *tv = (struct timeval) {
  1762. | ^~~
  1763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  1764. 40 | .tv_sec = now.tv_sec,
  1765. | ^~~~~~
  1766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  1767. 40 | .tv_sec = now.tv_sec,
  1768. | ^~~
  1769. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  1770. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  1771. 41 | .tv_usec = now.tv_nsec/1000,
  1772. | ^~~~~~~
  1773. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  1774. 41 | .tv_usec = now.tv_nsec/1000,
  1775. | ^~~
  1776. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  1777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  1778. 39 | *tv = (struct timeval) {
  1779. | ^
  1780. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  1781. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1782. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  1783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1784. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1785. | ^~~~~~~~
  1786. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  1787. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  1788. | ^~~~~~~~
  1789. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  1790. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1791. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1792. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1793. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1794. | ^~~~~~~~
  1795. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  1796. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  1797. | ^~~~~~~~
  1798. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  1799. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1800. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1801. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  1802. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  1803. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1804. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  1805. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  1806. | ^~~~
  1807. | |
  1808. | int
  1809. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1810. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1811. | ^~~~
  1812. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  1813. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  1814. | ^~~~~~~~~~~~~~~
  1815. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  1816. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  1817. | ^~~~~~~~~~
  1818. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  1819. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  1820. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1821. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  1822. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1823. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1824. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  1825. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  1826. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  1827. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  1828. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  1829. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  1830. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1831. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  1832. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1833. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  1834. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  1835. | ~~~~~~~~~~~~~~~~~~~~~^~~
  1836. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  1837. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  1838. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1839. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  1840. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  1841. | ^~~~
  1842. | |
  1843. | int
  1844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1845. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1846. | ^~~~
  1847. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  1848. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  1849. | ^~~~~~~~~~~~~~~
  1850. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  1851. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  1852. | ^~~~~~~~~~
  1853. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  1854. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  1855. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  1857. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1858. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1859. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  1860. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1861. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  1862. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  1863. | ~~~~~~^~~~
  1864. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  1865. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  1866. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:24:
  1867. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  1868. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  1869. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  1870. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  1871. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_managed':
  1872. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:301:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1873. 301 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  1874. | ^~~~~~~~
  1875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1876. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1877. | ^~~~
  1878. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:301:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write'
  1879. 301 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  1880. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1882. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1883. | ^~~~~~~~
  1884. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  1885. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  1886. | ^~~~~~~~
  1887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  1888. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1889. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1890. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:350:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1891. 350 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  1892. | ^~~~~~~~
  1893. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1894. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1895. | ^~~~
  1896. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:350:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write'
  1897. 350 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  1898. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1899. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_managed':
  1900. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:360:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1901. 360 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  1902. | ^~~~~~~~
  1903. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1904. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1905. | ^~~~
  1906. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:360:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write'
  1907. 360 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  1908. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1909. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:390:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1910. 390 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  1911. | ^~~~~~~~
  1912. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1913. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1914. | ^~~~
  1915. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:390:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write'
  1916. 390 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  1917. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1918. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1919. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1920. | ^~~~~~~~
  1921. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  1922. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  1923. | ^~~~~~~~
  1924. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  1925. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1926. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1927. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  1928. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  1929. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  1930. | ^~~~
  1931. | |
  1932. | int
  1933. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1934. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1935. | ^~~~
  1936. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  1937. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  1938. | ^~~~~~~~~~~~~~~
  1939. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  1940. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  1941. | ^~~~~~~~~~
  1942. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  1943. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  1944. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1945. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  1946. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1947. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1948. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  1949. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  1950. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  1951. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  1952. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  1953. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  1954. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  1955. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  1956. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  1957. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  1958. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  1959. | ~~~~~~~~~~~~~~~~~~~~~^~~
  1960. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  1961. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  1962. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  1963. | ^~~~
  1964. | |
  1965. | int
  1966. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1967. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1968. | ^~~~
  1969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  1970. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  1971. | ^~~~~~~~~~~~~~~
  1972. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  1973. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  1974. | ^~~~~~~~~~
  1975. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  1976. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  1977. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1978. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  1979. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  1980. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  1981. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  1982. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  1983. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:24:
  1984. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  1985. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  1986. | ~~~~~~^~~~
  1987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_fault':
  1988. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c: In function 'map_user_pages':
  1989. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:418:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1990. 418 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem);
  1991. | ^~~~~~~~
  1992. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  1993. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  1994. | ^~~~
  1995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:418:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_read'
  1996. 418 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem);
  1997. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:258:29: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  1999. 258 | down_read(&current->mm->mmap_sem);
  2000. | ^~~~~~~~
  2001. | mmap_base
  2002. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:260:27: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2003. 260 | up_read(&current->mm->mmap_sem);
  2004. | ^~~~~~~~
  2005. | mmap_base
  2006. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:478:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2007. 478 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem);
  2008. | ^~~~~~~~
  2009. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2010. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2011. | ^~~~
  2012. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:478:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read'
  2013. 478 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem);
  2014. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2015. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_semaphore_pool':
  2016. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:543:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2017. 543 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  2018. | ^~~~~~~~
  2019. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2020. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2021. | ^~~~
  2022. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:543:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write'
  2023. 543 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  2024. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2025. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:581:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2026. 581 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  2027. | ^~~~~~~~
  2028. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2029. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2030. | ^~~~
  2031. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:581:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write'
  2032. 581 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  2033. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2034. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_semaphore_pool':
  2035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:591:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2036. 591 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  2037. | ^~~~~~~~
  2038. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2039. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2040. | ^~~~
  2041. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:591:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_write'
  2042. 591 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  2043. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2044. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:600:56: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2045. 600 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  2046. | ^~~~~~~~
  2047. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2048. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2049. | ^~~~
  2050. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:600:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write'
  2051. 600 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  2052. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2053. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_mmap':
  2054. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:626:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2055. 626 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  2056. | ^~~~~~~~
  2057. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2058. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2059. | ^~~~
  2060. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:626:5: note: in expansion of macro 'uvm_record_lock_mmap_sem_write'
  2061. 626 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  2062. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2063. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:712:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2064. 712 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  2065. | ^~~~~~~~
  2066. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2067. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2068. | ^~~~
  2069. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:712:5: note: in expansion of macro 'uvm_record_unlock_mmap_sem_write'
  2070. 712 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  2071. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2072. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  2073. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  2074. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  2075. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2076. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2077. | ^~~~~~~~
  2078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  2079. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  2080. | ^~~~~~~~
  2081. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  2082. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2083. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  2084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2085. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2086. | ^~~~~~~~
  2087. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  2088. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  2089. | ^~~~~~~~
  2090. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  2091. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2092. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  2093. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  2094. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  2095. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  2096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  2097. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  2098. | ^~~~
  2099. | |
  2100. | int
  2101. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2102. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2103. | ^~~~
  2104. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  2105. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  2106. | ^~~~~~~~~~~~~~~
  2107. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  2108. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  2109. | ^~~~~~~~~~
  2110. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  2111. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  2112. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  2114. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2115. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  2116. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  2117. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  2118. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  2119. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  2120. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  2121. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  2122. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2123. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  2124. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  2125. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  2126. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  2127. | ~~~~~~~~~~~~~~~~~~~~~^~~
  2128. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  2129. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  2130. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  2131. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  2132. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  2133. | ^~~~
  2134. | |
  2135. | int
  2136. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2137. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2138. | ^~~~
  2139. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  2140. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  2141. | ^~~~~~~~~~~~~~~
  2142. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  2143. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  2144. | ^~~~~~~~~~
  2145. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  2146. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  2147. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2148. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  2149. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2150. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  2151. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  2152. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  2153. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  2154. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  2155. | ~~~~~~^~~~
  2156. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  2157. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  2158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm8_initialize':
  2159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:853:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2160. 853 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  2161. | ^~~~~~~~
  2162. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:560:16: note: in definition of macro 'uvm_down_write_mmap_sem'
  2163. 560 | typeof(mmap_sem) _sem = (mmap_sem); \
  2164. | ^~~~~~~~
  2165. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:853:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2166. 853 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  2167. | ^~~~~~~~
  2168. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:560:34: note: in definition of macro 'uvm_down_write_mmap_sem'
  2169. 560 | typeof(mmap_sem) _sem = (mmap_sem); \
  2170. | ^~~~~~~~
  2171. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:562:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion]
  2172. 562 | down_write(_sem); \
  2173. | ^~~~
  2174. | |
  2175. | int
  2176. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:853:5: note: in expansion of macro 'uvm_down_write_mmap_sem'
  2177. 853 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  2178. | ^~~~~~~~~~~~~~~~~~~~~~~
  2179. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  2180. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  2181. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  2182. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  2183. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  2184. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  2185. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2186. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  2187. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  2188. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:136:45: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  2189. 136 | extern void down_write(struct rw_semaphore *sem);
  2190. | ~~~~~~~~~~~~~~~~~~~~~^~~
  2191. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  2192. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  2193. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:870:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2194. 870 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  2195. | ^~~~~~~~
  2196. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:566:16: note: in definition of macro 'uvm_up_write_mmap_sem'
  2197. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  2198. | ^~~~~~~~
  2199. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:870:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2200. 870 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  2201. | ^~~~~~~~
  2202. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:566:34: note: in definition of macro 'uvm_up_write_mmap_sem'
  2203. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  2204. | ^~~~~~~~
  2205. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:567:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion]
  2206. 567 | up_write(_sem); \
  2207. | ^~~~
  2208. | |
  2209. | int
  2210. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:870:5: note: in expansion of macro 'uvm_up_write_mmap_sem'
  2211. 870 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  2212. | ^~~~~~~~~~~~~~~~~~~~~
  2213. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  2214. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  2215. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  2216. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  2217. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  2218. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  2219. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2220. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  2221. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  2222. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  2223. 152 | extern void up_write(struct rw_semaphore *sem);
  2224. | ~~~~~~~~~~~~~~~~~~~~~^~~
  2225. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  2226. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  2227. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2228. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  2229. 331 | }
  2230. | ^
  2231. cc1: some warnings being treated as errors
  2232. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.o] Error 1
  2233. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  2234. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  2235. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2236. cc1: some warnings being treated as errors
  2237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  2238. 331 | }
  2239. | ^
  2240. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.o
  2241. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.o] Error 1
  2242. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.o
  2243. cc1: some warnings being treated as errors
  2244. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.o] Error 1
  2245. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.o
  2246. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  2247. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  2248. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  2249. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  2250. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  2251. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  2252. | ^~~~~~~
  2253. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  2254. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  2255. 39 | *tv = (struct timeval) {
  2256. | ^~~
  2257. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  2258. 40 | .tv_sec = now.tv_sec,
  2259. | ^~~~~~
  2260. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  2261. 40 | .tv_sec = now.tv_sec,
  2262. | ^~~
  2263. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  2264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  2265. 41 | .tv_usec = now.tv_nsec/1000,
  2266. | ^~~~~~~
  2267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  2268. 41 | .tv_usec = now.tv_nsec/1000,
  2269. | ^~~
  2270. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  2271. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  2272. 39 | *tv = (struct timeval) {
  2273. | ^
  2274. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  2275. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2276. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  2277. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  2278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  2279. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  2280. | ^~~~~~~
  2281. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  2282. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  2283. 39 | *tv = (struct timeval) {
  2284. | ^~~
  2285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  2286. 40 | .tv_sec = now.tv_sec,
  2287. | ^~~~~~
  2288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  2289. 40 | .tv_sec = now.tv_sec,
  2290. | ^~~
  2291. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  2292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  2293. 41 | .tv_usec = now.tv_nsec/1000,
  2294. | ^~~~~~~
  2295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  2296. 41 | .tv_usec = now.tv_nsec/1000,
  2297. | ^~~
  2298. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  2299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  2300. 39 | *tv = (struct timeval) {
  2301. | ^
  2302. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2303. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2304. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  2306. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  2307. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  2308. | ^~~~~~~~~
  2309. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  2310. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2311. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2312. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2313. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  2314. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  2315. | ^~~~~~~~~
  2316. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2317. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2318. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2319. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  2320. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  2321. 578 | void *ptr = ioremap_nocache(phys, size);
  2322. | ^~~~~~~~~~~~~~~
  2323. | ioremap_cache
  2324. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  2325. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  2326. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2327. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  2328. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  2329. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  2330. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  2331. | ^~~~~~~
  2332. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  2333. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  2334. 39 | *tv = (struct timeval) {
  2335. | ^~~
  2336. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  2337. 40 | .tv_sec = now.tv_sec,
  2338. | ^~~~~~
  2339. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  2340. 40 | .tv_sec = now.tv_sec,
  2341. | ^~~
  2342. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  2343. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  2344. 41 | .tv_usec = now.tv_nsec/1000,
  2345. | ^~~~~~~
  2346. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  2347. 41 | .tv_usec = now.tv_nsec/1000,
  2348. | ^~~
  2349. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  2350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  2351. 39 | *tv = (struct timeval) {
  2352. | ^
  2353. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2354. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2355. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2356. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  2357. 325 | struct timespec ts = {0};
  2358. | ^~~~~~~~
  2359. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  2360. 325 | struct timespec ts = {0};
  2361. | ^
  2362. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  2363. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  2364. 325 | struct timespec ts = {0};
  2365. | ^~
  2366. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2367. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  2368. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  2369. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  2370. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  2371. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  2372. | ^~~~~~~~~
  2373. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  2374. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2375. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  2376. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  2377. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  2378. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  2379. | ^~~~~~~~~
  2380. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2381. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  2382. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  2383. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  2384. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  2385. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  2386. | ^~~~~~~~~
  2387. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  2388. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2389. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  2390. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  2391. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  2392. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  2393. | ^~~~~~~~~
  2394. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2395. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  2396. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  2397. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  2398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  2399. 578 | void *ptr = ioremap_nocache(phys, size);
  2400. | ^~~~~~~~~~~~~~~
  2401. | ioremap_cache
  2402. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  2403. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  2404. 327 | getrawmonotonic(&ts);
  2405. | ^~~~~~~~~~~~~~~
  2406. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  2407. 325 | struct timespec ts = {0};
  2408. | ^~
  2409. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2410. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  2411. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  2412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  2413. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  2414. 578 | void *ptr = ioremap_nocache(phys, size);
  2415. | ^~~~~~~~~~~~~~~
  2416. | ioremap_cache
  2417. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  2418. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2419. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  2420. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  2421. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  2422. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  2423. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  2424. | ^~~~~~~~~
  2425. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  2426. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2427. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  2428. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  2429. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  2430. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  2431. | ^~~~~~~~~
  2432. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2433. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2434. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  2435. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2436. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  2437. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  2438. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  2439. | ^~~~~~~~~
  2440. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  2441. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2442. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2443. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  2444. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2445. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  2446. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  2447. | ^~~~~~~~~
  2448. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  2449. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  2450. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2451. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  2452. 325 | struct timespec ts = {0};
  2453. | ^~~~~~~~
  2454. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  2455. 325 | struct timespec ts = {0};
  2456. | ^
  2457. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  2458. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  2459. 325 | struct timespec ts = {0};
  2460. | ^~
  2461. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  2462. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  2463. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2464. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  2465. 325 | struct timespec ts = {0};
  2466. | ^~~~~~~~
  2467. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  2468. 325 | struct timespec ts = {0};
  2469. | ^
  2470. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  2471. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  2472. 325 | struct timespec ts = {0};
  2473. | ^~
  2474. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2475. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  2476. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  2477. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  2478. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  2479. 578 | void *ptr = ioremap_nocache(phys, size);
  2480. | ^~~~~~~~~~~~~~~
  2481. | ioremap_cache
  2482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  2483. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2484. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2485. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  2486. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2487. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  2488. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  2489. 578 | void *ptr = ioremap_nocache(phys, size);
  2490. | ^~~~~~~~~~~~~~~
  2491. | ioremap_cache
  2492. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  2493. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  2494. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  2495. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2496. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  2497. 325 | struct timespec ts = {0};
  2498. | ^~~~~~~~
  2499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  2500. 325 | struct timespec ts = {0};
  2501. | ^
  2502. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  2503. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  2504. 325 | struct timespec ts = {0};
  2505. | ^~
  2506. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  2507. 327 | getrawmonotonic(&ts);
  2508. | ^~~~~~~~~~~~~~~
  2509. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  2510. 325 | struct timespec ts = {0};
  2511. | ^~
  2512. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  2513. 327 | getrawmonotonic(&ts);
  2514. | ^~~~~~~~~~~~~~~
  2515. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  2516. 325 | struct timespec ts = {0};
  2517. | ^~
  2518. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2519. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  2520. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2521. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2522. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  2523. 325 | struct timespec ts = {0};
  2524. | ^~~~~~~~
  2525. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  2526. 325 | struct timespec ts = {0};
  2527. | ^
  2528. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  2529. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  2530. 325 | struct timespec ts = {0};
  2531. | ^~
  2532. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  2533. 327 | getrawmonotonic(&ts);
  2534. | ^~~~~~~~~~~~~~~
  2535. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  2536. 325 | struct timespec ts = {0};
  2537. | ^~
  2538. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  2539. 327 | getrawmonotonic(&ts);
  2540. | ^~~~~~~~~~~~~~~
  2541. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  2542. 325 | struct timespec ts = {0};
  2543. | ^~
  2544. cc1: some warnings being treated as errors
  2545. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.o] Error 1
  2546. cc1: some warnings being treated as errors
  2547. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.o
  2548. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.o] Error 1
  2549. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.o
  2550. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  2551. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2552. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2553. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2554. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c: In function 'init_procfs_files':
  2555. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  2556. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  2557. | ^~~~
  2558. | |
  2559. | const struct file_operations *
  2560. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  2561. 39 | proc_create_data(name, mode, parent, fops, __data)
  2562. | ^~~~
  2563. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:428:29: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  2564. 428 | gpu->procfs.info_file = NV_CREATE_PROC_FILE("info", gpu->procfs.dir, gpu_info, (void *)gpu);
  2565. | ^~~~~~~~~~~~~~~~~~~
  2566. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  2567. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  2568. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2569. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2570. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2571. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  2572. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  2573. | ^~~~~~~~~~~~~~~~
  2574. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  2575. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2576. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  2579. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  2580. | ^~~~
  2581. | |
  2582. | const struct file_operations *
  2583. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  2584. 39 | proc_create_data(name, mode, parent, fops, __data)
  2585. | ^~~~
  2586. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:436:36: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  2587. 436 | gpu->procfs.fault_stats_file = NV_CREATE_PROC_FILE("fault_stats", gpu->procfs.dir, gpu_fault_stats, (void *)gpu);
  2588. | ^~~~~~~~~~~~~~~~~~~
  2589. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  2590. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  2591. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2592. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2593. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2594. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  2595. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  2596. | ^~~~~~~~~~~~~~~~
  2597. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  2598. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2599. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2600. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2601. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  2602. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  2603. | ^~~~
  2604. | |
  2605. | const struct file_operations *
  2606. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  2607. 39 | proc_create_data(name, mode, parent, fops, __data)
  2608. | ^~~~
  2609. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:440:40: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  2610. 440 | gpu->procfs.access_counters_file = NV_CREATE_PROC_FILE("access_counters", gpu->procfs.dir, gpu_access_counters, (void *)gpu);
  2611. | ^~~~~~~~~~~~~~~~~~~
  2612. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  2613. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  2614. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2615. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  2616. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  2617. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  2618. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  2619. | ^~~~~~~~~~~~~~~~
  2620. cc1: some warnings being treated as errors
  2621. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2622. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2623. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  2624. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  2625. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  2626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  2627. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  2628. | ^~~~~~~~~
  2629. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  2630. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2631. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2632. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  2633. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  2634. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  2635. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  2636. | ^~~~~~~~~
  2637. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.o] Error 1
  2638. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2639. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  2640. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  2641. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  2642. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  2643. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  2644. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  2645. | ^~~~~~~~~
  2646. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  2647. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2648. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  2649. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  2650. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  2651. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  2652. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  2653. | ^~~~~~~~~
  2654. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.o
  2655. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  2656. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  2657. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  2658. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  2659. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:26:
  2660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c: In function 'mm_read64':
  2661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:536:33: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2662. 536 | uvm_down_read_mmap_sem(&mm->mmap_sem);
  2663. | ^~~~~~~~
  2664. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  2665. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  2666. | ^~~~~~~~
  2667. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:536:33: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2668. 536 | uvm_down_read_mmap_sem(&mm->mmap_sem);
  2669. | ^~~~~~~~
  2670. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  2671. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  2672. | ^~~~~~~~
  2673. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  2674. 544 | down_read(_sem); \
  2675. | ^~~~
  2676. | |
  2677. | int
  2678. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:536:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  2679. 536 | uvm_down_read_mmap_sem(&mm->mmap_sem);
  2680. | ^~~~~~~~~~~~~~~~~~~~~~
  2681. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  2682. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  2683. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  2684. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  2685. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  2686. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  2687. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2688. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  2689. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  2690. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  2691. 125 | extern void down_read(struct rw_semaphore *sem);
  2692. | ~~~~~~~~~~~~~~~~~~~~~^~~
  2693. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  2694. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  2695. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  2696. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  2697. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:26:
  2698. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:538:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2699. 538 | uvm_up_read_mmap_sem(&mm->mmap_sem);
  2700. | ^~~~~~~~
  2701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  2702. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  2703. | ^~~~~~~~
  2704. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:538:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2705. 538 | uvm_up_read_mmap_sem(&mm->mmap_sem);
  2706. | ^~~~~~~~
  2707. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  2708. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  2709. | ^~~~~~~~
  2710. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  2711. 549 | up_read(_sem); \
  2712. | ^~~~
  2713. | |
  2714. | int
  2715. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:538:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  2716. 538 | uvm_up_read_mmap_sem(&mm->mmap_sem);
  2717. | ^~~~~~~~~~~~~~~~~~~~
  2718. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  2719. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  2720. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  2721. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  2722. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  2723. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  2724. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2725. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  2726. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  2727. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  2728. 147 | extern void up_read(struct rw_semaphore *sem);
  2729. | ~~~~~~~~~~~~~~~~~~~~~^~~
  2730. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2731. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2732. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  2733. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  2734. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  2735. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  2736. 578 | void *ptr = ioremap_nocache(phys, size);
  2737. | ^~~~~~~~~~~~~~~
  2738. | ioremap_cache
  2739. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  2740. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2741. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  2742. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  2743. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  2744. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  2745. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  2746. 578 | void *ptr = ioremap_nocache(phys, size);
  2747. | ^~~~~~~~~~~~~~~
  2748. | ioremap_cache
  2749. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  2750. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  2751. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  2752. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  2753. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  2754. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2755. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  2756. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2757. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2758. | ^~~~~~~~
  2759. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  2760. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  2761. | ^~~~~~~~
  2762. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  2763. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2764. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  2765. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  2766. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  2767. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2768. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  2769. 331 | }
  2770. | ^
  2771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2772. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2773. | ^~~~~~~~
  2774. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  2775. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  2776. | ^~~~~~~~
  2777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  2778. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2779. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  2780. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  2781. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  2782. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  2784. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  2785. | ^~~~
  2786. | |
  2787. | int
  2788. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2789. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2790. | ^~~~
  2791. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  2792. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  2793. | ^~~~~~~~~~~~~~~
  2794. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  2795. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  2796. | ^~~~~~~~~~
  2797. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  2798. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  2799. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2800. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  2801. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2802. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  2803. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  2804. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  2805. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  2806. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  2807. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  2808. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  2809. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2810. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2811. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  2812. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2813. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  2814. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  2815. | ~~~~~~~~~~~~~~~~~~~~~^~~
  2816. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  2817. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  2818. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2819. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  2820. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  2821. | ^~~~
  2822. | |
  2823. | int
  2824. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  2825. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  2826. | ^~~~
  2827. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  2828. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  2829. | ^~~~~~~~~~~~~~~
  2830. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  2831. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  2832. | ^~~~~~~~~~
  2833. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  2834. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  2835. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2836. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  2837. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  2838. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  2839. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  2840. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  2841. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  2842. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  2843. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  2845. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  2846. | ~~~~~~^~~~
  2847. cc1: some warnings being treated as errors
  2848. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  2849. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  2850. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  2851. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  2852. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  2853. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  2854. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  2855. | ^~~~~~~
  2856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  2857. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  2858. 39 | *tv = (struct timeval) {
  2859. | ^~~
  2860. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  2861. 40 | .tv_sec = now.tv_sec,
  2862. | ^~~~~~
  2863. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  2864. 40 | .tv_sec = now.tv_sec,
  2865. | ^~~
  2866. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  2867. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  2868. 41 | .tv_usec = now.tv_nsec/1000,
  2869. | ^~~~~~~
  2870. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  2871. 41 | .tv_usec = now.tv_nsec/1000,
  2872. | ^~~
  2873. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  2874. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  2875. 39 | *tv = (struct timeval) {
  2876. | ^
  2877. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2878. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  2879. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  2880. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  2882. 325 | struct timespec ts = {0};
  2883. | ^~~~~~~~
  2884. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  2885. 325 | struct timespec ts = {0};
  2886. | ^
  2887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  2888. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  2889. 325 | struct timespec ts = {0};
  2890. | ^~
  2891. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.o] Error 1
  2892. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  2893. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  2894. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  2895. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  2896. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  2897. 325 | struct timespec ts = {0};
  2898. | ^~~~~~~~
  2899. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  2900. 325 | struct timespec ts = {0};
  2901. | ^
  2902. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  2903. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  2904. 325 | struct timespec ts = {0};
  2905. | ^~
  2906. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.o
  2907. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  2908. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  2909. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  2910. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  2911. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  2912. | ^~~~~~~
  2913. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  2914. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  2915. 39 | *tv = (struct timeval) {
  2916. | ^~~
  2917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  2918. 40 | .tv_sec = now.tv_sec,
  2919. | ^~~~~~
  2920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  2921. 40 | .tv_sec = now.tv_sec,
  2922. | ^~~
  2923. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  2924. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  2925. 41 | .tv_usec = now.tv_nsec/1000,
  2926. | ^~~~~~~
  2927. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  2928. 41 | .tv_usec = now.tv_nsec/1000,
  2929. | ^~~
  2930. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  2931. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  2932. 39 | *tv = (struct timeval) {
  2933. | ^
  2934. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2935. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2936. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  2937. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  2938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  2939. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu':
  2940. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:755:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2941. 755 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  2942. | ^~~~~~~~
  2943. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  2944. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  2945. | ^~~~~~~~
  2946. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  2947. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  2948. | ^~~~~~~~~
  2949. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  2950. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2951. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2952. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  2953. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  2954. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  2955. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  2956. | ^~~~~~~~~
  2957. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:755:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2958. 755 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  2959. | ^~~~~~~~
  2960. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  2961. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  2962. | ^~~~~~~~
  2963. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  2964. 544 | down_read(_sem); \
  2965. | ^~~~
  2966. | |
  2967. | int
  2968. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:755:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  2969. 755 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  2970. | ^~~~~~~~~~~~~~~~~~~~~~
  2971. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  2972. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  2973. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  2974. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  2975. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  2976. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  2977. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  2978. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  2979. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  2980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2981. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  2982. 125 | extern void down_read(struct rw_semaphore *sem);
  2983. | ~~~~~~~~~~~~~~~~~~~~~^~~
  2984. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  2985. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  2986. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  2987. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  2988. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  2989. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:780:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2990. 780 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  2991. | ^~~~~~~~
  2992. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  2993. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  2994. | ^~~~~~~~
  2995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:780:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  2996. 780 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  2997. | ^~~~~~~~
  2998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  2999. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  3000. | ^~~~~~~~
  3001. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  3002. 549 | up_read(_sem); \
  3003. | ^~~~
  3004. | |
  3005. | int
  3006. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:780:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  3007. 780 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  3008. | ^~~~~~~~~~~~~~~~~~~~
  3009. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  3010. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  3011. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  3012. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  3013. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  3014. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  3015. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3016. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3017. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  3018. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3019. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  3020. 147 | extern void up_read(struct rw_semaphore *sem);
  3021. | ~~~~~~~~~~~~~~~~~~~~~^~~
  3022. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  3023. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  3024. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  3025. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  3026. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3027. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_register_gpu_va_space':
  3028. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1249:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3029. 1249 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  3030. | ^~~~~~~~
  3031. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:560:16: note: in definition of macro 'uvm_down_write_mmap_sem'
  3032. 560 | typeof(mmap_sem) _sem = (mmap_sem); \
  3033. | ^~~~~~~~
  3034. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1249:43: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3035. 1249 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  3036. | ^~~~~~~~
  3037. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:560:34: note: in definition of macro 'uvm_down_write_mmap_sem'
  3038. 560 | typeof(mmap_sem) _sem = (mmap_sem); \
  3039. | ^~~~~~~~
  3040. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:562:20: warning: passing argument 1 of 'down_write' makes pointer from integer without a cast [-Wint-conversion]
  3041. 562 | down_write(_sem); \
  3042. | ^~~~
  3043. | |
  3044. | int
  3045. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1249:5: note: in expansion of macro 'uvm_down_write_mmap_sem'
  3046. 1249 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  3047. | ^~~~~~~~~~~~~~~~~~~~~~~
  3048. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  3049. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  3050. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  3051. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  3052. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  3053. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  3054. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3055. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3056. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  3057. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3058. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:136:45: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  3059. 136 | extern void down_write(struct rw_semaphore *sem);
  3060. | ~~~~~~~~~~~~~~~~~~~~~^~~
  3061. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3062. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3063. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  3064. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  3065. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  3066. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  3067. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  3068. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  3069. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  3070. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3071. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1302:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3072. 1302 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  3073. | ^~~~~~~~
  3074. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:566:16: note: in definition of macro 'uvm_up_write_mmap_sem'
  3075. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  3076. | ^~~~~~~~
  3077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1302:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3078. 1302 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  3079. | ^~~~~~~~
  3080. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:566:34: note: in definition of macro 'uvm_up_write_mmap_sem'
  3081. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  3082. | ^~~~~~~~
  3083. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:567:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion]
  3084. 567 | up_write(_sem); \
  3085. | ^~~~
  3086. | |
  3087. | int
  3088. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1302:5: note: in expansion of macro 'uvm_up_write_mmap_sem'
  3089. 1302 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  3090. | ^~~~~~~~~~~~~~~~~~~~~
  3091. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  3092. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  3093. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  3094. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  3095. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  3096. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  3097. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3098. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3099. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  3100. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3101. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  3102. 152 | extern void up_write(struct rw_semaphore *sem);
  3103. | ~~~~~~~~~~~~~~~~~~~~~^~~
  3104. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  3105. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  3106. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  3107. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  3108. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3109. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1320:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3110. 1320 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  3111. | ^~~~~~~~
  3112. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:566:16: note: in definition of macro 'uvm_up_write_mmap_sem'
  3113. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  3114. | ^~~~~~~~
  3115. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1320:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3116. 1320 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  3117. | ^~~~~~~~
  3118. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:566:34: note: in definition of macro 'uvm_up_write_mmap_sem'
  3119. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  3120. | ^~~~~~~~
  3121. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:567:18: warning: passing argument 1 of 'up_write' makes pointer from integer without a cast [-Wint-conversion]
  3122. 567 | up_write(_sem); \
  3123. | ^~~~
  3124. | |
  3125. | int
  3126. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1320:5: note: in expansion of macro 'uvm_up_write_mmap_sem'
  3127. 1320 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  3128. | ^~~~~~~~~~~~~~~~~~~~~
  3129. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  3130. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  3131. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  3132. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  3133. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  3134. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  3135. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3136. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3137. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  3138. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3139. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:152:43: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  3140. 152 | extern void up_write(struct rw_semaphore *sem);
  3141. | ~~~~~~~~~~~~~~~~~~~~~^~~
  3142. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  3143. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  3144. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  3145. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  3146. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3147. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu_va_space':
  3148. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1407:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3149. 1407 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  3150. | ^~~~~~~~
  3151. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  3152. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  3153. | ^~~~~~~~
  3154. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1407:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3155. 1407 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  3156. | ^~~~~~~~
  3157. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  3158. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  3159. | ^~~~~~~~
  3160. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  3161. 544 | down_read(_sem); \
  3162. | ^~~~
  3163. | |
  3164. | int
  3165. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1407:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  3166. 1407 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  3167. | ^~~~~~~~~~~~~~~~~~~~~~
  3168. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  3169. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  3170. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  3171. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  3172. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  3173. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  3174. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3175. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3176. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  3177. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3178. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  3179. 125 | extern void down_read(struct rw_semaphore *sem);
  3180. | ~~~~~~~~~~~~~~~~~~~~~^~~
  3181. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  3182. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  3183. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  3184. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  3185. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3186. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1431:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3187. 1431 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  3188. | ^~~~~~~~
  3189. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  3190. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  3191. | ^~~~~~~~
  3192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1431:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3193. 1431 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  3194. | ^~~~~~~~
  3195. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  3196. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  3197. | ^~~~~~~~
  3198. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  3199. 549 | up_read(_sem); \
  3200. | ^~~~
  3201. | |
  3202. | int
  3203. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:1431:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  3204. 1431 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  3205. | ^~~~~~~~~~~~~~~~~~~~
  3206. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  3207. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  3208. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  3209. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  3210. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  3211. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  3212. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3213. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3214. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  3215. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  3216. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  3217. 147 | extern void up_read(struct rw_semaphore *sem);
  3218. | ~~~~~~~~~~~~~~~~~~~~~^~~
  3219. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  3220. 578 | void *ptr = ioremap_nocache(phys, size);
  3221. | ^~~~~~~~~~~~~~~
  3222. | ioremap_cache
  3223. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  3224. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  3225. 327 | getrawmonotonic(&ts);
  3226. | ^~~~~~~~~~~~~~~
  3227. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  3228. 325 | struct timespec ts = {0};
  3229. | ^~
  3230. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  3231. 327 | getrawmonotonic(&ts);
  3232. | ^~~~~~~~~~~~~~~
  3233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  3234. 325 | struct timespec ts = {0};
  3235. | ^~
  3236. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3237. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  3238. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  3239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  3240. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  3241. 325 | struct timespec ts = {0};
  3242. | ^~~~~~~~
  3243. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  3244. 325 | struct timespec ts = {0};
  3245. | ^
  3246. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  3247. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  3248. 325 | struct timespec ts = {0};
  3249. | ^~
  3250. cc1: some warnings being treated as errors
  3251. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.o] Error 1
  3252. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.o
  3253. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  3254. 327 | getrawmonotonic(&ts);
  3255. | ^~~~~~~~~~~~~~~
  3256. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  3257. 325 | struct timespec ts = {0};
  3258. | ^~
  3259. cc1: some warnings being treated as errors
  3260. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  3261. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3262. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  3263. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  3264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  3265. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  3266. | ^~~~~~~
  3267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  3268. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  3269. 39 | *tv = (struct timeval) {
  3270. | ^~~
  3271. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  3272. 40 | .tv_sec = now.tv_sec,
  3273. | ^~~~~~
  3274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  3275. 40 | .tv_sec = now.tv_sec,
  3276. | ^~~
  3277. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  3278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  3279. 41 | .tv_usec = now.tv_nsec/1000,
  3280. | ^~~~~~~
  3281. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  3282. 41 | .tv_usec = now.tv_nsec/1000,
  3283. | ^~~
  3284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  3285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  3286. 39 | *tv = (struct timeval) {
  3287. | ^
  3288. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.o] Error 1
  3289. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.o
  3290. cc1: some warnings being treated as errors
  3291. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.o] Error 1
  3292. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  3293. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3294. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  3295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  3296. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  3297. | ^~~~~~~
  3298. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  3299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  3300. 39 | *tv = (struct timeval) {
  3301. | ^~~
  3302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  3303. 40 | .tv_sec = now.tv_sec,
  3304. | ^~~~~~
  3305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  3306. 40 | .tv_sec = now.tv_sec,
  3307. | ^~~
  3308. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  3309. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  3310. 41 | .tv_usec = now.tv_nsec/1000,
  3311. | ^~~~~~~
  3312. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  3313. 41 | .tv_usec = now.tv_nsec/1000,
  3314. | ^~~
  3315. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  3316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  3317. 39 | *tv = (struct timeval) {
  3318. | ^
  3319. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.o
  3320. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  3321. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:30,
  3322. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3323. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_sysmem_user':
  3324. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:484:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3325. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3326. | ^~~~~~~~
  3327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  3328. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  3329. | ^~~~~~~~
  3330. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:484:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  3331. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3332. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  3333. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:484:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3334. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3335. | ^~~~~~~~
  3336. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  3337. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  3338. | ^~~~~~~~
  3339. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:484:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  3340. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3341. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  3342. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  3343. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  3344. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3345. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  3346. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  3347. | ^~~~
  3348. | |
  3349. | int
  3350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  3351. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  3352. | ^~~~
  3353. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  3354. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  3355. | ^~~~~~~~~~~~~~~
  3356. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  3357. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  3358. | ^~~~~~~~~~
  3359. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  3360. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  3361. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3362. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:484:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  3363. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3364. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  3365. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  3366. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  3367. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  3368. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  3369. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  3370. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  3371. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3372. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3373. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  3374. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3375. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  3376. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  3377. | ~~~~~~~~~~~~~~~~~~~~~^~~
  3378. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  3379. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  3380. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  3382. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  3383. | ^~~~
  3384. | |
  3385. | int
  3386. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  3387. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  3388. | ^~~~
  3389. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  3390. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  3391. | ^~~~~~~~~~~~~~~
  3392. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  3393. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  3394. | ^~~~~~~~~~
  3395. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  3396. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  3397. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:484:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  3399. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3400. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  3401. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  3402. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:30,
  3403. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  3405. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  3406. | ~~~~~~^~~~
  3407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_vidmem_user':
  3408. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:508:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3409. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3410. | ^~~~~~~~
  3411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  3412. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  3413. | ^~~~~~~~
  3414. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:508:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  3415. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3416. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  3417. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:508:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  3418. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3419. | ^~~~~~~~
  3420. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  3421. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  3422. | ^~~~~~~~
  3423. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:508:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  3424. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3425. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  3426. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  3427. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  3428. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3429. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  3430. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  3431. | ^~~~
  3432. | |
  3433. | int
  3434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  3435. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  3436. | ^~~~
  3437. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  3438. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  3439. | ^~~~~~~~~~~~~~~
  3440. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  3441. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  3442. | ^~~~~~~~~~
  3443. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  3444. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  3445. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3446. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:508:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  3447. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3448. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  3449. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  3450. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  3451. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  3452. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  3453. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  3454. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  3455. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3456. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  3457. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  3458. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3459. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  3460. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  3461. | ~~~~~~~~~~~~~~~~~~~~~^~~
  3462. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  3463. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  3464. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3465. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  3466. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  3467. | ^~~~
  3468. | |
  3469. | int
  3470. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  3471. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  3472. | ^~~~
  3473. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  3474. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  3475. | ^~~~~~~~~~~~~~~
  3476. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  3477. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  3478. | ^~~~~~~~~~
  3479. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  3480. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  3481. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:508:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  3483. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  3484. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  3485. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  3486. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:30,
  3487. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  3488. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  3489. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  3490. | ~~~~~~^~~~
  3491. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  3492. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  3493. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  3494. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  3495. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  3496. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  3497. | ^~~~~~~
  3498. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  3499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  3500. 39 | *tv = (struct timeval) {
  3501. | ^~~
  3502. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  3503. 40 | .tv_sec = now.tv_sec,
  3504. | ^~~~~~
  3505. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  3506. 40 | .tv_sec = now.tv_sec,
  3507. | ^~~
  3508. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  3509. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  3510. 41 | .tv_usec = now.tv_nsec/1000,
  3511. | ^~~~~~~
  3512. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  3513. 41 | .tv_usec = now.tv_nsec/1000,
  3514. | ^~~
  3515. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  3516. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  3517. 39 | *tv = (struct timeval) {
  3518. | ^
  3519. cc1: some warnings being treated as errors
  3520. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.o] Error 1
  3521. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.o
  3522. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  3523. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3524. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  3525. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  3526. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  3527. | ^~~~~~~
  3528. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  3529. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  3530. 39 | *tv = (struct timeval) {
  3531. | ^~~
  3532. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  3533. 40 | .tv_sec = now.tv_sec,
  3534. | ^~~~~~
  3535. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  3536. 40 | .tv_sec = now.tv_sec,
  3537. | ^~~
  3538. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  3539. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  3540. 41 | .tv_usec = now.tv_nsec/1000,
  3541. | ^~~~~~~
  3542. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  3543. 41 | .tv_usec = now.tv_nsec/1000,
  3544. | ^~~
  3545. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  3546. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  3547. 39 | *tv = (struct timeval) {
  3548. | ^
  3549. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  3550. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  3551. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  3552. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  3553. | ^~~~~~~
  3554. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  3555. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  3556. 39 | *tv = (struct timeval) {
  3557. | ^~~
  3558. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  3559. 40 | .tv_sec = now.tv_sec,
  3560. | ^~~~~~
  3561. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  3562. 40 | .tv_sec = now.tv_sec,
  3563. | ^~~
  3564. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  3565. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  3566. 41 | .tv_usec = now.tv_nsec/1000,
  3567. | ^~~~~~~
  3568. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  3569. 41 | .tv_usec = now.tv_nsec/1000,
  3570. | ^~~
  3571. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  3572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  3573. 39 | *tv = (struct timeval) {
  3574. | ^
  3575. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3576. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3578. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3579. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3580. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  3581. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  3582. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  3583. | ^~~~~~~~~
  3584. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  3585. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3586. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3587. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3589. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3590. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  3591. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  3592. | ^~~~~~~~~
  3593. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3594. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3595. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3596. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3597. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3598. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  3599. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  3600. 578 | void *ptr = ioremap_nocache(phys, size);
  3601. | ^~~~~~~~~~~~~~~
  3602. | ioremap_cache
  3603. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  3604. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3605. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3606. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  3607. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  3608. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  3609. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  3610. | ^~~~~~~~~
  3611. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  3612. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3613. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3614. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  3615. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  3616. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  3617. | ^~~~~~~~~
  3618. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3619. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3620. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3621. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3622. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  3623. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  3624. 325 | struct timespec ts = {0};
  3625. | ^~~~~~~~
  3626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  3627. 325 | struct timespec ts = {0};
  3628. | ^
  3629. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  3630. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  3631. 325 | struct timespec ts = {0};
  3632. | ^~
  3633. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3634. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3635. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  3636. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  3637. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  3638. 578 | void *ptr = ioremap_nocache(phys, size);
  3639. | ^~~~~~~~~~~~~~~
  3640. | ioremap_cache
  3641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  3642. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  3643. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  3644. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  3645. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  3646. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  3647. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  3648. | ^~~~~~~
  3649. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  3650. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  3651. 39 | *tv = (struct timeval) {
  3652. | ^~~
  3653. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  3654. 40 | .tv_sec = now.tv_sec,
  3655. | ^~~~~~
  3656. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  3657. 40 | .tv_sec = now.tv_sec,
  3658. | ^~~
  3659. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3660. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  3661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  3662. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  3663. 325 | struct timespec ts = {0};
  3664. | ^~~~~~~~
  3665. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  3666. 325 | struct timespec ts = {0};
  3667. | ^
  3668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  3669. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  3670. 325 | struct timespec ts = {0};
  3671. | ^~
  3672. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  3673. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  3674. 41 | .tv_usec = now.tv_nsec/1000,
  3675. | ^~~~~~~
  3676. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  3677. 41 | .tv_usec = now.tv_nsec/1000,
  3678. | ^~~
  3679. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  3680. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  3681. 39 | *tv = (struct timeval) {
  3682. | ^
  3683. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  3684. 327 | getrawmonotonic(&ts);
  3685. | ^~~~~~~~~~~~~~~
  3686. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  3687. 325 | struct timespec ts = {0};
  3688. | ^~
  3689. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  3690. 327 | getrawmonotonic(&ts);
  3691. | ^~~~~~~~~~~~~~~
  3692. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  3693. 325 | struct timespec ts = {0};
  3694. | ^~
  3695. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3696. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3697. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  3698. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  3699. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  3700. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  3701. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  3702. | ^~~~~~~~~
  3703. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  3704. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3705. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3706. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  3707. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  3708. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  3709. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  3710. | ^~~~~~~~~
  3711. cc1: some warnings being treated as errors
  3712. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  3713. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3714. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3715. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3716. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3717. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c: In function 'manager_create_procfs':
  3719. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.o] Error 1
  3720. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  3721. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  3722. | ^~~~
  3723. | |
  3724. | const struct file_operations *
  3725. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  3726. 39 | proc_create_data(name, mode, parent, fops, __data)
  3727. | ^~~~
  3728. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:1212:38: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  3729. 1212 | manager->procfs.pending_pushes = NV_CREATE_PROC_FILE("pending_pushes", gpu->procfs.dir, manager_pending_pushes, (void *)manager);
  3730. | ^~~~~~~~~~~~~~~~~~~
  3731. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  3732. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  3733. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3734. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3735. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3737. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3738. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  3739. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  3740. | ^~~~~~~~~~~~~~~~
  3741. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  3742. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3743. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3744. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3745. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3746. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3747. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c: In function 'channel_create_procfs':
  3748. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  3749. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  3750. | ^~~~
  3751. | |
  3752. | const struct file_operations *
  3753. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  3754. 39 | proc_create_data(name, mode, parent, fops, __data)
  3755. | ^~~~
  3756. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:1253:28: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  3757. 1253 | channel->procfs.info = NV_CREATE_PROC_FILE("info", channel->procfs.dir, channel_info, (void *)channel);
  3758. | ^~~~~~~~~~~~~~~~~~~
  3759. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3760. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3761. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  3762. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  3763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  3764. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  3765. 578 | void *ptr = ioremap_nocache(phys, size);
  3766. | ^~~~~~~~~~~~~~~
  3767. | ioremap_cache
  3768. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  3769. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  3770. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  3771. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3772. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3773. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3774. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3775. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3776. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  3777. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  3778. | ^~~~~~~~~~~~~~~~
  3779. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  3780. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3781. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3782. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3783. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3784. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3785. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  3786. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  3787. | ^~~~
  3788. | |
  3789. | const struct file_operations *
  3790. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  3791. 39 | proc_create_data(name, mode, parent, fops, __data)
  3792. | ^~~~
  3793. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:1257:30: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  3794. 1257 | channel->procfs.pushes = NV_CREATE_PROC_FILE("pushes", channel->procfs.dir, channel_pushes, (void *)channel);
  3795. | ^~~~~~~~~~~~~~~~~~~
  3796. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o
  3797. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  3798. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  3799. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3800. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3801. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3802. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3803. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3804. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  3805. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  3806. | ^~~~~~~~~~~~~~~~
  3807. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  3808. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  3809. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  3810. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  3811. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  3812. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  3813. 331 | }
  3814. | ^
  3815. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3816. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  3817. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  3818. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  3819. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  3820. 325 | struct timespec ts = {0};
  3821. | ^~~~~~~~
  3822. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  3823. 325 | struct timespec ts = {0};
  3824. | ^
  3825. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  3826. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  3827. 325 | struct timespec ts = {0};
  3828. | ^~
  3829. cc1: some warnings being treated as errors
  3830. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.o] Error 1
  3831. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o
  3832. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3833. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3834. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  3835. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  3836. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  3837. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  3838. | ^~~~~~~~~
  3839. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  3840. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3841. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3842. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  3843. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  3844. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  3845. | ^~~~~~~~~
  3846. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  3847. 327 | getrawmonotonic(&ts);
  3848. | ^~~~~~~~~~~~~~~
  3849. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  3850. 325 | struct timespec ts = {0};
  3851. | ^~
  3852. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3853. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3854. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  3855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  3856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  3857. 578 | void *ptr = ioremap_nocache(phys, size);
  3858. | ^~~~~~~~~~~~~~~
  3859. | ioremap_cache
  3860. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  3861. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3862. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  3863. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  3864. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  3865. 325 | struct timespec ts = {0};
  3866. | ^~~~~~~~
  3867. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  3868. 325 | struct timespec ts = {0};
  3869. | ^
  3870. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  3871. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  3872. 325 | struct timespec ts = {0};
  3873. | ^~
  3874. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3875. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  3876. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  3877. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  3878. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  3879. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  3880. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  3881. | ^~~~~~~~~
  3882. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  3883. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3884. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  3885. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  3886. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  3887. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  3888. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  3889. | ^~~~~~~~~
  3890. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  3891. 327 | getrawmonotonic(&ts);
  3892. | ^~~~~~~~~~~~~~~
  3893. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  3894. 325 | struct timespec ts = {0};
  3895. | ^~
  3896. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3897. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  3898. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  3899. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  3900. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  3901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  3902. 578 | void *ptr = ioremap_nocache(phys, size);
  3903. | ^~~~~~~~~~~~~~~
  3904. | ioremap_cache
  3905. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  3906. cc1: some warnings being treated as errors
  3907. cc1: some warnings being treated as errors
  3908. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.o] Error 1
  3909. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.o
  3910. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.o] Error 1
  3911. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  3912. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  3913. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  3914. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  3915. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  3916. 325 | struct timespec ts = {0};
  3917. | ^~~~~~~~
  3918. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  3919. 325 | struct timespec ts = {0};
  3920. | ^
  3921. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  3922. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  3923. 325 | struct timespec ts = {0};
  3924. | ^~
  3925. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.o
  3926. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  3927. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  3928. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  3929. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  3930. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  3931. | ^~~~~~~
  3932. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  3933. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  3934. 39 | *tv = (struct timeval) {
  3935. | ^~~
  3936. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  3937. 40 | .tv_sec = now.tv_sec,
  3938. | ^~~~~~
  3939. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  3940. 40 | .tv_sec = now.tv_sec,
  3941. | ^~~
  3942. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  3943. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  3944. 41 | .tv_usec = now.tv_nsec/1000,
  3945. | ^~~~~~~
  3946. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  3947. 41 | .tv_usec = now.tv_nsec/1000,
  3948. | ^~~
  3949. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  3950. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  3951. 39 | *tv = (struct timeval) {
  3952. | ^
  3953. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3954. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3955. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  3956. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  3957. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  3958. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  3959. | ^~~~~~~~~
  3960. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  3961. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3962. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3963. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  3964. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  3965. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  3966. | ^~~~~~~~~
  3967. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3968. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  3969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  3970. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  3971. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  3972. | ^~~~~~~~~
  3973. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  3974. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3975. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  3976. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  3977. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  3978. | ^~~~~~~~~
  3979. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  3980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  3981. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  3982. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  3983. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  3984. 578 | void *ptr = ioremap_nocache(phys, size);
  3985. | ^~~~~~~~~~~~~~~
  3986. | ioremap_cache
  3987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  3988. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  3989. 327 | getrawmonotonic(&ts);
  3990. | ^~~~~~~~~~~~~~~
  3991. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  3992. 325 | struct timespec ts = {0};
  3993. | ^~
  3994. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  3995. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  3996. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  3997. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  3998. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  3999. | ^~~~~~~
  4000. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  4001. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  4002. 39 | *tv = (struct timeval) {
  4003. | ^~~
  4004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  4005. 40 | .tv_sec = now.tv_sec,
  4006. | ^~~~~~
  4007. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  4008. 40 | .tv_sec = now.tv_sec,
  4009. | ^~~
  4010. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  4011. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  4012. 41 | .tv_usec = now.tv_nsec/1000,
  4013. | ^~~~~~~
  4014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  4015. 41 | .tv_usec = now.tv_nsec/1000,
  4016. | ^~~
  4017. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  4018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  4019. 39 | *tv = (struct timeval) {
  4020. | ^
  4021. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4022. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  4024. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  4025. 578 | void *ptr = ioremap_nocache(phys, size);
  4026. | ^~~~~~~~~~~~~~~
  4027. | ioremap_cache
  4028. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  4029. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  4030. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  4031. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  4032. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  4033. 325 | struct timespec ts = {0};
  4034. | ^~~~~~~~
  4035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  4036. 325 | struct timespec ts = {0};
  4037. | ^
  4038. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  4039. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  4040. 325 | struct timespec ts = {0};
  4041. | ^~
  4042. cc1: some warnings being treated as errors
  4043. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4044. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  4045. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  4046. 325 | struct timespec ts = {0};
  4047. | ^~~~~~~~
  4048. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  4049. 325 | struct timespec ts = {0};
  4050. | ^
  4051. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  4052. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  4053. 325 | struct timespec ts = {0};
  4054. | ^~
  4055. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.o] Error 1
  4056. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.o
  4057. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  4058. 327 | getrawmonotonic(&ts);
  4059. | ^~~~~~~~~~~~~~~
  4060. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  4061. 325 | struct timespec ts = {0};
  4062. | ^~
  4063. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  4064. 327 | getrawmonotonic(&ts);
  4065. | ^~~~~~~~~~~~~~~
  4066. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  4067. 325 | struct timespec ts = {0};
  4068. | ^~
  4069. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4070. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  4071. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  4072. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4073. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  4074. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  4075. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  4076. | ^~~~~~~~~
  4077. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  4078. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4079. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  4080. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  4081. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4082. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  4083. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  4084. | ^~~~~~~~~
  4085. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4086. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  4087. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  4088. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4089. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  4090. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  4091. 578 | void *ptr = ioremap_nocache(phys, size);
  4092. | ^~~~~~~~~~~~~~~
  4093. | ioremap_cache
  4094. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  4095. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  4096. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4097. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  4098. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  4099. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  4100. | ^~~~~~~
  4101. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  4102. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  4103. 39 | *tv = (struct timeval) {
  4104. | ^~~
  4105. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  4106. 40 | .tv_sec = now.tv_sec,
  4107. | ^~~~~~
  4108. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  4109. 40 | .tv_sec = now.tv_sec,
  4110. | ^~~
  4111. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  4112. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  4113. 41 | .tv_usec = now.tv_nsec/1000,
  4114. | ^~~~~~~
  4115. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  4116. 41 | .tv_usec = now.tv_nsec/1000,
  4117. | ^~~
  4118. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  4119. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  4120. 39 | *tv = (struct timeval) {
  4121. | ^
  4122. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  4123. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  4124. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4125. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  4126. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  4127. 325 | struct timespec ts = {0};
  4128. | ^~~~~~~~
  4129. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  4130. 325 | struct timespec ts = {0};
  4131. | ^
  4132. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  4133. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  4134. 325 | struct timespec ts = {0};
  4135. | ^~
  4136. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  4137. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  4138. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  4139. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  4140. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  4141. | ^~~~~~~
  4142. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  4143. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  4144. 39 | *tv = (struct timeval) {
  4145. | ^~~
  4146. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  4147. 40 | .tv_sec = now.tv_sec,
  4148. | ^~~~~~
  4149. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  4150. 40 | .tv_sec = now.tv_sec,
  4151. | ^~~
  4152. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  4153. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  4154. 41 | .tv_usec = now.tv_nsec/1000,
  4155. | ^~~~~~~
  4156. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  4157. 41 | .tv_usec = now.tv_nsec/1000,
  4158. | ^~~
  4159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  4160. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  4161. 39 | *tv = (struct timeval) {
  4162. | ^
  4163. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  4164. 327 | getrawmonotonic(&ts);
  4165. | ^~~~~~~~~~~~~~~
  4166. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  4167. 325 | struct timespec ts = {0};
  4168. | ^~
  4169. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  4170. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  4171. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  4172. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  4173. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  4174. | ^~~~~~~
  4175. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  4176. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  4177. 39 | *tv = (struct timeval) {
  4178. | ^~~
  4179. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  4180. 40 | .tv_sec = now.tv_sec,
  4181. | ^~~~~~
  4182. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  4183. 40 | .tv_sec = now.tv_sec,
  4184. | ^~~
  4185. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  4186. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  4187. 41 | .tv_usec = now.tv_nsec/1000,
  4188. | ^~~~~~~
  4189. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  4190. 41 | .tv_usec = now.tv_nsec/1000,
  4191. | ^~~
  4192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  4193. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  4194. 39 | *tv = (struct timeval) {
  4195. | ^
  4196. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  4197. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:27:
  4198. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  4199. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4200. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4201. | ^~~~~~~~
  4202. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  4203. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  4204. | ^~~~~~~~
  4205. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4206. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4207. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4208. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4209. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4210. | ^~~~~~~~
  4211. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  4212. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  4213. | ^~~~~~~~
  4214. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4215. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4216. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4217. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  4218. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  4219. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4220. | ^~~~
  4221. | |
  4222. | int
  4223. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  4224. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  4225. | ^~~~
  4226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  4227. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  4228. | ^~~~~~~~~~~~~~~
  4229. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  4230. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4231. | ^~~~~~~~~~
  4232. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  4233. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  4234. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4235. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4236. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4237. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4238. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4239. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4240. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4241. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4242. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4243. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4244. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4245. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  4246. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  4247. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4248. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  4249. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4250. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  4251. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  4252. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4253. | ^~~~
  4254. | |
  4255. | int
  4256. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  4257. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  4258. | ^~~~
  4259. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  4260. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  4261. | ^~~~~~~~~~~~~~~
  4262. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  4263. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4264. | ^~~~~~~~~~
  4265. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  4266. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  4267. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4268. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4269. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4270. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4271. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  4272. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:27:
  4273. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  4274. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  4275. | ~~~~~~^~~~
  4276. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  4277. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  4278. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  4279. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  4280. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4281. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4282. | ^~~~~~~~
  4283. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  4284. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  4285. | ^~~~~~~~
  4286. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4287. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4288. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4289. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4290. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4291. | ^~~~~~~~
  4292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  4293. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  4294. | ^~~~~~~~
  4295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4296. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4297. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4298. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:25:
  4299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  4300. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4301. | ^~~~
  4302. | |
  4303. | int
  4304. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  4305. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  4306. | ^~~~
  4307. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  4308. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  4309. | ^~~~~~~~~~~~~~~
  4310. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  4311. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4312. | ^~~~~~~~~~
  4313. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  4314. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  4315. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4317. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4318. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4319. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4320. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4321. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4322. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4323. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4324. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4325. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4326. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4327. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4328. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  4329. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4330. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:25:
  4331. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  4332. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4333. | ^~~~
  4334. | |
  4335. | int
  4336. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  4337. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  4338. | ^~~~
  4339. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  4340. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  4341. | ^~~~~~~~~~~~~~~
  4342. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  4343. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4344. | ^~~~~~~~~~
  4345. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  4346. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  4347. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4348. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4349. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4350. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4351. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  4352. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  4353. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  4354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  4355. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  4356. | ~~~~~~^~~~
  4357. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c: In function 'uvm8_test_va_range_info':
  4358. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:1766:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4359. 1766 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4360. | ^~~~~~~~
  4361. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  4362. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  4363. | ^~~~~~~~
  4364. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:1766:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4365. 1766 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4366. | ^~~~~~~~
  4367. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  4368. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  4369. | ^~~~~~~~
  4370. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  4371. 544 | down_read(_sem); \
  4372. | ^~~~
  4373. | |
  4374. | int
  4375. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:1766:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  4376. 1766 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4377. | ^~~~~~~~~~~~~~~~~~~~~~
  4378. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4379. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4380. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4381. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4382. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4383. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4384. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4385. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  4386. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  4387. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4388. 125 | extern void down_read(struct rw_semaphore *sem);
  4389. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4390. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  4391. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:27:
  4392. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:1827:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4393. 1827 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4394. | ^~~~~~~~
  4395. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  4396. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  4397. | ^~~~~~~~
  4398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:1827:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4399. 1827 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4400. | ^~~~~~~~
  4401. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  4402. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  4403. | ^~~~~~~~
  4404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  4405. 549 | up_read(_sem); \
  4406. | ^~~~
  4407. | |
  4408. | int
  4409. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:1827:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  4410. 1827 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4411. | ^~~~~~~~~~~~~~~~~~~~
  4412. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4413. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4414. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4415. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4416. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4417. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4418. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4419. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  4420. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  4421. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4422. 147 | extern void up_read(struct rw_semaphore *sem);
  4423. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4424. cc1: some warnings being treated as errors
  4425. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.o] Error 1
  4426. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.o
  4427. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:30,
  4428. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4429. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  4430. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4431. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4432. | ^~~~~~~~
  4433. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  4434. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  4435. | ^~~~~~~~
  4436. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4437. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4438. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4440. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4441. | ^~~~~~~~
  4442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  4443. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  4444. | ^~~~~~~~
  4445. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4446. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4447. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4448. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  4449. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:30,
  4450. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4451. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  4452. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4453. | ^~~~
  4454. | |
  4455. | int
  4456. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  4457. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  4458. | ^~~~
  4459. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  4460. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  4461. | ^~~~~~~~~~~~~~~
  4462. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  4463. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4464. | ^~~~~~~~~~
  4465. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  4466. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  4467. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4468. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4469. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4470. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4471. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4472. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4473. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4474. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4475. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4476. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4477. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4478. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  4479. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  4480. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4481. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4482. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  4483. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4484. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  4485. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:30,
  4486. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4487. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  4488. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4489. | ^~~~
  4490. | |
  4491. | int
  4492. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  4493. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  4494. | ^~~~
  4495. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  4496. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  4497. | ^~~~~~~~~~~~~~~
  4498. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  4499. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4500. | ^~~~~~~~~~
  4501. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  4502. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  4503. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4504. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4505. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4506. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4507. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c: In function 'block_map_cpu_page_to':
  4508. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:30,
  4509. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  4510. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  4511. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  4512. | ~~~~~~^~~~
  4513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:6420:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4514. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4515. | ^~~~~~~~
  4516. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  4517. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  4518. | ^~~~~~~~
  4519. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:6420:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4520. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4521. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4522. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:6420:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4523. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4524. | ^~~~~~~~
  4525. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  4526. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  4527. | ^~~~~~~~
  4528. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:6420:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4529. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4530. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4531. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:25:
  4532. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  4533. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4534. | ^~~~
  4535. | |
  4536. | int
  4537. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  4538. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  4539. | ^~~~
  4540. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  4541. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  4542. | ^~~~~~~~~~~~~~~
  4543. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  4544. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4545. | ^~~~~~~~~~
  4546. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  4547. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  4548. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4549. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:6420:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4550. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4551. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4552. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4553. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4554. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4555. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4556. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4557. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4558. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4559. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4560. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4561. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  4562. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4563. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:25:
  4564. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  4565. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4566. | ^~~~
  4567. | |
  4568. | int
  4569. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  4570. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  4571. | ^~~~
  4572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  4573. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  4574. | ^~~~~~~~~~~~~~~
  4575. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  4576. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  4577. | ^~~~~~~~~~
  4578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  4579. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  4580. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4581. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:6420:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  4582. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  4583. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  4584. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  4585. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  4586. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  4587. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  4588. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  4589. | ~~~~~~^~~~
  4590. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4591. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4592. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  4593. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  4594. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  4595. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  4596. | ^~~~~~~~~
  4597. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  4598. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4599. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4600. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  4601. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  4602. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  4603. | ^~~~~~~~~
  4604. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4605. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4606. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  4607. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  4608. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4609. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4610. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  4611. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  4612. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  4613. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  4614. | ^~~~~~~~~
  4615. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  4616. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4617. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4618. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  4619. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  4620. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  4621. | ^~~~~~~~~
  4622. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  4623. 578 | void *ptr = ioremap_nocache(phys, size);
  4624. | ^~~~~~~~~~~~~~~
  4625. | ioremap_cache
  4626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  4627. cc1: some warnings being treated as errors
  4628. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4629. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4630. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  4631. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  4632. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  4633. 578 | void *ptr = ioremap_nocache(phys, size);
  4634. | ^~~~~~~~~~~~~~~
  4635. | ioremap_cache
  4636. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  4637. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.o] Error 1
  4638. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4639. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  4640. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  4641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  4642. 325 | struct timespec ts = {0};
  4643. | ^~~~~~~~
  4644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  4645. 325 | struct timespec ts = {0};
  4646. | ^
  4647. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  4648. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.o
  4649. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  4650. 325 | struct timespec ts = {0};
  4651. | ^~
  4652. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4653. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  4654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  4655. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  4656. 325 | struct timespec ts = {0};
  4657. | ^~~~~~~~
  4658. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  4659. 325 | struct timespec ts = {0};
  4660. | ^
  4661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  4662. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  4663. 325 | struct timespec ts = {0};
  4664. | ^~
  4665. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  4666. 327 | getrawmonotonic(&ts);
  4667. | ^~~~~~~~~~~~~~~
  4668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  4669. 325 | struct timespec ts = {0};
  4670. | ^~
  4671. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  4672. 327 | getrawmonotonic(&ts);
  4673. | ^~~~~~~~~~~~~~~
  4674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  4675. 325 | struct timespec ts = {0};
  4676. | ^~
  4677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_change_pte_mapping':
  4678. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10482:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4679. 10482 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4680. | ^~~~~~~~
  4681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  4682. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  4683. | ^~~~~~~~
  4684. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10482:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4685. 10482 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4686. | ^~~~~~~~
  4687. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  4688. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  4689. | ^~~~~~~~
  4690. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  4691. 544 | down_read(_sem); \
  4692. | ^~~~
  4693. | |
  4694. | int
  4695. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10482:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  4696. 10482 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4697. | ^~~~~~~~~~~~~~~~~~~~~~
  4698. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4699. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4700. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4701. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4702. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4703. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4704. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4705. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4706. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4707. 125 | extern void down_read(struct rw_semaphore *sem);
  4708. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4709. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  4710. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  4711. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  4712. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10565:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4713. 10565 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4714. | ^~~~~~~~
  4715. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  4716. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  4717. | ^~~~~~~~
  4718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10565:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4719. 10565 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4720. | ^~~~~~~~
  4721. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  4722. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  4723. | ^~~~~~~~
  4724. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  4725. 549 | up_read(_sem); \
  4726. | ^~~~
  4727. | |
  4728. | int
  4729. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10565:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  4730. 10565 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4731. | ^~~~~~~~~~~~~~~~~~~~
  4732. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4733. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4734. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4735. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4737. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4738. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4739. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4740. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4741. 147 | extern void up_read(struct rw_semaphore *sem);
  4742. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4743. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  4744. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  4745. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  4746. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_block_info':
  4747. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10580:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4748. 10580 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4749. | ^~~~~~~~
  4750. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  4751. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  4752. | ^~~~~~~~
  4753. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10580:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4754. 10580 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4755. | ^~~~~~~~
  4756. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  4757. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  4758. | ^~~~~~~~
  4759. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4760. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4761. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  4762. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  4763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  4764. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  4765. | ^~~~~~~~~
  4766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  4767. 544 | down_read(_sem); \
  4768. | ^~~~
  4769. | |
  4770. | int
  4771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10580:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  4772. 10580 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4773. | ^~~~~~~~~~~~~~~~~~~~~~
  4774. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  4775. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4776. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4777. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  4778. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  4779. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  4780. | ^~~~~~~~~
  4781. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4782. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4783. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4784. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4785. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4786. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4787. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4788. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4789. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4790. 125 | extern void down_read(struct rw_semaphore *sem);
  4791. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4792. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  4793. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  4794. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  4795. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10598:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4796. 10598 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4797. | ^~~~~~~~
  4798. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  4799. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  4800. | ^~~~~~~~
  4801. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10598:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4802. 10598 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4803. | ^~~~~~~~
  4804. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  4805. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  4806. | ^~~~~~~~
  4807. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  4808. 549 | up_read(_sem); \
  4809. | ^~~~
  4810. | |
  4811. | int
  4812. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10598:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  4813. 10598 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4814. | ^~~~~~~~~~~~~~~~~~~~
  4815. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4816. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4817. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4818. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4819. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4820. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4821. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4822. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4823. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4824. 147 | extern void up_read(struct rw_semaphore *sem);
  4825. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4826. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  4827. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  4828. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  4829. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_residency_info':
  4830. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  4831. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  4832. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  4833. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  4834. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  4835. | ^~~~~~~
  4836. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  4837. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  4838. 39 | *tv = (struct timeval) {
  4839. | ^~~
  4840. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  4841. 40 | .tv_sec = now.tv_sec,
  4842. | ^~~~~~
  4843. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  4844. 40 | .tv_sec = now.tv_sec,
  4845. | ^~~
  4846. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  4847. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  4848. 41 | .tv_usec = now.tv_nsec/1000,
  4849. | ^~~~~~~
  4850. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  4851. 41 | .tv_usec = now.tv_nsec/1000,
  4852. | ^~~
  4853. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  4854. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  4855. 39 | *tv = (struct timeval) {
  4856. | ^
  4857. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10614:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4858. 10614 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4859. | ^~~~~~~~
  4860. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  4861. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  4862. | ^~~~~~~~
  4863. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10614:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4864. 10614 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4865. | ^~~~~~~~
  4866. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  4867. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  4868. | ^~~~~~~~
  4869. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  4870. 544 | down_read(_sem); \
  4871. | ^~~~
  4872. | |
  4873. | int
  4874. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10614:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  4875. 10614 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  4876. | ^~~~~~~~~~~~~~~~~~~~~~
  4877. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4878. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4879. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4880. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4881. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4882. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4883. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4884. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4885. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4886. 125 | extern void down_read(struct rw_semaphore *sem);
  4887. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4888. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4889. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4890. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  4891. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  4892. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  4893. 578 | void *ptr = ioremap_nocache(phys, size);
  4894. | ^~~~~~~~~~~~~~~
  4895. | ioremap_cache
  4896. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  4897. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  4898. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  4899. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  4900. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10739:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4901. 10739 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4902. | ^~~~~~~~
  4903. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  4904. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  4905. | ^~~~~~~~
  4906. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10739:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  4907. 10739 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4908. | ^~~~~~~~
  4909. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  4910. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  4911. | ^~~~~~~~
  4912. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  4913. 549 | up_read(_sem); \
  4914. | ^~~~
  4915. | |
  4916. | int
  4917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:10739:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  4918. 10739 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  4919. | ^~~~~~~~~~~~~~~~~~~~
  4920. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  4921. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  4922. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  4923. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  4924. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  4925. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  4926. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4927. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  4928. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  4929. 147 | extern void up_read(struct rw_semaphore *sem);
  4930. | ~~~~~~~~~~~~~~~~~~~~~^~~
  4931. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4932. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  4933. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  4934. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  4935. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  4936. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  4937. | ^~~~~~~~~
  4938. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  4939. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4940. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  4941. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  4942. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  4943. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  4944. | ^~~~~~~~~
  4945. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  4946. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  4947. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  4948. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  4949. 325 | struct timespec ts = {0};
  4950. | ^~~~~~~~
  4951. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  4952. 325 | struct timespec ts = {0};
  4953. | ^
  4954. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  4955. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  4956. 325 | struct timespec ts = {0};
  4957. | ^~
  4958. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  4959. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  4960. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  4961. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  4962. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  4963. 578 | void *ptr = ioremap_nocache(phys, size);
  4964. | ^~~~~~~~~~~~~~~
  4965. | ioremap_cache
  4966. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  4967. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  4968. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  4969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  4970. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  4971. 325 | struct timespec ts = {0};
  4972. | ^~~~~~~~
  4973. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  4974. 325 | struct timespec ts = {0};
  4975. | ^
  4976. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  4977. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  4978. 325 | struct timespec ts = {0};
  4979. | ^~
  4980. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  4981. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  4982. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  4983. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  4984. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  4985. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  4986. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  4987. | ^~~~~~~
  4988. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  4989. 327 | getrawmonotonic(&ts);
  4990. | ^~~~~~~~~~~~~~~
  4991. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  4992. 325 | struct timespec ts = {0};
  4993. | ^~
  4994. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  4995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  4996. 39 | *tv = (struct timeval) {
  4997. | ^~~
  4998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  4999. 40 | .tv_sec = now.tv_sec,
  5000. | ^~~~~~
  5001. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  5002. 40 | .tv_sec = now.tv_sec,
  5003. | ^~~
  5004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  5005. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  5006. 41 | .tv_usec = now.tv_nsec/1000,
  5007. | ^~~~~~~
  5008. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  5009. 41 | .tv_usec = now.tv_nsec/1000,
  5010. | ^~~
  5011. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  5012. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  5013. 39 | *tv = (struct timeval) {
  5014. | ^
  5015. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  5016. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  5017. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  5018. 331 | }
  5019. | ^
  5020. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5021. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  5022. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  5024. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  5025. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  5026. | ^~~~~~~~~
  5027. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  5028. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5029. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  5030. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5031. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  5032. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  5033. | ^~~~~~~~~
  5034. cc1: some warnings being treated as errors
  5035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  5036. 327 | getrawmonotonic(&ts);
  5037. | ^~~~~~~~~~~~~~~
  5038. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  5039. 325 | struct timespec ts = {0};
  5040. | ^~
  5041. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.o] Error 1
  5042. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5043. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  5044. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5045. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  5046. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  5047. 578 | void *ptr = ioremap_nocache(phys, size);
  5048. | ^~~~~~~~~~~~~~~
  5049. | ioremap_cache
  5050. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  5051. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.o
  5052. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  5053. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5054. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  5055. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  5056. 325 | struct timespec ts = {0};
  5057. | ^~~~~~~~
  5058. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  5059. 325 | struct timespec ts = {0};
  5060. | ^
  5061. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  5062. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  5063. 325 | struct timespec ts = {0};
  5064. | ^~
  5065. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5066. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5067. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26:
  5068. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  5069. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5070. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5071. | ^~~~~~~~
  5072. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5073. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5074. | ^~~~~~~~
  5075. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5076. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5077. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5079. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5080. | ^~~~~~~~
  5081. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5082. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5083. | ^~~~~~~~
  5084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5085. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5086. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5087. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24:
  5088. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  5089. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5090. | ^~~~
  5091. | |
  5092. | int
  5093. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5094. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5095. | ^~~~
  5096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5097. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5098. | ^~~~~~~~~~~~~~~
  5099. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5100. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5101. | ^~~~~~~~~~
  5102. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5103. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5104. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5105. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5106. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5107. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5108. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5109. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5110. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5111. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5112. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5113. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5114. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5115. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5116. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  5117. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5118. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  5119. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5120. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5121. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5122. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  5123. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5124. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  5125. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5126. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5127. | ^~~~~~~~
  5128. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5129. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5130. | ^~~~~~~~
  5131. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5132. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5133. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5134. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5135. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5136. | ^~~~~~~~
  5137. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5138. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5139. | ^~~~~~~~
  5140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5141. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5142. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5143. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:29,
  5144. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5145. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  5146. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5147. | ^~~~
  5148. | |
  5149. | int
  5150. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5151. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5152. | ^~~~
  5153. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5154. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5155. | ^~~~~~~~~~~~~~~
  5156. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5157. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5158. | ^~~~~~~~~~
  5159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5160. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5161. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5162. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5163. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5164. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5165. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5166. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5167. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5168. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5169. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5170. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5171. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5172. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5173. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  5174. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5175. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  5176. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5177. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:29,
  5178. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5179. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  5180. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5181. | ^~~~
  5182. | |
  5183. | int
  5184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5185. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5186. | ^~~~
  5187. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5188. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5189. | ^~~~~~~~~~~~~~~
  5190. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5191. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5192. | ^~~~~~~~~~
  5193. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5194. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5195. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5196. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5197. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5198. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5199. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5200. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5201. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  5202. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5203. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  5204. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  5205. | ~~~~~~^~~~
  5206. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults':
  5207. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5208. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5209. | ^~~~~~~~
  5210. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5211. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5212. | ^~~~~~~~
  5213. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5214. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5215. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5216. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5217. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5218. | ^~~~~~~~
  5219. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5220. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5221. | ^~~~~~~~
  5222. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5223. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5224. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5225. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:29,
  5226. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5227. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  5228. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5229. | ^~~~
  5230. | |
  5231. | int
  5232. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5233. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5234. | ^~~~
  5235. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5236. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5237. | ^~~~~~~~~~~~~~~
  5238. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5239. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5240. | ^~~~~~~~~~
  5241. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5242. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5243. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5244. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5245. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5246. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5247. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5248. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5249. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5250. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5251. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5252. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5253. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5254. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5255. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  5256. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5257. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  5258. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5259. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:29,
  5260. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5261. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  5262. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5263. | ^~~~
  5264. | |
  5265. | int
  5266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5267. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5268. | ^~~~
  5269. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5270. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5271. | ^~~~~~~~~~~~~~~
  5272. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5273. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5274. | ^~~~~~~~~~
  5275. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5276. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5277. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5279. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5280. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5281. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5282. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5283. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  5284. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  5286. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  5287. | ~~~~~~^~~~
  5288. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24:
  5289. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  5290. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5291. | ^~~~
  5292. | |
  5293. | int
  5294. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5295. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5296. | ^~~~
  5297. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5298. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5299. | ^~~~~~~~~~~~~~~
  5300. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5301. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5302. | ^~~~~~~~~~
  5303. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5304. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5305. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5306. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5307. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5308. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5309. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5310. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5311. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26:
  5312. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  5313. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  5314. | ~~~~~~^~~~
  5315. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults':
  5316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5317. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5318. | ^~~~~~~~
  5319. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5320. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5321. | ^~~~~~~~
  5322. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5323. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5324. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5325. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:41: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5326. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5327. | ^~~~~~~~
  5328. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5329. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5330. | ^~~~~~~~
  5331. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5332. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5333. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5334. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24:
  5335. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  5336. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5337. | ^~~~
  5338. | |
  5339. | int
  5340. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5341. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5342. | ^~~~
  5343. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5344. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5345. | ^~~~~~~~~~~~~~~
  5346. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5347. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5348. | ^~~~~~~~~~
  5349. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5350. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5351. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5352. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5353. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5354. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5355. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5356. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5357. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5358. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5359. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5360. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5361. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5362. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5363. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  5364. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5365. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  5366. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5367. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24:
  5368. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  5369. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5370. | ^~~~
  5371. | |
  5372. | int
  5373. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5374. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5375. | ^~~~
  5376. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5377. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5378. | ^~~~~~~~~~~~~~~
  5379. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5380. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5381. | ^~~~~~~~~~
  5382. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5383. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5384. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5385. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h:42:9: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5386. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  5387. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5388. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5389. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5390. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26:
  5391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  5392. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  5393. | ~~~~~~^~~~
  5394. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c: In function 'service_fault':
  5395. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:506:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5396. 506 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5397. | ^~~~~~~~
  5398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  5399. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  5400. | ^~~~~~~~
  5401. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:506:50: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5402. 506 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5403. | ^~~~~~~~
  5404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  5405. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  5406. | ^~~~~~~~
  5407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  5408. 544 | down_read(_sem); \
  5409. | ^~~~
  5410. | |
  5411. | int
  5412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:506:9: note: in expansion of macro 'uvm_down_read_mmap_sem'
  5413. 506 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5414. | ^~~~~~~~~~~~~~~~~~~~~~
  5415. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5416. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5417. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5418. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5419. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5420. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5421. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5422. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5423. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  5424. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5425. 125 | extern void down_read(struct rw_semaphore *sem);
  5426. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5427. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5428. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5429. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26:
  5430. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:557:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5431. 557 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5432. | ^~~~~~~~
  5433. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  5434. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  5435. | ^~~~~~~~
  5436. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:557:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5437. 557 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5438. | ^~~~~~~~
  5439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  5440. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  5441. | ^~~~~~~~
  5442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  5443. 549 | up_read(_sem); \
  5444. | ^~~~
  5445. | |
  5446. | int
  5447. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:557:9: note: in expansion of macro 'uvm_up_read_mmap_sem'
  5448. 557 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5449. | ^~~~~~~~~~~~~~~~~~~~
  5450. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5451. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5452. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5453. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5454. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5455. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5456. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5457. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5458. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  5459. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5460. 147 | extern void up_read(struct rw_semaphore *sem);
  5461. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5462. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  5463. 327 | getrawmonotonic(&ts);
  5464. | ^~~~~~~~~~~~~~~
  5465. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  5466. 325 | struct timespec ts = {0};
  5467. | ^~
  5468. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c: In function 'service_fault_batch':
  5469. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1433:60: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5470. 1433 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5471. | ^~~~~~~~
  5472. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  5473. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  5474. | ^~~~~~~~
  5475. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1433:60: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5476. 1433 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5477. | ^~~~~~~~
  5478. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  5479. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  5480. | ^~~~~~~~
  5481. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  5482. 549 | up_read(_sem); \
  5483. | ^~~~
  5484. | |
  5485. | int
  5486. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1433:21: note: in expansion of macro 'uvm_up_read_mmap_sem'
  5487. 1433 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5488. | ^~~~~~~~~~~~~~~~~~~~
  5489. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5490. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5491. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5492. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5493. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5494. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5495. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5496. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5497. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  5498. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5499. 147 | extern void up_read(struct rw_semaphore *sem);
  5500. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5501. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5502. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5503. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  5504. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5505. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1452:58: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5506. 1452 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5507. | ^~~~~~~~
  5508. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  5509. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  5510. | ^~~~~~~~
  5511. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1452:58: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5512. 1452 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5513. | ^~~~~~~~
  5514. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  5515. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  5516. | ^~~~~~~~
  5517. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  5518. 544 | down_read(_sem); \
  5519. | ^~~~
  5520. | |
  5521. | int
  5522. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1452:17: note: in expansion of macro 'uvm_down_read_mmap_sem'
  5523. 1452 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5524. | ^~~~~~~~~~~~~~~~~~~~~~
  5525. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5526. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5527. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5528. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5529. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5530. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5531. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5532. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5533. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  5534. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5535. 125 | extern void down_read(struct rw_semaphore *sem);
  5536. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5537. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5538. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5539. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  5540. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  5541. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1558:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5542. 1558 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5543. | ^~~~~~~~
  5544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  5545. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  5546. | ^~~~~~~~
  5547. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1558:52: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5548. 1558 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5549. | ^~~~~~~~
  5550. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  5551. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  5552. | ^~~~~~~~
  5553. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  5554. 549 | up_read(_sem); \
  5555. | ^~~~
  5556. | |
  5557. | int
  5558. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:1558:13: note: in expansion of macro 'uvm_up_read_mmap_sem'
  5559. 1558 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5560. | ^~~~~~~~~~~~~~~~~~~~
  5561. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5562. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5563. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5564. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5565. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5566. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5567. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5568. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5569. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  5570. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5571. 147 | extern void up_read(struct rw_semaphore *sem);
  5572. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5573. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5574. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  5575. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  5576. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  5577. 331 | }
  5578. | ^
  5579. cc1: some warnings being treated as errors
  5580. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o] Error 1
  5581. cc1: some warnings being treated as errors
  5582. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.o
  5583. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o] Error 1
  5584. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.o
  5585. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5586. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5587. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  5588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26:
  5589. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  5590. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5591. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5592. | ^~~~~~~~
  5593. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5594. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5595. | ^~~~~~~~
  5596. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5597. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5598. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5599. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5600. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5601. | ^~~~~~~~
  5602. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5603. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5604. | ^~~~~~~~
  5605. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5606. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5607. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5608. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.h:26,
  5609. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:25:
  5610. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  5611. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5612. | ^~~~
  5613. | |
  5614. | int
  5615. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5616. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5617. | ^~~~
  5618. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5619. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5620. | ^~~~~~~~~~~~~~~
  5621. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5622. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5623. | ^~~~~~~~~~
  5624. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5625. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5626. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5627. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5628. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5629. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5630. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5631. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5632. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5633. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5634. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5635. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5636. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5637. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5638. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  5639. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5640. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  5641. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5642. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.h:26,
  5643. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:25:
  5644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  5645. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5646. | ^~~~
  5647. | |
  5648. | int
  5649. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5650. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5651. | ^~~~
  5652. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5653. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5654. | ^~~~~~~~~~~~~~~
  5655. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5656. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5657. | ^~~~~~~~~~
  5658. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5659. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5660. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5662. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5663. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5664. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5665. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5666. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  5667. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26:
  5668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  5669. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  5670. | ~~~~~~^~~~
  5671. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  5672. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  5673. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  5674. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  5675. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  5676. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  5677. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  5678. | ^~~~~~~
  5679. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  5680. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  5681. 39 | *tv = (struct timeval) {
  5682. | ^~~
  5683. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  5684. 40 | .tv_sec = now.tv_sec,
  5685. | ^~~~~~
  5686. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  5687. 40 | .tv_sec = now.tv_sec,
  5688. | ^~~
  5689. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  5690. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  5691. 41 | .tv_usec = now.tv_nsec/1000,
  5692. | ^~~~~~~
  5693. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  5694. 41 | .tv_usec = now.tv_nsec/1000,
  5695. | ^~~
  5696. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  5697. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  5698. 39 | *tv = (struct timeval) {
  5699. | ^
  5700. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c: In function 'service_phys_single_va_block':
  5701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1183:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5702. 1183 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5703. | ^~~~~~~~
  5704. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  5705. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  5706. | ^~~~~~~~
  5707. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1183:54: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5708. 1183 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5709. | ^~~~~~~~
  5710. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  5711. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  5712. | ^~~~~~~~
  5713. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  5714. 544 | down_read(_sem); \
  5715. | ^~~~
  5716. | |
  5717. | int
  5718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1183:13: note: in expansion of macro 'uvm_down_read_mmap_sem'
  5719. 1183 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5720. | ^~~~~~~~~~~~~~~~~~~~~~
  5721. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5722. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5723. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5724. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5725. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5726. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5727. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5728. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5729. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  5730. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5731. 125 | extern void down_read(struct rw_semaphore *sem);
  5732. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5733. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  5734. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  5735. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  5736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26:
  5737. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1225:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5738. 1225 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5739. | ^~~~~~~~
  5740. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  5741. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  5742. | ^~~~~~~~
  5743. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1225:48: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5744. 1225 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5745. | ^~~~~~~~
  5746. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  5747. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  5748. | ^~~~~~~~
  5749. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  5750. 549 | up_read(_sem); \
  5751. | ^~~~
  5752. | |
  5753. | int
  5754. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:1225:9: note: in expansion of macro 'uvm_up_read_mmap_sem'
  5755. 1225 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  5756. | ^~~~~~~~~~~~~~~~~~~~
  5757. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5758. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5759. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5760. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5761. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5762. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5763. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5764. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5765. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  5766. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5767. 147 | extern void up_read(struct rw_semaphore *sem);
  5768. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5769. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  5770. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  5771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  5772. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  5773. 331 | }
  5774. | ^
  5775. cc1: some warnings being treated as errors
  5776. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.o] Error 1
  5777. cc1: some warnings being treated as errors
  5778. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.o
  5779. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.o] Error 1
  5780. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.o
  5781. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  5782. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  5784. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5785. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5786. | ^~~~~~~~
  5787. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5788. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5789. | ^~~~~~~~
  5790. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5791. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5792. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5793. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  5794. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5795. | ^~~~~~~~
  5796. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  5797. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  5798. | ^~~~~~~~
  5799. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5800. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5801. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5802. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  5803. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  5804. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5805. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  5806. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5807. | ^~~~
  5808. | |
  5809. | int
  5810. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5811. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5812. | ^~~~
  5813. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5814. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5815. | ^~~~~~~~~~~~~~~
  5816. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5817. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5818. | ^~~~~~~~~~
  5819. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5820. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5821. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5822. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5823. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5824. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5825. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  5826. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  5827. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  5828. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  5829. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  5830. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  5831. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5832. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  5833. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5834. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  5835. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  5836. | ~~~~~~~~~~~~~~~~~~~~~^~~
  5837. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  5838. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  5839. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5840. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  5841. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5842. | ^~~~
  5843. | |
  5844. | int
  5845. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  5846. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  5847. | ^~~~
  5848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  5849. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  5850. | ^~~~~~~~~~~~~~~
  5851. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  5852. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  5853. | ^~~~~~~~~~
  5854. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  5855. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  5856. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5857. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  5858. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  5859. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  5860. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  5861. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  5862. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  5863. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  5864. | ~~~~~~^~~~
  5865. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  5866. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  5867. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  5868. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  5869. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  5870. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  5871. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  5872. | ^~~~~~~
  5873. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  5874. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  5875. 39 | *tv = (struct timeval) {
  5876. | ^~~
  5877. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  5878. 40 | .tv_sec = now.tv_sec,
  5879. | ^~~~~~
  5880. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  5881. 40 | .tv_sec = now.tv_sec,
  5882. | ^~~
  5883. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  5884. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  5885. 41 | .tv_usec = now.tv_nsec/1000,
  5886. | ^~~~~~~
  5887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  5888. 41 | .tv_usec = now.tv_nsec/1000,
  5889. | ^~~
  5890. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  5891. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  5892. 39 | *tv = (struct timeval) {
  5893. | ^
  5894. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  5895. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  5896. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  5897. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  5898. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  5899. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  5900. | ^~~~~~~
  5901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  5902. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  5903. 39 | *tv = (struct timeval) {
  5904. | ^~~
  5905. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  5906. 40 | .tv_sec = now.tv_sec,
  5907. | ^~~~~~
  5908. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  5909. 40 | .tv_sec = now.tv_sec,
  5910. | ^~~
  5911. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  5912. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  5913. 41 | .tv_usec = now.tv_nsec/1000,
  5914. | ^~~~~~~
  5915. cc1: some warnings being treated as errors
  5916. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  5917. 41 | .tv_usec = now.tv_nsec/1000,
  5918. | ^~~
  5919. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  5920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  5921. 39 | *tv = (struct timeval) {
  5922. | ^
  5923. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.o] Error 1
  5924. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.o
  5925. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5926. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  5927. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  5928. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  5929. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  5930. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  5931. | ^~~~~~~~~
  5932. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  5933. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5934. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  5935. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  5936. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  5937. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  5938. | ^~~~~~~~~
  5939. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5940. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  5941. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  5942. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  5943. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  5944. 578 | void *ptr = ioremap_nocache(phys, size);
  5945. | ^~~~~~~~~~~~~~~
  5946. | ioremap_cache
  5947. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  5948. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  5949. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  5950. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  5951. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  5952. 325 | struct timespec ts = {0};
  5953. | ^~~~~~~~
  5954. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  5955. 325 | struct timespec ts = {0};
  5956. | ^
  5957. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  5958. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  5959. 325 | struct timespec ts = {0};
  5960. | ^~
  5961. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5962. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  5963. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  5964. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  5965. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  5966. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  5967. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  5968. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  5969. | ^~~~~~~~~
  5970. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  5971. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5972. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  5973. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  5974. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  5975. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  5976. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  5977. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  5978. | ^~~~~~~~~
  5979. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  5980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  5981. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  5982. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  5983. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  5984. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  5985. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  5986. 578 | void *ptr = ioremap_nocache(phys, size);
  5987. | ^~~~~~~~~~~~~~~
  5988. | ioremap_cache
  5989. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  5990. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  5991. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  5992. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  5993. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  5994. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  5995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  5996. 327 | getrawmonotonic(&ts);
  5997. | ^~~~~~~~~~~~~~~
  5998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  5999. 325 | struct timespec ts = {0};
  6000. | ^~
  6001. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6002. 325 | struct timespec ts = {0};
  6003. | ^~~~~~~~
  6004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6005. 325 | struct timespec ts = {0};
  6006. | ^
  6007. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6008. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6009. 325 | struct timespec ts = {0};
  6010. | ^~
  6011. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6012. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  6013. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  6014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6015. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6016. | ^~~~~~~
  6017. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6018. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6019. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6020. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  6021. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  6022. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6023. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6024. | ^~~~~~~
  6025. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6026. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6027. 39 | *tv = (struct timeval) {
  6028. | ^~~
  6029. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6030. 40 | .tv_sec = now.tv_sec,
  6031. | ^~~~~~
  6032. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6033. 40 | .tv_sec = now.tv_sec,
  6034. | ^~~
  6035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6036. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6037. 41 | .tv_usec = now.tv_nsec/1000,
  6038. | ^~~~~~~
  6039. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6040. 41 | .tv_usec = now.tv_nsec/1000,
  6041. | ^~~
  6042. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6043. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6044. 39 | *tv = (struct timeval) {
  6045. | ^
  6046. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6047. 39 | *tv = (struct timeval) {
  6048. | ^~~
  6049. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6050. 40 | .tv_sec = now.tv_sec,
  6051. | ^~~~~~
  6052. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6053. 40 | .tv_sec = now.tv_sec,
  6054. | ^~~
  6055. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6056. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6057. 41 | .tv_usec = now.tv_nsec/1000,
  6058. | ^~~~~~~
  6059. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6060. 41 | .tv_usec = now.tv_nsec/1000,
  6061. | ^~~
  6062. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6063. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6064. 39 | *tv = (struct timeval) {
  6065. | ^
  6066. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6067. 327 | getrawmonotonic(&ts);
  6068. | ^~~~~~~~~~~~~~~
  6069. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6070. 325 | struct timespec ts = {0};
  6071. | ^~
  6072. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6073. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6074. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6075. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  6076. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6077. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6078. | ^~~~~~~
  6079. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6080. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6081. 39 | *tv = (struct timeval) {
  6082. | ^~~
  6083. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6084. 40 | .tv_sec = now.tv_sec,
  6085. | ^~~~~~
  6086. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6087. 40 | .tv_sec = now.tv_sec,
  6088. | ^~~
  6089. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6090. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6091. 41 | .tv_usec = now.tv_nsec/1000,
  6092. | ^~~~~~~
  6093. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6094. 41 | .tv_usec = now.tv_nsec/1000,
  6095. | ^~~
  6096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6097. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6098. 39 | *tv = (struct timeval) {
  6099. | ^
  6100. cc1: some warnings being treated as errors
  6101. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.o] Error 1
  6102. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.o
  6103. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6104. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6105. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  6106. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  6107. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  6108. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6109. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6110. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6111. | ^~~~~~~~~
  6112. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6113. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6114. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6115. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  6116. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  6117. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  6118. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6119. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6120. | ^~~~~~~~~
  6121. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6122. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6123. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  6124. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  6125. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  6126. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6127. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6128. 578 | void *ptr = ioremap_nocache(phys, size);
  6129. | ^~~~~~~~~~~~~~~
  6130. | ioremap_cache
  6131. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6132. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6133. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  6134. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  6135. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  6136. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6137. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6138. 325 | struct timespec ts = {0};
  6139. | ^~~~~~~~
  6140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6141. 325 | struct timespec ts = {0};
  6142. | ^
  6143. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6144. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6145. 325 | struct timespec ts = {0};
  6146. | ^~
  6147. cc1: some warnings being treated as errors
  6148. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.o] Error 1
  6149. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6150. 327 | getrawmonotonic(&ts);
  6151. | ^~~~~~~~~~~~~~~
  6152. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6153. 325 | struct timespec ts = {0};
  6154. | ^~
  6155. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.o
  6156. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6157. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6158. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  6159. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  6160. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  6161. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6162. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6163. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6164. | ^~~~~~~~~
  6165. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6166. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6167. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6168. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  6169. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  6170. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  6171. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6172. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6173. | ^~~~~~~~~
  6174. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6175. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6176. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6177. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  6178. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6179. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6180. | ^~~~~~~
  6181. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6182. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6183. 39 | *tv = (struct timeval) {
  6184. | ^~~
  6185. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6186. 40 | .tv_sec = now.tv_sec,
  6187. | ^~~~~~
  6188. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6189. 40 | .tv_sec = now.tv_sec,
  6190. | ^~~
  6191. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6193. 41 | .tv_usec = now.tv_nsec/1000,
  6194. | ^~~~~~~
  6195. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6196. 41 | .tv_usec = now.tv_nsec/1000,
  6197. | ^~~
  6198. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6199. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6200. 39 | *tv = (struct timeval) {
  6201. | ^
  6202. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6203. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6204. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  6205. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  6206. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  6207. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6208. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6209. 578 | void *ptr = ioremap_nocache(phys, size);
  6210. | ^~~~~~~~~~~~~~~
  6211. | ioremap_cache
  6212. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6213. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6214. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6215. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  6216. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  6217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6218. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6219. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6220. | ^~~~~~~~~
  6221. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6222. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6223. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6224. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  6225. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  6226. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6227. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6228. | ^~~~~~~~~
  6229. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6230. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  6231. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  6232. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  6233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6234. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6235. 325 | struct timespec ts = {0};
  6236. | ^~~~~~~~
  6237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6238. 325 | struct timespec ts = {0};
  6239. | ^
  6240. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6241. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6242. 325 | struct timespec ts = {0};
  6243. | ^~
  6244. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6245. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6246. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  6247. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  6248. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6249. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6250. 578 | void *ptr = ioremap_nocache(phys, size);
  6251. | ^~~~~~~~~~~~~~~
  6252. | ioremap_cache
  6253. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6254. cc1: some warnings being treated as errors
  6255. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.o] Error 1
  6256. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.o
  6257. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6258. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  6259. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  6260. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6261. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6262. 325 | struct timespec ts = {0};
  6263. | ^~~~~~~~
  6264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6265. 325 | struct timespec ts = {0};
  6266. | ^
  6267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6268. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6269. 325 | struct timespec ts = {0};
  6270. | ^~
  6271. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6272. 327 | getrawmonotonic(&ts);
  6273. | ^~~~~~~~~~~~~~~
  6274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6275. 325 | struct timespec ts = {0};
  6276. | ^~
  6277. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6278. 327 | getrawmonotonic(&ts);
  6279. | ^~~~~~~~~~~~~~~
  6280. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6281. 325 | struct timespec ts = {0};
  6282. | ^~
  6283. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6284. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  6285. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  6286. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6287. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6288. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6289. | ^~~~~~~~~
  6290. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6291. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6292. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  6293. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  6294. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6295. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6296. | ^~~~~~~~~
  6297. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6298. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6299. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  6300. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  6301. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6303. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6304. | ^~~~~~~~~
  6305. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6306. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6307. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6308. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  6309. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  6310. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6311. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6312. | ^~~~~~~~~
  6313. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6314. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  6315. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  6316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6317. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6318. 578 | void *ptr = ioremap_nocache(phys, size);
  6319. | ^~~~~~~~~~~~~~~
  6320. | ioremap_cache
  6321. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6322. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6323. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6324. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  6325. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  6326. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6328. 578 | void *ptr = ioremap_nocache(phys, size);
  6329. | ^~~~~~~~~~~~~~~
  6330. | ioremap_cache
  6331. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6332. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6333. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  6334. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6335. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6336. | ^~~~~~~
  6337. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6338. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6339. 39 | *tv = (struct timeval) {
  6340. | ^~~
  6341. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6342. 40 | .tv_sec = now.tv_sec,
  6343. | ^~~~~~
  6344. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6345. 40 | .tv_sec = now.tv_sec,
  6346. | ^~~
  6347. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6348. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6349. 41 | .tv_usec = now.tv_nsec/1000,
  6350. | ^~~~~~~
  6351. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6352. 41 | .tv_usec = now.tv_nsec/1000,
  6353. | ^~~
  6354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6355. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6356. 39 | *tv = (struct timeval) {
  6357. | ^
  6358. cc1: some warnings being treated as errors
  6359. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  6360. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  6361. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6362. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6363. 325 | struct timespec ts = {0};
  6364. | ^~~~~~~~
  6365. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6366. 325 | struct timespec ts = {0};
  6367. | ^
  6368. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6369. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6370. 325 | struct timespec ts = {0};
  6371. | ^~
  6372. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.o] Error 1
  6373. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6374. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  6375. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  6376. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6377. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6378. 325 | struct timespec ts = {0};
  6379. | ^~~~~~~~
  6380. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6381. 325 | struct timespec ts = {0};
  6382. | ^
  6383. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6384. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6385. 325 | struct timespec ts = {0};
  6386. | ^~
  6387. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.o
  6388. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  6389. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6390. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6391. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  6392. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  6393. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c: In function 'create_procfs':
  6394. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:62:64: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  6395. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  6396. | ^~~~
  6397. | |
  6398. | const struct file_operations *
  6399. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:39:42: note: in definition of macro 'NV_CREATE_PROC_ENTRY'
  6400. 39 | proc_create_data(name, mode, parent, fops, __data)
  6401. | ^~~~
  6402. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:54:36: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  6403. 54 | pushbuffer->procfs.info_file = NV_CREATE_PROC_FILE("pushbuffer", gpu->procfs.dir, pushbuffer_info, (void *)pushbuffer);
  6404. | ^~~~~~~~~~~~~~~~~~~
  6405. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  6406. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  6407. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6408. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6409. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  6410. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  6411. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/proc_fs.h:102:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
  6412. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  6413. | ^~~~~~~~~~~~~~~~
  6414. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6415. 327 | getrawmonotonic(&ts);
  6416. | ^~~~~~~~~~~~~~~
  6417. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  6418. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  6419. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  6420. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6421. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  6422. 331 | }
  6423. | ^
  6424. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6425. 325 | struct timespec ts = {0};
  6426. | ^~
  6427. cc1: some warnings being treated as errors
  6428. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6429. 327 | getrawmonotonic(&ts);
  6430. | ^~~~~~~~~~~~~~~
  6431. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6432. 325 | struct timespec ts = {0};
  6433. | ^~
  6434. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.o] Error 1
  6435. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6436. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6437. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6438. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  6439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6440. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6441. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6442. | ^~~~~~~~~
  6443. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6444. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6445. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6446. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6447. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  6448. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6449. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6450. | ^~~~~~~~~
  6451. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.o
  6452. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6453. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6454. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6455. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  6456. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6457. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6458. 578 | void *ptr = ioremap_nocache(phys, size);
  6459. | ^~~~~~~~~~~~~~~
  6460. | ioremap_cache
  6461. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6462. cc1: some warnings being treated as errors
  6463. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6464. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  6465. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  6466. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6467. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6468. | ^~~~~~~
  6469. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6470. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6471. 39 | *tv = (struct timeval) {
  6472. | ^~~
  6473. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6474. 40 | .tv_sec = now.tv_sec,
  6475. | ^~~~~~
  6476. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.o] Error 1
  6477. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6478. 40 | .tv_sec = now.tv_sec,
  6479. | ^~~
  6480. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6481. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6482. 41 | .tv_usec = now.tv_nsec/1000,
  6483. | ^~~~~~~
  6484. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6485. 41 | .tv_usec = now.tv_nsec/1000,
  6486. | ^~~
  6487. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6488. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6489. 39 | *tv = (struct timeval) {
  6490. | ^
  6491. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.o
  6492. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6493. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6494. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  6495. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6496. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6497. 325 | struct timespec ts = {0};
  6498. | ^~~~~~~~
  6499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6500. 325 | struct timespec ts = {0};
  6501. | ^
  6502. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6503. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6504. 325 | struct timespec ts = {0};
  6505. | ^~
  6506. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  6507. 331 | }
  6508. | ^
  6509. cc1: some warnings being treated as errors
  6510. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.o] Error 1
  6511. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6512. 327 | getrawmonotonic(&ts);
  6513. | ^~~~~~~~~~~~~~~
  6514. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6515. 325 | struct timespec ts = {0};
  6516. | ^~
  6517. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.o
  6518. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6519. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6520. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6521. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  6522. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6523. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6524. | ^~~~~~~
  6525. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6526. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6527. 39 | *tv = (struct timeval) {
  6528. | ^~~
  6529. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6530. 40 | .tv_sec = now.tv_sec,
  6531. | ^~~~~~
  6532. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6533. 40 | .tv_sec = now.tv_sec,
  6534. | ^~~
  6535. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6536. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6537. 41 | .tv_usec = now.tv_nsec/1000,
  6538. | ^~~~~~~
  6539. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6540. 41 | .tv_usec = now.tv_nsec/1000,
  6541. | ^~~
  6542. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6543. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6544. 39 | *tv = (struct timeval) {
  6545. | ^
  6546. cc1: some warnings being treated as errors
  6547. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.o] Error 1
  6548. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.o
  6549. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6550. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  6551. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6552. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6553. | ^~~~~~~
  6554. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6555. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6556. 39 | *tv = (struct timeval) {
  6557. | ^~~
  6558. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6559. 40 | .tv_sec = now.tv_sec,
  6560. | ^~~~~~
  6561. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6562. 40 | .tv_sec = now.tv_sec,
  6563. | ^~~
  6564. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6565. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6566. 41 | .tv_usec = now.tv_nsec/1000,
  6567. | ^~~~~~~
  6568. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6569. 41 | .tv_usec = now.tv_nsec/1000,
  6570. | ^~~
  6571. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6573. 39 | *tv = (struct timeval) {
  6574. | ^
  6575. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6576. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6578. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  6579. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6580. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6581. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6582. | ^~~~~~~~~
  6583. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6584. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6585. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6586. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6587. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  6588. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6589. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6590. | ^~~~~~~~~
  6591. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6592. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6593. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6594. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  6595. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6596. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6597. 578 | void *ptr = ioremap_nocache(phys, size);
  6598. | ^~~~~~~~~~~~~~~
  6599. | ioremap_cache
  6600. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6601. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6602. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6603. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6604. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  6605. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6606. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6607. | ^~~~~~~
  6608. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6609. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6610. 39 | *tv = (struct timeval) {
  6611. | ^~~
  6612. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6613. 40 | .tv_sec = now.tv_sec,
  6614. | ^~~~~~
  6615. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6616. 40 | .tv_sec = now.tv_sec,
  6617. | ^~~
  6618. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6619. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6620. 41 | .tv_usec = now.tv_nsec/1000,
  6621. | ^~~~~~~
  6622. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6623. 41 | .tv_usec = now.tv_nsec/1000,
  6624. | ^~~
  6625. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6627. 39 | *tv = (struct timeval) {
  6628. | ^
  6629. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6630. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6631. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  6632. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6633. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6634. 325 | struct timespec ts = {0};
  6635. | ^~~~~~~~
  6636. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6637. 325 | struct timespec ts = {0};
  6638. | ^
  6639. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6640. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6641. 325 | struct timespec ts = {0};
  6642. | ^~
  6643. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6644. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6645. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6646. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  6647. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6648. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6649. | ^~~~~~~
  6650. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6652. 39 | *tv = (struct timeval) {
  6653. | ^~~
  6654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6655. 40 | .tv_sec = now.tv_sec,
  6656. | ^~~~~~
  6657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6658. 40 | .tv_sec = now.tv_sec,
  6659. | ^~~
  6660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6662. 41 | .tv_usec = now.tv_nsec/1000,
  6663. | ^~~~~~~
  6664. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6665. 41 | .tv_usec = now.tv_nsec/1000,
  6666. | ^~~
  6667. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6669. 39 | *tv = (struct timeval) {
  6670. | ^
  6671. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6672. 327 | getrawmonotonic(&ts);
  6673. | ^~~~~~~~~~~~~~~
  6674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6675. 325 | struct timespec ts = {0};
  6676. | ^~
  6677. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6678. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  6679. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6680. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6681. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6682. | ^~~~~~~~~
  6683. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6684. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6685. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  6686. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6687. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6688. | ^~~~~~~~~
  6689. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6690. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  6691. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6692. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6693. | ^~~~~~~
  6694. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6695. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6696. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  6697. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6698. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6699. 578 | void *ptr = ioremap_nocache(phys, size);
  6700. | ^~~~~~~~~~~~~~~
  6701. | ioremap_cache
  6702. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6703. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6704. 39 | *tv = (struct timeval) {
  6705. | ^~~
  6706. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6707. 40 | .tv_sec = now.tv_sec,
  6708. | ^~~~~~
  6709. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6710. 40 | .tv_sec = now.tv_sec,
  6711. | ^~~
  6712. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6713. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6714. 41 | .tv_usec = now.tv_nsec/1000,
  6715. | ^~~~~~~
  6716. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6717. 41 | .tv_usec = now.tv_nsec/1000,
  6718. | ^~~
  6719. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6720. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6721. 39 | *tv = (struct timeval) {
  6722. | ^
  6723. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  6724. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6725. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6726. 325 | struct timespec ts = {0};
  6727. | ^~~~~~~~
  6728. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6729. 325 | struct timespec ts = {0};
  6730. | ^
  6731. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6732. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6733. 325 | struct timespec ts = {0};
  6734. | ^~
  6735. cc1: some warnings being treated as errors
  6736. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.o] Error 1
  6737. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.o
  6738. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6739. 327 | getrawmonotonic(&ts);
  6740. | ^~~~~~~~~~~~~~~
  6741. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6742. 325 | struct timespec ts = {0};
  6743. | ^~
  6744. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6745. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  6746. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  6747. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6748. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6749. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6750. | ^~~~~~~~~
  6751. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6752. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6753. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  6754. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  6755. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6756. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6757. | ^~~~~~~~~
  6758. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6759. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  6760. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  6761. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6762. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6763. 578 | void *ptr = ioremap_nocache(phys, size);
  6764. | ^~~~~~~~~~~~~~~
  6765. | ioremap_cache
  6766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6767. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  6768. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  6769. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6770. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6771. 325 | struct timespec ts = {0};
  6772. | ^~~~~~~~
  6773. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6774. 325 | struct timespec ts = {0};
  6775. | ^
  6776. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6778. 325 | struct timespec ts = {0};
  6779. | ^~
  6780. cc1: some warnings being treated as errors
  6781. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6782. 327 | getrawmonotonic(&ts);
  6783. | ^~~~~~~~~~~~~~~
  6784. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6785. 325 | struct timespec ts = {0};
  6786. | ^~
  6787. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.o] Error 1
  6788. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o
  6789. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6790. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6791. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6792. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  6793. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6794. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6795. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6796. | ^~~~~~~~~
  6797. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6798. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6799. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6800. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6801. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  6802. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6803. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6804. | ^~~~~~~~~
  6805. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6806. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6807. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6808. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  6809. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6810. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6811. 578 | void *ptr = ioremap_nocache(phys, size);
  6812. | ^~~~~~~~~~~~~~~
  6813. | ioremap_cache
  6814. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6815. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6816. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  6817. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  6818. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6819. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6820. | ^~~~~~~
  6821. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6822. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6823. 39 | *tv = (struct timeval) {
  6824. | ^~~
  6825. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6826. 40 | .tv_sec = now.tv_sec,
  6827. | ^~~~~~
  6828. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6829. 40 | .tv_sec = now.tv_sec,
  6830. | ^~~
  6831. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6832. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6833. 41 | .tv_usec = now.tv_nsec/1000,
  6834. | ^~~~~~~
  6835. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6836. 41 | .tv_usec = now.tv_nsec/1000,
  6837. | ^~~
  6838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6839. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6840. 39 | *tv = (struct timeval) {
  6841. | ^
  6842. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6843. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6844. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  6845. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6846. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6847. 325 | struct timespec ts = {0};
  6848. | ^~~~~~~~
  6849. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6850. 325 | struct timespec ts = {0};
  6851. | ^
  6852. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6853. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6854. 325 | struct timespec ts = {0};
  6855. | ^~
  6856. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6857. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  6858. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6859. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6860. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6861. | ^~~~~~~~~
  6862. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6863. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6864. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  6865. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6866. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6867. | ^~~~~~~~~
  6868. cc1: some warnings being treated as errors
  6869. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6870. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  6871. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6872. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6873. 578 | void *ptr = ioremap_nocache(phys, size);
  6874. | ^~~~~~~~~~~~~~~
  6875. | ioremap_cache
  6876. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6877. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.o] Error 1
  6878. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6879. 327 | getrawmonotonic(&ts);
  6880. | ^~~~~~~~~~~~~~~
  6881. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.o
  6882. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6883. 325 | struct timespec ts = {0};
  6884. | ^~
  6885. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  6886. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6887. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6888. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6889. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6890. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  6891. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6892. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6893. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6894. | ^~~~~~~~~
  6895. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6896. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6897. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6898. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6899. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  6900. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6901. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6902. | ^~~~~~~~~
  6903. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6904. 325 | struct timespec ts = {0};
  6905. | ^~~~~~~~
  6906. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6907. 325 | struct timespec ts = {0};
  6908. | ^
  6909. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6910. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6911. 325 | struct timespec ts = {0};
  6912. | ^~
  6913. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6914. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6915. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6916. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  6917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6918. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6919. 578 | void *ptr = ioremap_nocache(phys, size);
  6920. | ^~~~~~~~~~~~~~~
  6921. | ioremap_cache
  6922. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6923. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6924. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6925. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6926. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  6927. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  6928. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6929. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6930. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  6931. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  6932. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  6933. 325 | struct timespec ts = {0};
  6934. | ^~~~~~~~
  6935. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  6936. 325 | struct timespec ts = {0};
  6937. | ^
  6938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  6939. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  6940. 325 | struct timespec ts = {0};
  6941. | ^~
  6942. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  6943. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  6944. | ^~~~~~~~~
  6945. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  6946. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6947. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6948. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6949. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  6950. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  6951. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  6952. | ^~~~~~~~~
  6953. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  6954. 327 | getrawmonotonic(&ts);
  6955. | ^~~~~~~~~~~~~~~
  6956. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  6957. 325 | struct timespec ts = {0};
  6958. | ^~
  6959. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  6960. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6961. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  6962. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  6963. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  6964. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  6965. 578 | void *ptr = ioremap_nocache(phys, size);
  6966. | ^~~~~~~~~~~~~~~
  6967. | ioremap_cache
  6968. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  6969. cc1: some warnings being treated as errors
  6970. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.o] Error 1
  6971. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  6972. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  6973. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  6974. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  6975. | ^~~~~~~
  6976. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  6977. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  6978. 39 | *tv = (struct timeval) {
  6979. | ^~~
  6980. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.o
  6981. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  6982. 40 | .tv_sec = now.tv_sec,
  6983. | ^~~~~~
  6984. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  6985. 40 | .tv_sec = now.tv_sec,
  6986. | ^~~
  6987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  6988. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  6989. 41 | .tv_usec = now.tv_nsec/1000,
  6990. | ^~~~~~~
  6991. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  6992. 41 | .tv_usec = now.tv_nsec/1000,
  6993. | ^~~
  6994. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  6995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  6996. 39 | *tv = (struct timeval) {
  6997. | ^
  6998. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  6999. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7000. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  7001. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7002. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7003. 325 | struct timespec ts = {0};
  7004. | ^~~~~~~~
  7005. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7006. 325 | struct timespec ts = {0};
  7007. | ^
  7008. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7009. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7010. 325 | struct timespec ts = {0};
  7011. | ^~
  7012. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7013. 327 | getrawmonotonic(&ts);
  7014. | ^~~~~~~~~~~~~~~
  7015. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7016. 325 | struct timespec ts = {0};
  7017. | ^~
  7018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7019. 327 | getrawmonotonic(&ts);
  7020. | ^~~~~~~~~~~~~~~
  7021. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7022. 325 | struct timespec ts = {0};
  7023. | ^~
  7024. cc1: some warnings being treated as errors
  7025. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7026. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  7027. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7028. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7029. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7030. | ^~~~~~~~~
  7031. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7032. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7033. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  7034. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7035. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7036. | ^~~~~~~~~
  7037. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.o] Error 1
  7038. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.o
  7039. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7040. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  7041. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7042. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7043. 578 | void *ptr = ioremap_nocache(phys, size);
  7044. | ^~~~~~~~~~~~~~~
  7045. | ioremap_cache
  7046. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7047. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7048. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  7049. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7050. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7051. | ^~~~~~~
  7052. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7053. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7054. 39 | *tv = (struct timeval) {
  7055. | ^~~
  7056. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7057. 40 | .tv_sec = now.tv_sec,
  7058. | ^~~~~~
  7059. cc1: some warnings being treated as errors
  7060. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7061. 40 | .tv_sec = now.tv_sec,
  7062. | ^~~
  7063. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7064. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7065. 41 | .tv_usec = now.tv_nsec/1000,
  7066. | ^~~~~~~
  7067. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7068. 41 | .tv_usec = now.tv_nsec/1000,
  7069. | ^~~
  7070. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7071. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7072. 39 | *tv = (struct timeval) {
  7073. | ^
  7074. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.o] Error 1
  7075. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o
  7076. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  7077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7079. 325 | struct timespec ts = {0};
  7080. | ^~~~~~~~
  7081. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7082. 325 | struct timespec ts = {0};
  7083. | ^
  7084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7085. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7086. 325 | struct timespec ts = {0};
  7087. | ^~
  7088. cc1: some warnings being treated as errors
  7089. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.o] Error 1
  7090. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o
  7091. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7092. 327 | getrawmonotonic(&ts);
  7093. | ^~~~~~~~~~~~~~~
  7094. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7095. 325 | struct timespec ts = {0};
  7096. | ^~
  7097. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7098. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7099. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  7100. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7101. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7102. | ^~~~~~~
  7103. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7104. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7105. 39 | *tv = (struct timeval) {
  7106. | ^~~
  7107. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7108. 40 | .tv_sec = now.tv_sec,
  7109. | ^~~~~~
  7110. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7111. 40 | .tv_sec = now.tv_sec,
  7112. | ^~~
  7113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7114. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7115. 41 | .tv_usec = now.tv_nsec/1000,
  7116. | ^~~~~~~
  7117. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7118. 41 | .tv_usec = now.tv_nsec/1000,
  7119. | ^~~
  7120. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7121. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7122. 39 | *tv = (struct timeval) {
  7123. | ^
  7124. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7125. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7126. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7127. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  7128. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7129. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7130. | ^~~~~~~
  7131. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7132. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7133. 39 | *tv = (struct timeval) {
  7134. | ^~~
  7135. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7136. 40 | .tv_sec = now.tv_sec,
  7137. | ^~~~~~
  7138. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7139. 40 | .tv_sec = now.tv_sec,
  7140. | ^~~
  7141. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7142. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7143. 41 | .tv_usec = now.tv_nsec/1000,
  7144. | ^~~~~~~
  7145. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7146. 41 | .tv_usec = now.tv_nsec/1000,
  7147. | ^~~
  7148. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7149. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7150. 39 | *tv = (struct timeval) {
  7151. | ^
  7152. cc1: some warnings being treated as errors
  7153. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.o] Error 1
  7154. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.o
  7155. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7156. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  7157. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  7158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7160. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7161. | ^~~~~~~~~
  7162. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7163. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7164. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  7165. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  7166. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7167. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7168. | ^~~~~~~~~
  7169. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7170. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  7171. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7172. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7173. | ^~~~~~~
  7174. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7175. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7176. 39 | *tv = (struct timeval) {
  7177. | ^~~
  7178. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7179. 40 | .tv_sec = now.tv_sec,
  7180. | ^~~~~~
  7181. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7182. 40 | .tv_sec = now.tv_sec,
  7183. | ^~~
  7184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7185. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7186. 41 | .tv_usec = now.tv_nsec/1000,
  7187. | ^~~~~~~
  7188. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7189. 41 | .tv_usec = now.tv_nsec/1000,
  7190. | ^~~
  7191. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7193. 39 | *tv = (struct timeval) {
  7194. | ^
  7195. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7196. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  7197. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  7198. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7199. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7200. 578 | void *ptr = ioremap_nocache(phys, size);
  7201. | ^~~~~~~~~~~~~~~
  7202. | ioremap_cache
  7203. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7204. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7205. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  7206. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7207. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7208. | ^~~~~~~
  7209. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7210. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7211. 39 | *tv = (struct timeval) {
  7212. | ^~~
  7213. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7214. 40 | .tv_sec = now.tv_sec,
  7215. | ^~~~~~
  7216. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7217. 40 | .tv_sec = now.tv_sec,
  7218. | ^~~
  7219. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7220. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7221. 41 | .tv_usec = now.tv_nsec/1000,
  7222. | ^~~~~~~
  7223. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7224. 41 | .tv_usec = now.tv_nsec/1000,
  7225. | ^~~
  7226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7227. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7228. 39 | *tv = (struct timeval) {
  7229. | ^
  7230. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  7231. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  7232. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7234. 325 | struct timespec ts = {0};
  7235. | ^~~~~~~~
  7236. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7237. 325 | struct timespec ts = {0};
  7238. | ^
  7239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7240. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7241. 325 | struct timespec ts = {0};
  7242. | ^~
  7243. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7244. 327 | getrawmonotonic(&ts);
  7245. | ^~~~~~~~~~~~~~~
  7246. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7247. 325 | struct timespec ts = {0};
  7248. | ^~
  7249. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7250. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  7251. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7252. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7253. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7254. | ^~~~~~~~~
  7255. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7256. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7257. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  7258. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7259. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7260. | ^~~~~~~~~
  7261. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7262. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  7263. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7264. cc1: some warnings being treated as errors
  7265. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7266. 578 | void *ptr = ioremap_nocache(phys, size);
  7267. | ^~~~~~~~~~~~~~~
  7268. | ioremap_cache
  7269. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7270. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.o] Error 1
  7271. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.o
  7272. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7273. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7274. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7275. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  7276. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7277. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7278. | ^~~~~~~
  7279. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7280. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7281. 39 | *tv = (struct timeval) {
  7282. | ^~~
  7283. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7284. 40 | .tv_sec = now.tv_sec,
  7285. | ^~~~~~
  7286. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7287. 40 | .tv_sec = now.tv_sec,
  7288. | ^~~
  7289. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7290. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7291. 41 | .tv_usec = now.tv_nsec/1000,
  7292. | ^~~~~~~
  7293. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7294. 41 | .tv_usec = now.tv_nsec/1000,
  7295. | ^~~
  7296. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7297. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7298. 39 | *tv = (struct timeval) {
  7299. | ^
  7300. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  7301. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7303. 325 | struct timespec ts = {0};
  7304. | ^~~~~~~~
  7305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7306. 325 | struct timespec ts = {0};
  7307. | ^
  7308. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7309. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7310. 325 | struct timespec ts = {0};
  7311. | ^~
  7312. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7313. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  7314. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7315. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7316. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7317. | ^~~~~~~~~
  7318. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7319. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7320. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  7321. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7322. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7323. | ^~~~~~~~~
  7324. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7325. 327 | getrawmonotonic(&ts);
  7326. | ^~~~~~~~~~~~~~~
  7327. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7328. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  7329. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7330. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7331. 578 | void *ptr = ioremap_nocache(phys, size);
  7332. | ^~~~~~~~~~~~~~~
  7333. | ioremap_cache
  7334. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7335. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7336. 325 | struct timespec ts = {0};
  7337. | ^~
  7338. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  7339. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7340. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7341. 325 | struct timespec ts = {0};
  7342. | ^~~~~~~~
  7343. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7344. 325 | struct timespec ts = {0};
  7345. | ^
  7346. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7347. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7348. 325 | struct timespec ts = {0};
  7349. | ^~
  7350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7351. 327 | getrawmonotonic(&ts);
  7352. | ^~~~~~~~~~~~~~~
  7353. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7354. 325 | struct timespec ts = {0};
  7355. | ^~
  7356. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7357. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7358. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  7359. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7360. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7361. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7362. | ^~~~~~~~~
  7363. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7364. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7365. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7366. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  7367. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7368. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7369. | ^~~~~~~~~
  7370. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7371. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7372. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  7373. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7374. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7375. 578 | void *ptr = ioremap_nocache(phys, size);
  7376. | ^~~~~~~~~~~~~~~
  7377. | ioremap_cache
  7378. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7379. cc1: some warnings being treated as errors
  7380. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o] Error 1
  7381. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.o
  7382. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7383. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7384. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  7385. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7386. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7387. | ^~~~~~~
  7388. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7389. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7390. 39 | *tv = (struct timeval) {
  7391. | ^~~
  7392. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7393. 40 | .tv_sec = now.tv_sec,
  7394. | ^~~~~~
  7395. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7396. 40 | .tv_sec = now.tv_sec,
  7397. | ^~~
  7398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7399. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7400. 41 | .tv_usec = now.tv_nsec/1000,
  7401. | ^~~~~~~
  7402. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7403. 41 | .tv_usec = now.tv_nsec/1000,
  7404. | ^~~
  7405. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7406. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7407. 39 | *tv = (struct timeval) {
  7408. | ^
  7409. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7410. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  7411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7413. 325 | struct timespec ts = {0};
  7414. | ^~~~~~~~
  7415. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7416. 325 | struct timespec ts = {0};
  7417. | ^
  7418. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7419. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7420. 325 | struct timespec ts = {0};
  7421. | ^~
  7422. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7423. 327 | getrawmonotonic(&ts);
  7424. | ^~~~~~~~~~~~~~~
  7425. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7426. 325 | struct timespec ts = {0};
  7427. | ^~
  7428. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7429. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7430. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7431. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  7432. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7433. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7434. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7435. | ^~~~~~~~~
  7436. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7437. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7438. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7439. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7440. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  7441. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7442. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7443. | ^~~~~~~~~
  7444. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7445. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7446. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7447. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  7448. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7450. 578 | void *ptr = ioremap_nocache(phys, size);
  7451. | ^~~~~~~~~~~~~~~
  7452. | ioremap_cache
  7453. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7454. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7455. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  7456. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7457. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7458. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7459. | ^~~~~~~~~
  7460. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7461. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7462. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  7463. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7464. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7465. | ^~~~~~~~~
  7466. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7467. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7468. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  7469. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7470. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7471. 325 | struct timespec ts = {0};
  7472. | ^~~~~~~~
  7473. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7474. 325 | struct timespec ts = {0};
  7475. | ^
  7476. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7477. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7478. 325 | struct timespec ts = {0};
  7479. | ^~
  7480. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7481. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  7482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7483. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7484. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7485. | ^~~~~~~~~
  7486. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7487. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7488. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  7489. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7490. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7491. | ^~~~~~~~~
  7492. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7493. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  7494. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7495. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7496. 578 | void *ptr = ioremap_nocache(phys, size);
  7497. | ^~~~~~~~~~~~~~~
  7498. | ioremap_cache
  7499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7500. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7501. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  7502. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7503. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7504. 578 | void *ptr = ioremap_nocache(phys, size);
  7505. | ^~~~~~~~~~~~~~~
  7506. | ioremap_cache
  7507. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7508. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  7509. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7510. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7511. 325 | struct timespec ts = {0};
  7512. | ^~~~~~~~
  7513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7514. 325 | struct timespec ts = {0};
  7515. | ^
  7516. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7517. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7518. 325 | struct timespec ts = {0};
  7519. | ^~
  7520. cc1: some warnings being treated as errors
  7521. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7522. 327 | getrawmonotonic(&ts);
  7523. | ^~~~~~~~~~~~~~~
  7524. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7525. 325 | struct timespec ts = {0};
  7526. | ^~
  7527. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.o] Error 1
  7528. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  7529. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7530. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7531. 325 | struct timespec ts = {0};
  7532. | ^~~~~~~~
  7533. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7534. 325 | struct timespec ts = {0};
  7535. | ^
  7536. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7537. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7538. 325 | struct timespec ts = {0};
  7539. | ^~
  7540. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.o
  7541. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7542. 327 | getrawmonotonic(&ts);
  7543. | ^~~~~~~~~~~~~~~
  7544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7545. 325 | struct timespec ts = {0};
  7546. | ^~
  7547. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7548. 327 | getrawmonotonic(&ts);
  7549. | ^~~~~~~~~~~~~~~
  7550. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7551. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7552. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7553. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  7554. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7555. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7556. | ^~~~~~~
  7557. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7558. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7559. 39 | *tv = (struct timeval) {
  7560. | ^~~
  7561. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7562. 40 | .tv_sec = now.tv_sec,
  7563. | ^~~~~~
  7564. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7565. 40 | .tv_sec = now.tv_sec,
  7566. | ^~~
  7567. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7568. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7569. 41 | .tv_usec = now.tv_nsec/1000,
  7570. | ^~~~~~~
  7571. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7572. 41 | .tv_usec = now.tv_nsec/1000,
  7573. | ^~~
  7574. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7575. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7576. 39 | *tv = (struct timeval) {
  7577. | ^
  7578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7579. 325 | struct timespec ts = {0};
  7580. | ^~
  7581. cc1: some warnings being treated as errors
  7582. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.o] Error 1
  7583. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.o
  7584. cc1: some warnings being treated as errors
  7585. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.o] Error 1
  7586. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.o
  7587. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7589. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7590. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  7591. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7592. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7593. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7594. | ^~~~~~~~~
  7595. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7596. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7597. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7598. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7599. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  7600. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7601. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7602. | ^~~~~~~~~
  7603. cc1: some warnings being treated as errors
  7604. cc1: some warnings being treated as errors
  7605. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o] Error 1
  7606. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7607. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7608. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7609. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  7610. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7611. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7612. 578 | void *ptr = ioremap_nocache(phys, size);
  7613. | ^~~~~~~~~~~~~~~
  7614. | ioremap_cache
  7615. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7616. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:285: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o] Error 1
  7617. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.o
  7618. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.o
  7619. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7620. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7621. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  7622. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7623. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7624. 325 | struct timespec ts = {0};
  7625. | ^~~~~~~~
  7626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7627. 325 | struct timespec ts = {0};
  7628. | ^
  7629. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7630. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7631. 325 | struct timespec ts = {0};
  7632. | ^~
  7633. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7634. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  7635. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  7636. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  7637. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7638. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7639. | ^~~~~~~
  7640. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7642. 39 | *tv = (struct timeval) {
  7643. | ^~~
  7644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7645. 40 | .tv_sec = now.tv_sec,
  7646. | ^~~~~~
  7647. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7648. 40 | .tv_sec = now.tv_sec,
  7649. | ^~~
  7650. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7652. 41 | .tv_usec = now.tv_nsec/1000,
  7653. | ^~~~~~~
  7654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7655. 41 | .tv_usec = now.tv_nsec/1000,
  7656. | ^~~
  7657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7658. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7659. 39 | *tv = (struct timeval) {
  7660. | ^
  7661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7662. 327 | getrawmonotonic(&ts);
  7663. | ^~~~~~~~~~~~~~~
  7664. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7665. 325 | struct timespec ts = {0};
  7666. | ^~
  7667. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7668. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7669. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  7670. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7671. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7672. | ^~~~~~~
  7673. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7675. 39 | *tv = (struct timeval) {
  7676. | ^~~
  7677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7678. 40 | .tv_sec = now.tv_sec,
  7679. | ^~~~~~
  7680. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7681. 40 | .tv_sec = now.tv_sec,
  7682. | ^~~
  7683. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7684. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7685. 41 | .tv_usec = now.tv_nsec/1000,
  7686. | ^~~~~~~
  7687. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7688. 41 | .tv_usec = now.tv_nsec/1000,
  7689. | ^~~
  7690. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7691. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7692. 39 | *tv = (struct timeval) {
  7693. | ^
  7694. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7695. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7696. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  7697. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7698. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7699. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7700. | ^~~~~~~~~
  7701. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7702. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7703. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7704. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  7705. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7706. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7707. | ^~~~~~~~~
  7708. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7709. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7710. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  7711. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7712. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7713. | ^~~~~~~
  7714. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7715. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7716. 39 | *tv = (struct timeval) {
  7717. | ^~~
  7718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7719. 40 | .tv_sec = now.tv_sec,
  7720. | ^~~~~~
  7721. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7722. 40 | .tv_sec = now.tv_sec,
  7723. | ^~~
  7724. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7725. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7726. 41 | .tv_usec = now.tv_nsec/1000,
  7727. | ^~~~~~~
  7728. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7729. 41 | .tv_usec = now.tv_nsec/1000,
  7730. | ^~~
  7731. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7732. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7733. 39 | *tv = (struct timeval) {
  7734. | ^
  7735. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7737. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  7738. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7739. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7740. 578 | void *ptr = ioremap_nocache(phys, size);
  7741. | ^~~~~~~~~~~~~~~
  7742. | ioremap_cache
  7743. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7744. cc1: some warnings being treated as errors
  7745. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.o] Error 1
  7746. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.o
  7747. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  7748. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  7749. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7750. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7751. 325 | struct timespec ts = {0};
  7752. | ^~~~~~~~
  7753. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7754. 325 | struct timespec ts = {0};
  7755. | ^
  7756. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7757. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7758. 325 | struct timespec ts = {0};
  7759. | ^~
  7760. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7761. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  7762. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  7763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7764. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7765. | ^~~~~~~
  7766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7767. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7768. 39 | *tv = (struct timeval) {
  7769. | ^~~
  7770. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7771. 40 | .tv_sec = now.tv_sec,
  7772. | ^~~~~~
  7773. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7774. 40 | .tv_sec = now.tv_sec,
  7775. | ^~~
  7776. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7778. 41 | .tv_usec = now.tv_nsec/1000,
  7779. | ^~~~~~~
  7780. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7781. 41 | .tv_usec = now.tv_nsec/1000,
  7782. | ^~~
  7783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7784. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7785. 39 | *tv = (struct timeval) {
  7786. | ^
  7787. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7788. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7789. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  7790. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7791. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7792. | ^~~~~~~
  7793. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7794. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7795. 39 | *tv = (struct timeval) {
  7796. | ^~~
  7797. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7798. 40 | .tv_sec = now.tv_sec,
  7799. | ^~~~~~
  7800. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7801. 40 | .tv_sec = now.tv_sec,
  7802. | ^~~
  7803. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7804. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7805. 41 | .tv_usec = now.tv_nsec/1000,
  7806. | ^~~~~~~
  7807. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7808. 41 | .tv_usec = now.tv_nsec/1000,
  7809. | ^~~
  7810. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7811. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7812. 39 | *tv = (struct timeval) {
  7813. | ^
  7814. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7815. 327 | getrawmonotonic(&ts);
  7816. | ^~~~~~~~~~~~~~~
  7817. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7818. 325 | struct timespec ts = {0};
  7819. | ^~
  7820. cc1: some warnings being treated as errors
  7821. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.o] Error 1
  7822. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.o
  7823. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7824. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7825. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7826. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  7827. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7828. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7829. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7830. | ^~~~~~~~~
  7831. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7832. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7833. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7834. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7835. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  7836. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7837. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7838. | ^~~~~~~~~
  7839. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7840. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7841. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7842. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  7843. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7845. 578 | void *ptr = ioremap_nocache(phys, size);
  7846. | ^~~~~~~~~~~~~~~
  7847. | ioremap_cache
  7848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7849. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7850. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7851. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  7852. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7853. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7854. | ^~~~~~~
  7855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7857. 39 | *tv = (struct timeval) {
  7858. | ^~~
  7859. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7860. 40 | .tv_sec = now.tv_sec,
  7861. | ^~~~~~
  7862. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7863. 40 | .tv_sec = now.tv_sec,
  7864. | ^~~
  7865. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7866. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7867. 41 | .tv_usec = now.tv_nsec/1000,
  7868. | ^~~~~~~
  7869. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7870. 41 | .tv_usec = now.tv_nsec/1000,
  7871. | ^~~
  7872. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7873. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7874. 39 | *tv = (struct timeval) {
  7875. | ^
  7876. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7877. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  7878. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  7879. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7880. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7881. 325 | struct timespec ts = {0};
  7882. | ^~~~~~~~
  7883. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7884. 325 | struct timespec ts = {0};
  7885. | ^
  7886. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7888. 325 | struct timespec ts = {0};
  7889. | ^~
  7890. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7891. 327 | getrawmonotonic(&ts);
  7892. | ^~~~~~~~~~~~~~~
  7893. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7894. 325 | struct timespec ts = {0};
  7895. | ^~
  7896. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7897. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  7898. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  7899. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  7900. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7902. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7903. | ^~~~~~~~~
  7904. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7905. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7906. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  7907. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  7908. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  7909. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7910. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7911. | ^~~~~~~~~
  7912. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7913. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  7914. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  7915. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  7916. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7918. 578 | void *ptr = ioremap_nocache(phys, size);
  7919. | ^~~~~~~~~~~~~~~
  7920. | ioremap_cache
  7921. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7922. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  7923. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7924. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  7925. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  7926. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  7927. | ^~~~~~~
  7928. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  7929. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  7930. 39 | *tv = (struct timeval) {
  7931. | ^~~
  7932. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  7933. 40 | .tv_sec = now.tv_sec,
  7934. | ^~~~~~
  7935. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  7936. 40 | .tv_sec = now.tv_sec,
  7937. | ^~~
  7938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  7939. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  7940. 41 | .tv_usec = now.tv_nsec/1000,
  7941. | ^~~~~~~
  7942. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  7943. 41 | .tv_usec = now.tv_nsec/1000,
  7944. | ^~~
  7945. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  7946. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  7947. 39 | *tv = (struct timeval) {
  7948. | ^
  7949. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  7950. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  7951. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  7952. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7953. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7954. 325 | struct timespec ts = {0};
  7955. | ^~~~~~~~
  7956. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7957. 325 | struct timespec ts = {0};
  7958. | ^
  7959. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  7960. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  7961. 325 | struct timespec ts = {0};
  7962. | ^~
  7963. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7964. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7965. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  7966. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  7967. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  7968. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  7969. | ^~~~~~~~~
  7970. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  7971. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7972. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7973. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  7974. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  7975. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  7976. | ^~~~~~~~~
  7977. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  7978. 327 | getrawmonotonic(&ts);
  7979. | ^~~~~~~~~~~~~~~
  7980. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  7981. 325 | struct timespec ts = {0};
  7982. | ^~
  7983. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  7984. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7985. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  7986. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  7987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  7988. 578 | void *ptr = ioremap_nocache(phys, size);
  7989. | ^~~~~~~~~~~~~~~
  7990. | ioremap_cache
  7991. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  7992. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  7993. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  7994. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  7995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  7996. 325 | struct timespec ts = {0};
  7997. | ^~~~~~~~
  7998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  7999. 325 | struct timespec ts = {0};
  8000. | ^
  8001. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  8002. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  8003. 325 | struct timespec ts = {0};
  8004. | ^~
  8005. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8006. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8007. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  8008. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  8009. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  8010. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  8011. | ^~~~~~~~~
  8012. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  8013. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8014. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8015. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  8016. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  8017. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  8018. | ^~~~~~~~~
  8019. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8020. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8021. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  8022. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  8023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  8024. 578 | void *ptr = ioremap_nocache(phys, size);
  8025. | ^~~~~~~~~~~~~~~
  8026. | ioremap_cache
  8027. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  8028. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8029. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  8030. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8031. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  8032. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  8033. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  8034. | ^~~~~~~~~
  8035. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  8036. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8037. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  8038. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8039. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  8040. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  8041. | ^~~~~~~~~
  8042. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  8043. 327 | getrawmonotonic(&ts);
  8044. | ^~~~~~~~~~~~~~~
  8045. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  8046. 325 | struct timespec ts = {0};
  8047. | ^~
  8048. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8049. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8050. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  8051. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  8052. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8053. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  8054. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  8055. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  8056. 325 | struct timespec ts = {0};
  8057. | ^~~~~~~~
  8058. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  8059. 325 | struct timespec ts = {0};
  8060. | ^
  8061. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  8062. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8063. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  8064. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8065. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  8066. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  8067. 325 | struct timespec ts = {0};
  8068. | ^~
  8069. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  8070. 578 | void *ptr = ioremap_nocache(phys, size);
  8071. | ^~~~~~~~~~~~~~~
  8072. | ioremap_cache
  8073. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  8074. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  8075. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  8076. | ^~~~~~~~~
  8077. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  8078. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8079. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8080. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  8081. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  8082. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  8083. | ^~~~~~~~~
  8084. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8085. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8086. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  8087. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  8088. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  8089. 578 | void *ptr = ioremap_nocache(phys, size);
  8090. | ^~~~~~~~~~~~~~~
  8091. | ioremap_cache
  8092. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  8093. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  8094. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8095. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  8096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  8097. 325 | struct timespec ts = {0};
  8098. | ^~~~~~~~
  8099. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  8100. 325 | struct timespec ts = {0};
  8101. | ^
  8102. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  8103. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  8104. 325 | struct timespec ts = {0};
  8105. | ^~
  8106. cc1: some warnings being treated as errors
  8107. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.o] Error 1
  8108. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8109. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  8110. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  8111. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  8112. 325 | struct timespec ts = {0};
  8113. | ^~~~~~~~
  8114. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  8115. 325 | struct timespec ts = {0};
  8116. | ^
  8117. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  8118. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  8119. 325 | struct timespec ts = {0};
  8120. | ^~
  8121. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.o
  8122. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  8123. 327 | getrawmonotonic(&ts);
  8124. | ^~~~~~~~~~~~~~~
  8125. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  8126. 325 | struct timespec ts = {0};
  8127. | ^~
  8128. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  8129. 327 | getrawmonotonic(&ts);
  8130. | ^~~~~~~~~~~~~~~
  8131. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  8132. 325 | struct timespec ts = {0};
  8133. | ^~
  8134. cc1: some warnings being treated as errors
  8135. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.o] Error 1
  8136. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  8137. 327 | getrawmonotonic(&ts);
  8138. | ^~~~~~~~~~~~~~~
  8139. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  8140. 325 | struct timespec ts = {0};
  8141. | ^~
  8142. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.o
  8143. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8144. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8145. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8146. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8147. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8148. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  8149. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8150. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8151. | ^~~~~~~~
  8152. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  8153. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  8154. | ^~~~~~~~
  8155. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8156. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8157. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8159. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8160. | ^~~~~~~~
  8161. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  8162. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  8163. | ^~~~~~~~
  8164. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8165. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8166. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8167. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  8168. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8169. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8170. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  8171. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8172. | ^~~~
  8173. | |
  8174. | int
  8175. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  8176. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  8177. | ^~~~
  8178. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  8179. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  8180. | ^~~~~~~~~~~~~~~
  8181. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  8182. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8183. | ^~~~~~~~~~
  8184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  8185. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  8186. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8187. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8188. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8189. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8190. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8191. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8192. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8193. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8194. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8195. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8196. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8197. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8198. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8199. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8200. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8201. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  8202. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8203. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  8204. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8205. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8206. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  8207. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8208. | ^~~~
  8209. | |
  8210. | int
  8211. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  8212. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  8213. | ^~~~
  8214. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  8215. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  8216. | ^~~~~~~~~~~~~~~
  8217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  8218. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8219. | ^~~~~~~~~~
  8220. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  8221. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  8222. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8223. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8224. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8225. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8226. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8227. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8228. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8229. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8230. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8231. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  8232. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  8233. | ~~~~~~^~~~
  8234. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_is_valid_vma_range':
  8235. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:42:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8236. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  8237. | ^~~~~~~~
  8238. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  8239. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  8240. | ^~~~~~~~
  8241. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:42:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8242. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  8243. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8244. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:42:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8245. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  8246. | ^~~~~~~~
  8247. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  8248. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  8249. | ^~~~~~~~
  8250. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:42:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8251. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  8252. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8253. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  8254. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8255. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8256. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  8257. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8258. | ^~~~
  8259. | |
  8260. | int
  8261. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  8262. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  8263. | ^~~~
  8264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  8265. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  8266. | ^~~~~~~~~~~~~~~
  8267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  8268. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8269. | ^~~~~~~~~~
  8270. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  8271. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  8272. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8273. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:42:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8274. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  8275. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8276. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8277. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8278. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8279. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8280. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8281. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8282. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8283. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8284. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8285. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8286. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8287. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  8288. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8289. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  8290. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8291. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  8293. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8294. | ^~~~
  8295. | |
  8296. | int
  8297. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  8298. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  8299. | ^~~~
  8300. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  8301. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  8302. | ^~~~~~~~~~~~~~~
  8303. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  8304. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8305. | ^~~~~~~~~~
  8306. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  8307. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  8308. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8309. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:42:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8310. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  8311. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8312. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8313. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8314. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8315. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8316. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8317. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  8318. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  8319. | ~~~~~~^~~~
  8320. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_api_set_preferred_location':
  8321. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:235:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8322. 235 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8323. | ^~~~~~~~
  8324. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  8325. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  8326. | ^~~~~~~~
  8327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:235:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8328. 235 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8329. | ^~~~~~~~
  8330. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  8331. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  8332. | ^~~~~~~~
  8333. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  8334. 544 | down_read(_sem); \
  8335. | ^~~~
  8336. | |
  8337. | int
  8338. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:235:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  8339. 235 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8340. | ^~~~~~~~~~~~~~~~~~~~~~
  8341. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8342. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8343. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8344. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8345. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8346. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8347. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8348. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8349. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8350. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8351. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8352. 125 | extern void down_read(struct rw_semaphore *sem);
  8353. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8354. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8355. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8356. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8357. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8358. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8359. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:308:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8360. 308 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8361. | ^~~~~~~~
  8362. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  8363. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  8364. | ^~~~~~~~
  8365. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:308:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8366. 308 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8367. | ^~~~~~~~
  8368. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  8369. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  8370. | ^~~~~~~~
  8371. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  8372. 549 | up_read(_sem); \
  8373. | ^~~~
  8374. | |
  8375. | int
  8376. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:308:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  8377. 308 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8378. | ^~~~~~~~~~~~~~~~~~~~
  8379. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8380. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8381. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8382. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8383. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8384. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8385. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8386. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8387. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8388. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8389. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8390. 147 | extern void up_read(struct rw_semaphore *sem);
  8391. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8392. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8393. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8394. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8395. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8396. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8397. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_api_unset_preferred_location':
  8398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:320:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8399. 320 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8400. | ^~~~~~~~
  8401. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  8402. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  8403. | ^~~~~~~~
  8404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:320:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8405. 320 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8406. | ^~~~~~~~
  8407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  8408. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  8409. | ^~~~~~~~
  8410. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  8411. 544 | down_read(_sem); \
  8412. | ^~~~
  8413. | |
  8414. | int
  8415. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:320:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  8416. 320 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8417. | ^~~~~~~~~~~~~~~~~~~~~~
  8418. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8419. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8420. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8421. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8422. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8423. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8424. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8425. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8426. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8427. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8428. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8429. 125 | extern void down_read(struct rw_semaphore *sem);
  8430. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8431. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8432. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8433. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8434. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8435. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8436. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:331:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8437. 331 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8438. | ^~~~~~~~
  8439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  8440. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  8441. | ^~~~~~~~
  8442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:331:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8443. 331 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8444. | ^~~~~~~~
  8445. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  8446. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  8447. | ^~~~~~~~
  8448. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  8449. 549 | up_read(_sem); \
  8450. | ^~~~
  8451. | |
  8452. | int
  8453. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:331:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  8454. 331 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8455. | ^~~~~~~~~~~~~~~~~~~~
  8456. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8457. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8458. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8459. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8460. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8461. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8462. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8463. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8464. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8465. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8466. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8467. 147 | extern void up_read(struct rw_semaphore *sem);
  8468. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8469. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8470. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8471. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8472. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8473. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8474. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'accessed_by_set':
  8475. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:412:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8476. 412 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8477. | ^~~~~~~~
  8478. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  8479. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  8480. | ^~~~~~~~
  8481. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:412:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8482. 412 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8483. | ^~~~~~~~
  8484. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  8485. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  8486. | ^~~~~~~~
  8487. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  8488. 544 | down_read(_sem); \
  8489. | ^~~~
  8490. | |
  8491. | int
  8492. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:412:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  8493. 412 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8494. | ^~~~~~~~~~~~~~~~~~~~~~
  8495. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8496. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8497. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8498. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8499. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8500. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8501. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8502. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8503. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8504. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8505. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8506. 125 | extern void down_read(struct rw_semaphore *sem);
  8507. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8508. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8509. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8510. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8511. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8512. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:476:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8514. 476 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8515. | ^~~~~~~~
  8516. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  8517. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  8518. | ^~~~~~~~
  8519. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:476:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8520. 476 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8521. | ^~~~~~~~
  8522. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  8523. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  8524. | ^~~~~~~~
  8525. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  8526. 549 | up_read(_sem); \
  8527. | ^~~~
  8528. | |
  8529. | int
  8530. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:476:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  8531. 476 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8532. | ^~~~~~~~~~~~~~~~~~~~
  8533. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8534. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8535. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8536. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8537. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8538. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8539. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8540. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8541. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8542. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8543. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8544. 147 | extern void up_read(struct rw_semaphore *sem);
  8545. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8546. cc1: some warnings being treated as errors
  8547. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8548. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8549. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8550. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8551. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8552. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'read_duplication_set':
  8553. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:659:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8554. 659 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8555. | ^~~~~~~~
  8556. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  8557. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  8558. | ^~~~~~~~
  8559. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:659:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8560. 659 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8561. | ^~~~~~~~
  8562. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  8563. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  8564. | ^~~~~~~~
  8565. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  8566. 544 | down_read(_sem); \
  8567. | ^~~~
  8568. | |
  8569. | int
  8570. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:659:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  8571. 659 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  8572. | ^~~~~~~~~~~~~~~~~~~~~~
  8573. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8574. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8575. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8576. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8578. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8579. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8580. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8581. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8582. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8583. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:125:44: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8584. 125 | extern void down_read(struct rw_semaphore *sem);
  8585. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8586. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.o] Error 1
  8587. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8589. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8590. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  8591. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8592. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:713:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8593. 713 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8594. | ^~~~~~~~
  8595. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:16: note: in definition of macro 'uvm_up_read_mmap_sem'
  8596. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  8597. | ^~~~~~~~
  8598. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:713:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8599. 713 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8600. | ^~~~~~~~
  8601. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:548:34: note: in definition of macro 'uvm_up_read_mmap_sem'
  8602. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  8603. | ^~~~~~~~
  8604. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:549:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  8605. 549 | up_read(_sem); \
  8606. | ^~~~
  8607. | |
  8608. | int
  8609. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:713:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  8610. 713 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  8611. | ^~~~~~~~~~~~~~~~~~~~
  8612. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8613. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8614. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8615. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8616. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8617. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8618. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8619. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  8620. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  8621. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  8622. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:147:42: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8623. 147 | extern void up_read(struct rw_semaphore *sem);
  8624. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8625. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8626. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8627. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  8628. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  8629. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  8630. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  8631. | ^~~~~~~~~
  8632. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  8633. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8634. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8635. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  8636. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  8637. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  8638. | ^~~~~~~~~
  8639. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.o
  8640. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8641. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8642. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  8643. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  8644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  8645. 578 | void *ptr = ioremap_nocache(phys, size);
  8646. | ^~~~~~~~~~~~~~~
  8647. | ioremap_cache
  8648. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  8649. cc1: some warnings being treated as errors
  8650. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.o] Error 1
  8651. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8652. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  8653. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  8654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  8655. 325 | struct timespec ts = {0};
  8656. | ^~~~~~~~
  8657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  8658. 325 | struct timespec ts = {0};
  8659. | ^
  8660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  8661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  8662. 325 | struct timespec ts = {0};
  8663. | ^~
  8664. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.o
  8665. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  8666. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8667. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  8668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  8669. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  8670. | ^~~~~~~
  8671. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  8672. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  8673. 39 | *tv = (struct timeval) {
  8674. | ^~~
  8675. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  8676. 40 | .tv_sec = now.tv_sec,
  8677. | ^~~~~~
  8678. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  8679. 40 | .tv_sec = now.tv_sec,
  8680. | ^~~
  8681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  8682. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  8683. 41 | .tv_usec = now.tv_nsec/1000,
  8684. | ^~~~~~~
  8685. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  8686. 41 | .tv_usec = now.tv_nsec/1000,
  8687. | ^~~
  8688. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  8689. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  8690. 39 | *tv = (struct timeval) {
  8691. | ^
  8692. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  8693. 327 | getrawmonotonic(&ts);
  8694. | ^~~~~~~~~~~~~~~
  8695. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  8696. 325 | struct timespec ts = {0};
  8697. | ^~
  8698. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8699. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8700. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  8702. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8703. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8704. | ^~~~~~~~
  8705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  8706. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  8707. | ^~~~~~~~
  8708. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8709. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8710. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8711. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8712. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8713. | ^~~~~~~~
  8714. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  8715. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  8716. | ^~~~~~~~
  8717. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8718. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8719. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8720. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:33,
  8721. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8722. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  8723. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8724. | ^~~~
  8725. | |
  8726. | int
  8727. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  8728. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  8729. | ^~~~
  8730. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  8731. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  8732. | ^~~~~~~~~~~~~~~
  8733. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  8734. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8735. | ^~~~~~~~~~
  8736. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  8737. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  8738. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8739. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8740. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8741. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8742. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  8743. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8744. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  8745. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  8746. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  8747. | ^~~~~~~
  8748. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  8749. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  8750. 39 | *tv = (struct timeval) {
  8751. | ^~~
  8752. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  8753. 40 | .tv_sec = now.tv_sec,
  8754. | ^~~~~~
  8755. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  8756. 40 | .tv_sec = now.tv_sec,
  8757. | ^~~
  8758. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  8759. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  8760. 41 | .tv_usec = now.tv_nsec/1000,
  8761. | ^~~~~~~
  8762. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  8763. 41 | .tv_usec = now.tv_nsec/1000,
  8764. | ^~~
  8765. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  8766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  8767. 39 | *tv = (struct timeval) {
  8768. | ^
  8769. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8770. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8771. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8772. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8773. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8774. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8775. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8776. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  8777. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8778. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8779. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  8780. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8781. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:33,
  8782. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  8784. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8785. | ^~~~
  8786. | |
  8787. | int
  8788. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  8789. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  8790. | ^~~~
  8791. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  8792. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  8793. | ^~~~~~~~~~~~~~~
  8794. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  8795. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8796. | ^~~~~~~~~~
  8797. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  8798. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  8799. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8800. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8801. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8802. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8803. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8804. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8805. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  8806. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  8807. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  8808. | ~~~~~~^~~~
  8809. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8810. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8811. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  8812. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  8813. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  8814. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  8815. | ^~~~~~~~~
  8816. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  8817. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8818. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8819. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  8820. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  8821. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  8822. | ^~~~~~~~~
  8823. cc1: some warnings being treated as errors
  8824. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.o] Error 1
  8825. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8826. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8827. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  8828. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  8829. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: error: implicit declaration of function 'ioremap_nocache'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
  8830. 578 | void *ptr = ioremap_nocache(phys, size);
  8831. | ^~~~~~~~~~~~~~~
  8832. | ioremap_cache
  8833. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:578:17: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  8834. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.o
  8835. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8836. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  8837. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  8838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  8839. 325 | struct timespec ts = {0};
  8840. | ^~~~~~~~
  8841. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  8842. 325 | struct timespec ts = {0};
  8843. | ^
  8844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  8845. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  8846. 325 | struct timespec ts = {0};
  8847. | ^~
  8848. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  8849. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8850. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  8851. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  8852. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  8853. | ^~~~~~~
  8854. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  8855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  8856. 39 | *tv = (struct timeval) {
  8857. | ^~~
  8858. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  8859. 40 | .tv_sec = now.tv_sec,
  8860. | ^~~~~~
  8861. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  8862. 40 | .tv_sec = now.tv_sec,
  8863. | ^~~
  8864. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  8865. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  8866. 41 | .tv_usec = now.tv_nsec/1000,
  8867. | ^~~~~~~
  8868. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  8869. 41 | .tv_usec = now.tv_nsec/1000,
  8870. | ^~~
  8871. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  8872. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  8873. 39 | *tv = (struct timeval) {
  8874. | ^
  8875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:327:5: error: implicit declaration of function 'getrawmonotonic' [-Werror=implicit-function-declaration]
  8876. 327 | getrawmonotonic(&ts);
  8877. | ^~~~~~~~~~~~~~~
  8878. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  8879. 325 | struct timespec ts = {0};
  8880. | ^~
  8881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:331:1: warning: control reaches end of non-void function [-Wreturn-type]
  8882. 331 | }
  8883. | ^
  8884. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  8885. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  8886. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  8887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  8888. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  8889. | ^~~~~~~
  8890. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  8891. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  8892. 39 | *tv = (struct timeval) {
  8893. | ^~~
  8894. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  8895. 40 | .tv_sec = now.tv_sec,
  8896. | ^~~~~~
  8897. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  8898. 40 | .tv_sec = now.tv_sec,
  8899. | ^~~
  8900. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  8901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  8902. 41 | .tv_usec = now.tv_nsec/1000,
  8903. | ^~~~~~~
  8904. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  8905. 41 | .tv_usec = now.tv_nsec/1000,
  8906. | ^~~
  8907. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  8908. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  8909. 39 | *tv = (struct timeval) {
  8910. | ^
  8911. cc1: some warnings being treated as errors
  8912. make[3]: *** [/usr/src/linux-headers-5.8.0-kali3-common/scripts/Makefile.build:286: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.o] Error 1
  8913. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.o
  8914. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8915. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8916. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8917. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  8918. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  8919. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8920. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8921. | ^~~~~~~~
  8922. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  8923. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  8924. | ^~~~~~~~
  8925. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8926. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8927. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8928. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:45: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  8929. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8930. | ^~~~~~~~
  8931. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  8932. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  8933. | ^~~~~~~~
  8934. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8935. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8936. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8937. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  8938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  8939. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8940. | ^~~~
  8941. | |
  8942. | int
  8943. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  8944. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  8945. | ^~~~
  8946. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  8947. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  8948. | ^~~~~~~~~~~~~~~
  8949. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  8950. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8951. | ^~~~~~~~~~
  8952. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  8953. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  8954. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8955. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8956. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8957. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8958. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  8959. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  8960. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  8961. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  8962. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  8963. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  8964. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  8965. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  8966. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  8967. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  8968. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  8969. | ~~~~~~~~~~~~~~~~~~~~~^~~
  8970. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  8971. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  8972. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8973. | ^~~~
  8974. | |
  8975. | int
  8976. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  8977. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  8978. | ^~~~
  8979. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  8980. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  8981. | ^~~~~~~~~~~~~~~
  8982. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  8983. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  8984. | ^~~~~~~~~~
  8985. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  8986. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  8987. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8988. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h:679:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  8989. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  8990. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  8991. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  8992. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  8993. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  8994. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  8995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  8996. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  8997. | ~~~~~~^~~~
  8998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_migrate':
  8999. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:600:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9000. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  9001. | ^~~~~~~~
  9002. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:14: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  9003. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9004. | ^~~~~~~~
  9005. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:600:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9006. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  9007. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9008. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:600:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9009. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  9010. | ^~~~~~~~
  9011. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:533:32: note: in definition of macro 'uvm_assert_mmap_sem_locked_mode'
  9012. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9013. | ^~~~~~~~
  9014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:600:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9015. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  9016. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9017. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  9018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:34: warning: passing argument 1 of 'rwsem_is_locked' makes pointer from integer without a cast [-Wint-conversion]
  9019. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9020. | ^~~~
  9021. | |
  9022. | int
  9023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9024. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9025. | ^~~~
  9026. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9027. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9028. | ^~~~~~~~~~~~~~~
  9029. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9030. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9031. | ^~~~~~~~~~
  9032. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  9033. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9034. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:600:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9036. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  9037. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9038. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  9039. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  9040. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:30:43: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  9041. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  9042. | ^~~~~~~
  9043. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  9044. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  9045. 39 | *tv = (struct timeval) {
  9046. | ^~~
  9047. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:10: error: 'struct timeval' has no member named 'tv_sec'
  9048. 40 | .tv_sec = now.tv_sec,
  9049. | ^~~~~~
  9050. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  9051. 40 | .tv_sec = now.tv_sec,
  9052. | ^~~
  9053. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  9054. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:10: error: 'struct timeval' has no member named 'tv_usec'
  9055. 41 | .tv_usec = now.tv_nsec/1000,
  9056. | ^~~~~~~
  9057. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  9058. 41 | .tv_usec = now.tv_nsec/1000,
  9059. | ^~~
  9060. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  9061. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  9062. 39 | *tv = (struct timeval) {
  9063. | ^
  9064. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9065. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9066. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9067. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9068. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9069. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9070. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9071. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9072. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  9073. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/rwsem.h:57:56: note: expected 'struct rw_semaphore *' but argument is of type 'int'
  9074. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  9075. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9076. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  9077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:69: warning: passing argument 1 of 'uvm_check_locked' makes pointer from integer without a cast [-Wint-conversion]
  9078. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9079. | ^~~~
  9080. | |
  9081. | int
  9082. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9083. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9084. | ^~~~
  9085. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9086. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9087. | ^~~~~~~~~~~~~~~
  9088. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9089. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9090. | ^~~~~~~~~~
  9091. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:537:53: note: in expansion of macro 'uvm_assert_mmap_sem_locked_mode'
  9092. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9093. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9094. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:600:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9095. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  9096. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9097. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  9098. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  9099. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  9100. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  9101. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:502:38: note: expected 'void *' but argument is of type 'int'
  9102. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  9103. | ~~~~~~^~~~
  9104. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate':
  9105. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:857:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9106. 857 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9107. | ^~~~~~~~
  9108. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:16: note: in definition of macro 'uvm_down_read_mmap_sem'
  9109. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  9110. | ^~~~~~~~
  9111. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:857:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9112. 857 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9113. | ^~~~~~~~
  9114. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:542:34: note: in definition of macro 'uvm_down_read_mmap_sem'
  9115. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  9116. | ^~~~~~~~
  9117. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:544:19: warning: passing argument 1 of 'down_read' makes pointer from integer without a cast [-Wint-conversion]
  9118. 544 | down_read(_sem); \
  9119. | ^~~~
  9120. | |
  9121. | int
  9122. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:857:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  9123. 857 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9124. | ^~~~~~~~~~~~~~~~~~~~~~
  9125. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9126. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9127. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9128. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9129. fr