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. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9130. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9131. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9132. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9133. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  9134. /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'
  9135. 125 | extern void down_read(struct rw_semaphore *sem);
  9136. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9137. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  9138. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  9139. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  9140. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  9141. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:939:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9142. 939 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  9143. | ^~~~~~~~
  9144. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:554:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order'
  9145. 554 | typeof(mmap_sem) _sem = (mmap_sem); \
  9146. | ^~~~~~~~
  9147. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:939:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9148. 939 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  9149. | ^~~~~~~~
  9150. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:554:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order'
  9151. 554 | typeof(mmap_sem) _sem = (mmap_sem); \
  9152. | ^~~~~~~~
  9153. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:555:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  9154. 555 | up_read(_sem); \
  9155. | ^~~~
  9156. | |
  9157. | int
  9158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:939:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order'
  9159. 939 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  9160. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9161. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9162. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9163. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9164. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9165. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9166. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9167. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9168. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9169. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  9170. /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'
  9171. 147 | extern void up_read(struct rw_semaphore *sem);
  9172. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9173. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  9174. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  9175. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  9176. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  9177. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate_range_group':
  9178. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:985:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9179. 985 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9180. | ^~~~~~~~
  9181. /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'
  9182. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  9183. | ^~~~~~~~
  9184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:985:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9185. 985 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9186. | ^~~~~~~~
  9187. /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'
  9188. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  9189. | ^~~~~~~~
  9190. /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]
  9191. 544 | down_read(_sem); \
  9192. | ^~~~
  9193. | |
  9194. | int
  9195. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:985:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  9196. 985 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9197. | ^~~~~~~~~~~~~~~~~~~~~~
  9198. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9199. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9200. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9201. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9202. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9203. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9204. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9205. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9206. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  9207. /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'
  9208. 125 | extern void down_read(struct rw_semaphore *sem);
  9209. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9210. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  9211. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  9212. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  9213. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  9214. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:1030:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9215. 1030 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  9216. | ^~~~~~~~
  9217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:554:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order'
  9218. 554 | typeof(mmap_sem) _sem = (mmap_sem); \
  9219. | ^~~~~~~~
  9220. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:1030:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9221. 1030 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  9222. | ^~~~~~~~
  9223. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:554:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order'
  9224. 554 | typeof(mmap_sem) _sem = (mmap_sem); \
  9225. | ^~~~~~~~
  9226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:555:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  9227. 555 | up_read(_sem); \
  9228. | ^~~~
  9229. | |
  9230. | int
  9231. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:1030:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order'
  9232. 1030 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  9233. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9234. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9235. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9236. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9237. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9238. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9239. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9240. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9241. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9242. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  9243. /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'
  9244. 147 | extern void up_read(struct rw_semaphore *sem);
  9245. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9246. cc1: some warnings being treated as errors
  9247. 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_migrate.o] Error 1
  9248. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.o
  9249. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  9250. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  9251. /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'?
  9252. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9253. | ^~~~~~~~
  9254. /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'
  9255. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9256. | ^~~~~~~~
  9257. /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'
  9258. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9259. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9260. /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'?
  9261. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9262. | ^~~~~~~~
  9263. /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'
  9264. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9265. | ^~~~~~~~
  9266. /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'
  9267. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9268. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9269. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9270. /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]
  9271. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9272. | ^~~~
  9273. | |
  9274. | int
  9275. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9276. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9277. | ^~~~
  9278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9279. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9280. | ^~~~~~~~~~~~~~~
  9281. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9282. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9283. | ^~~~~~~~~~
  9284. /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'
  9285. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9286. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9287. /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'
  9288. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9289. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9290. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9291. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9292. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9293. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9294. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9295. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9296. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9297. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9298. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9299. /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'
  9300. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  9301. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9302. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9303. /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]
  9304. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9305. | ^~~~
  9306. | |
  9307. | int
  9308. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9309. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9310. | ^~~~
  9311. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9312. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9313. | ^~~~~~~~~~~~~~~
  9314. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9315. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9316. | ^~~~~~~~~~
  9317. /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'
  9318. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9319. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9320. /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'
  9321. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9322. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9323. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  9324. /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'
  9325. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  9326. | ~~~~~~^~~~
  9327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_populate_pageable_vma':
  9328. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9329. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9330. | ^~~~~~~~
  9331. /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'
  9332. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9333. | ^~~~~~~~
  9334. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9335. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9336. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9337. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9338. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9339. | ^~~~~~~~
  9340. /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'
  9341. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9342. | ^~~~~~~~
  9343. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9344. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9345. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9346. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9347. /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]
  9348. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9349. | ^~~~
  9350. | |
  9351. | int
  9352. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9353. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9354. | ^~~~
  9355. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9356. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9357. | ^~~~~~~~~~~~~~~
  9358. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9359. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9360. | ^~~~~~~~~~
  9361. /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'
  9362. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9363. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9364. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9365. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9366. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9367. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9368. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9369. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9370. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9371. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9372. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9373. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9374. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9375. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9376. /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'
  9377. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  9378. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9379. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9380. /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]
  9381. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9382. | ^~~~
  9383. | |
  9384. | int
  9385. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9386. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9387. | ^~~~
  9388. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9389. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9390. | ^~~~~~~~~~~~~~~
  9391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9392. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9393. | ^~~~~~~~~~
  9394. /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'
  9395. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9396. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9397. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9398. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9399. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9400. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  9401. /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'
  9402. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  9403. | ~~~~~~^~~~
  9404. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9405. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:70:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9406. 70 | uvm_record_unlock_mmap_sem_read(&mm->mmap_sem);
  9407. | ^~~~~~~~
  9408. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9409. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9410. | ^~~~
  9411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:70:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read'
  9412. 70 | uvm_record_unlock_mmap_sem_read(&mm->mmap_sem);
  9413. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9414. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:75:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9415. 75 | uvm_record_lock_mmap_sem_read(&mm->mmap_sem);
  9416. | ^~~~~~~~
  9417. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9418. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9419. | ^~~~
  9420. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:75:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_read'
  9421. 75 | uvm_record_lock_mmap_sem_read(&mm->mmap_sem);
  9422. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9423. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  9424. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_populate_pageable':
  9425. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9426. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9427. | ^~~~~~~~
  9428. /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'
  9429. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9430. | ^~~~~~~~
  9431. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9432. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9433. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9435. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9436. | ^~~~~~~~
  9437. /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'
  9438. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9439. | ^~~~~~~~
  9440. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9441. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9442. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9443. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9444. /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]
  9445. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9446. | ^~~~
  9447. | |
  9448. | int
  9449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9450. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9451. | ^~~~
  9452. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9453. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9454. | ^~~~~~~~~~~~~~~
  9455. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9456. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9457. | ^~~~~~~~~~
  9458. /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'
  9459. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9460. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9461. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9462. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9463. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9464. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9465. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9466. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9467. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9468. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9469. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9470. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9471. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9472. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9473. /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'
  9474. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  9475. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9476. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9477. /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]
  9478. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9479. | ^~~~
  9480. | |
  9481. | int
  9482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9483. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9484. | ^~~~
  9485. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9486. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9487. | ^~~~~~~~~~~~~~~
  9488. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9489. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9490. | ^~~~~~~~~~
  9491. /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'
  9492. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9493. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9494. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  9495. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  9496. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9497. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  9498. /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'
  9499. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  9500. | ~~~~~~^~~~
  9501. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_api_populate_pageable':
  9502. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:159:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9503. 159 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9504. | ^~~~~~~~
  9505. /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'
  9506. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  9507. | ^~~~~~~~
  9508. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:159:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9509. 159 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9510. | ^~~~~~~~
  9511. /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'
  9512. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  9513. | ^~~~~~~~
  9514. /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]
  9515. 544 | down_read(_sem); \
  9516. | ^~~~
  9517. | |
  9518. | int
  9519. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:159:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  9520. 159 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  9521. | ^~~~~~~~~~~~~~~~~~~~~~
  9522. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9523. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9524. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9525. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9526. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9527. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9528. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9529. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9530. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9531. /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'
  9532. 125 | extern void down_read(struct rw_semaphore *sem);
  9533. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9534. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  9535. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:166:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9536. 166 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  9537. | ^~~~~~~~
  9538. /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'
  9539. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  9540. | ^~~~~~~~
  9541. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:166:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  9542. 166 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  9543. | ^~~~~~~~
  9544. /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'
  9545. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  9546. | ^~~~~~~~
  9547. /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]
  9548. 549 | up_read(_sem); \
  9549. | ^~~~
  9550. | |
  9551. | int
  9552. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:166:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  9553. 166 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  9554. | ^~~~~~~~~~~~~~~~~~~~
  9555. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9556. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9557. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9558. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9559. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9560. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9561. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9562. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9563. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  9564. /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'
  9565. 147 | extern void up_read(struct rw_semaphore *sem);
  9566. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9567. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  9568. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  9569. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  9570. /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
  9571. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  9572. | ^~~~~~~
  9573. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  9574. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  9575. 39 | *tv = (struct timeval) {
  9576. | ^~~
  9577. /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'
  9578. 40 | .tv_sec = now.tv_sec,
  9579. | ^~~~~~
  9580. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  9581. 40 | .tv_sec = now.tv_sec,
  9582. | ^~~
  9583. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  9584. /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'
  9585. 41 | .tv_usec = now.tv_nsec/1000,
  9586. | ^~~~~~~
  9587. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  9588. 41 | .tv_usec = now.tv_nsec/1000,
  9589. | ^~~
  9590. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  9591. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  9592. 39 | *tv = (struct timeval) {
  9593. | ^
  9594. cc1: some warnings being treated as errors
  9595. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9596. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9597. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  9598. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  9599. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  9600. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  9601. | ^~~~~~~~~
  9602. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  9603. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9604. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9605. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  9606. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  9607. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  9608. | ^~~~~~~~~
  9609. 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_populate_pageable.o] Error 1
  9610. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.o
  9611. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9612. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9613. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  9614. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  9615. /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]
  9616. 578 | void *ptr = ioremap_nocache(phys, size);
  9617. | ^~~~~~~~~~~~~~~
  9618. | ioremap_cache
  9619. /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]
  9620. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9621. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  9622. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  9623. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  9624. 325 | struct timespec ts = {0};
  9625. | ^~~~~~~~
  9626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  9627. 325 | struct timespec ts = {0};
  9628. | ^
  9629. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  9630. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  9631. 325 | struct timespec ts = {0};
  9632. | ^~
  9633. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9634. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9635. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  9636. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  9637. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  9638. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  9639. | ^~~~~~~~~
  9640. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  9641. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9642. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9643. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  9644. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  9645. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  9646. | ^~~~~~~~~
  9647. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9648. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9649. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  9650. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  9651. /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]
  9652. 578 | void *ptr = ioremap_nocache(phys, size);
  9653. | ^~~~~~~~~~~~~~~
  9654. | ioremap_cache
  9655. /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]
  9656. /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]
  9657. 327 | getrawmonotonic(&ts);
  9658. | ^~~~~~~~~~~~~~~
  9659. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  9660. 325 | struct timespec ts = {0};
  9661. | ^~
  9662. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  9663. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  9664. /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
  9665. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  9666. | ^~~~~~~
  9667. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  9668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  9669. 39 | *tv = (struct timeval) {
  9670. | ^~~
  9671. /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'
  9672. 40 | .tv_sec = now.tv_sec,
  9673. | ^~~~~~
  9674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  9675. 40 | .tv_sec = now.tv_sec,
  9676. | ^~~
  9677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  9678. /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'
  9679. 41 | .tv_usec = now.tv_nsec/1000,
  9680. | ^~~~~~~
  9681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  9682. 41 | .tv_usec = now.tv_nsec/1000,
  9683. | ^~~
  9684. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  9685. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  9686. 39 | *tv = (struct timeval) {
  9687. | ^
  9688. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9689. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  9690. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  9691. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  9692. 325 | struct timespec ts = {0};
  9693. | ^~~~~~~~
  9694. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  9695. 325 | struct timespec ts = {0};
  9696. | ^
  9697. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  9698. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  9699. 325 | struct timespec ts = {0};
  9700. | ^~
  9701. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9702. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9703. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  9704. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  9705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  9706. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  9707. | ^~~~~~~~~
  9708. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  9709. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9710. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9711. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  9712. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  9713. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  9714. | ^~~~~~~~~
  9715. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9716. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9717. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  9718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  9719. /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]
  9720. 578 | void *ptr = ioremap_nocache(phys, size);
  9721. | ^~~~~~~~~~~~~~~
  9722. | ioremap_cache
  9723. /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]
  9724. /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]
  9725. 327 | getrawmonotonic(&ts);
  9726. | ^~~~~~~~~~~~~~~
  9727. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  9728. 325 | struct timespec ts = {0};
  9729. | ^~
  9730. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9731. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  9732. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  9733. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  9734. 325 | struct timespec ts = {0};
  9735. | ^~~~~~~~
  9736. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  9737. 325 | struct timespec ts = {0};
  9738. | ^
  9739. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  9740. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  9741. 325 | struct timespec ts = {0};
  9742. | ^~
  9743. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  9744. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  9745. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  9746. /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
  9747. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  9748. | ^~~~~~~
  9749. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  9750. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  9751. 39 | *tv = (struct timeval) {
  9752. | ^~~
  9753. /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'
  9754. 40 | .tv_sec = now.tv_sec,
  9755. | ^~~~~~
  9756. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  9757. 40 | .tv_sec = now.tv_sec,
  9758. | ^~~
  9759. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  9760. /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'
  9761. 41 | .tv_usec = now.tv_nsec/1000,
  9762. | ^~~~~~~
  9763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  9764. 41 | .tv_usec = now.tv_nsec/1000,
  9765. | ^~~
  9766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  9767. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  9768. 39 | *tv = (struct timeval) {
  9769. | ^
  9770. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9771. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  9772. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  9773. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  9774. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  9775. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  9776. | ^~~~~~~~~
  9777. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  9778. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9779. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  9780. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  9781. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  9782. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  9783. | ^~~~~~~~~
  9784. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9785. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  9786. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  9787. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  9788. /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]
  9789. 578 | void *ptr = ioremap_nocache(phys, size);
  9790. | ^~~~~~~~~~~~~~~
  9791. | ioremap_cache
  9792. /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]
  9793. /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]
  9794. 327 | getrawmonotonic(&ts);
  9795. | ^~~~~~~~~~~~~~~
  9796. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  9797. 325 | struct timespec ts = {0};
  9798. | ^~
  9799. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  9800. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  9801. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  9802. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  9803. 325 | struct timespec ts = {0};
  9804. | ^~~~~~~~
  9805. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  9806. 325 | struct timespec ts = {0};
  9807. | ^
  9808. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  9809. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  9810. 325 | struct timespec ts = {0};
  9811. | ^~
  9812. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9813. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  9814. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  9815. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  9816. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  9817. | ^~~~~~~~~
  9818. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  9819. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9820. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  9821. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  9822. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  9823. | ^~~~~~~~~
  9824. /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]
  9825. 327 | getrawmonotonic(&ts);
  9826. | ^~~~~~~~~~~~~~~
  9827. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  9828. 325 | struct timespec ts = {0};
  9829. | ^~
  9830. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9831. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  9832. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  9833. /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]
  9834. 578 | void *ptr = ioremap_nocache(phys, size);
  9835. | ^~~~~~~~~~~~~~~
  9836. | ioremap_cache
  9837. /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]
  9838. cc1: some warnings being treated as errors
  9839. 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_hmm.o] Error 1
  9840. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.o
  9841. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  9842. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  9843. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  9844. 325 | struct timespec ts = {0};
  9845. | ^~~~~~~~
  9846. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  9847. 325 | struct timespec ts = {0};
  9848. | ^
  9849. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  9850. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  9851. 325 | struct timespec ts = {0};
  9852. | ^~
  9853. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  9854. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  9855. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:27:
  9856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  9857. /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'?
  9858. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9859. | ^~~~~~~~
  9860. /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'
  9861. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9862. | ^~~~~~~~
  9863. /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'
  9864. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9865. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9866. /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'?
  9867. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9868. | ^~~~~~~~
  9869. /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'
  9870. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9871. | ^~~~~~~~
  9872. /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'
  9873. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9874. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9875. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  9876. /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]
  9877. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9878. | ^~~~
  9879. | |
  9880. | int
  9881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9882. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9883. | ^~~~
  9884. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9885. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9886. | ^~~~~~~~~~~~~~~
  9887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9888. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9889. | ^~~~~~~~~~
  9890. /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'
  9891. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9892. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9893. /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'
  9894. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9895. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9896. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9897. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9898. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9899. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9900. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9901. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9902. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9903. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9904. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  9905. /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'
  9906. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  9907. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9908. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  9909. /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]
  9910. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9911. | ^~~~
  9912. | |
  9913. | int
  9914. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9915. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9916. | ^~~~
  9917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9918. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9919. | ^~~~~~~~~~~~~~~
  9920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9921. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9922. | ^~~~~~~~~~
  9923. /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'
  9924. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9925. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9926. /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'
  9927. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9928. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9929. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  9930. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  9931. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:27:
  9932. /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'
  9933. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  9934. | ~~~~~~^~~~
  9935. /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]
  9936. 327 | getrawmonotonic(&ts);
  9937. | ^~~~~~~~~~~~~~~
  9938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  9939. 325 | struct timespec ts = {0};
  9940. | ^~
  9941. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:27:
  9942. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  9943. /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'?
  9944. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9945. | ^~~~~~~~
  9946. /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'
  9947. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9948. | ^~~~~~~~
  9949. /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'
  9950. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9951. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9952. /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'?
  9953. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9954. | ^~~~~~~~
  9955. /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'
  9956. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  9957. | ^~~~~~~~
  9958. /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'
  9959. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9960. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9961. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  9962. /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]
  9963. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9964. | ^~~~
  9965. | |
  9966. | int
  9967. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  9968. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  9969. | ^~~~
  9970. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  9971. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  9972. | ^~~~~~~~~~~~~~~
  9973. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  9974. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9975. | ^~~~~~~~~~
  9976. /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'
  9977. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  9978. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9979. /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'
  9980. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  9981. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  9982. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  9983. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  9984. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  9985. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  9986. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  9987. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  9988. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  9989. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  9990. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  9991. /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'
  9992. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  9993. | ~~~~~~~~~~~~~~~~~~~~~^~~
  9994. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  9995. /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]
  9996. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  9997. | ^~~~
  9998. | |
  9999. | int
  10000. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10001. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10002. | ^~~~
  10003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10004. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10005. | ^~~~~~~~~~~~~~~
  10006. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10007. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10008. | ^~~~~~~~~~
  10009. /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'
  10010. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10011. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10012. /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'
  10013. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10014. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10015. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:27:
  10016. /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'
  10017. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  10018. | ~~~~~~^~~~
  10019. cc1: some warnings being treated as errors
  10020. 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_migrate_pageable.o] Error 1
  10021. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10022. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10023. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10024. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  10025. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  10026. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  10027. | ^~~~~~~~~
  10028. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  10029. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10030. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10031. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10032. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  10033. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  10034. | ^~~~~~~~~
  10035. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.o
  10036. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10037. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10038. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10039. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  10040. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  10041. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  10042. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  10043. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  10044. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:26:
  10045. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  10046. /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'?
  10047. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10048. | ^~~~~~~~
  10049. /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'
  10050. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10051. | ^~~~~~~~
  10052. /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'
  10053. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10054. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10055. /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'?
  10056. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10057. | ^~~~~~~~
  10058. /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'
  10059. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10060. | ^~~~~~~~
  10061. /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'
  10062. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10063. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10064. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  10065. /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]
  10066. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10067. | ^~~~
  10068. | |
  10069. | int
  10070. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10071. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10072. | ^~~~
  10073. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10074. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10075. | ^~~~~~~~~~~~~~~
  10076. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10077. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10078. | ^~~~~~~~~~
  10079. /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'
  10080. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10081. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10082. /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'
  10083. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10084. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10085. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  10086. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  10087. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  10088. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  10089. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  10090. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  10091. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10092. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10093. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  10094. /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'
  10095. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  10096. | ~~~~~~~~~~~~~~~~~~~~~^~~
  10097. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  10098. /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]
  10099. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10100. | ^~~~
  10101. | |
  10102. | int
  10103. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10104. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10105. | ^~~~
  10106. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10107. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10108. | ^~~~~~~~~~~~~~~
  10109. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10110. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10111. | ^~~~~~~~~~
  10112. /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'
  10113. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10114. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10115. /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'
  10116. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10117. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10118. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  10119. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  10120. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  10121. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  10122. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:26:
  10123. /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'
  10124. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  10125. | ~~~~~~^~~~
  10126. cc1: some warnings being treated as errors
  10127. /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]
  10128. 578 | void *ptr = ioremap_nocache(phys, size);
  10129. | ^~~~~~~~~~~~~~~
  10130. | ioremap_cache
  10131. /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]
  10132. 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_map_external.o] Error 1
  10133. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.o
  10134. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10135. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10136. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  10137. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  10138. 325 | struct timespec ts = {0};
  10139. | ^~~~~~~~
  10140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  10141. 325 | struct timespec ts = {0};
  10142. | ^
  10143. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  10144. cc1: some warnings being treated as errors
  10145. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  10146. 325 | struct timespec ts = {0};
  10147. | ^~
  10148. 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_user_channel.o] Error 1
  10149. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.o
  10150. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  10151. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  10152. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  10153. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10154. /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
  10155. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  10156. | ^~~~~~~
  10157. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  10158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  10159. 39 | *tv = (struct timeval) {
  10160. | ^~~
  10161. /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'
  10162. 40 | .tv_sec = now.tv_sec,
  10163. | ^~~~~~
  10164. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  10165. 40 | .tv_sec = now.tv_sec,
  10166. | ^~~
  10167. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  10168. /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'
  10169. 41 | .tv_usec = now.tv_nsec/1000,
  10170. | ^~~~~~~
  10171. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  10172. 41 | .tv_usec = now.tv_nsec/1000,
  10173. | ^~~
  10174. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  10175. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  10176. 39 | *tv = (struct timeval) {
  10177. | ^
  10178. /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]
  10179. 327 | getrawmonotonic(&ts);
  10180. | ^~~~~~~~~~~~~~~
  10181. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  10182. 325 | struct timespec ts = {0};
  10183. | ^~
  10184. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10185. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  10186. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  10187. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  10188. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  10189. | ^~~~~~~~~
  10190. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  10191. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10192. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  10193. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  10194. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  10195. | ^~~~~~~~~
  10196. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10197. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  10198. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  10199. /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]
  10200. 578 | void *ptr = ioremap_nocache(phys, size);
  10201. | ^~~~~~~~~~~~~~~
  10202. | ioremap_cache
  10203. /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]
  10204. cc1: some warnings being treated as errors
  10205. 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_heuristics.o] Error 1
  10206. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.o
  10207. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  10208. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  10209. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  10210. 325 | struct timespec ts = {0};
  10211. | ^~~~~~~~
  10212. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  10213. 325 | struct timespec ts = {0};
  10214. | ^
  10215. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  10216. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  10217. 325 | struct timespec ts = {0};
  10218. | ^~
  10219. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  10220. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  10221. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  10222. /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
  10223. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  10224. | ^~~~~~~
  10225. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  10226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  10227. 39 | *tv = (struct timeval) {
  10228. | ^~~
  10229. /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'
  10230. 40 | .tv_sec = now.tv_sec,
  10231. | ^~~~~~
  10232. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  10233. 40 | .tv_sec = now.tv_sec,
  10234. | ^~~
  10235. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  10236. /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'
  10237. 41 | .tv_usec = now.tv_nsec/1000,
  10238. | ^~~~~~~
  10239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  10240. 41 | .tv_usec = now.tv_nsec/1000,
  10241. | ^~~
  10242. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  10243. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  10244. 39 | *tv = (struct timeval) {
  10245. | ^
  10246. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10247. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  10248. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  10249. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  10250. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  10251. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  10252. | ^~~~~~~~~
  10253. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  10254. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10255. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  10256. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  10257. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  10258. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  10259. | ^~~~~~~~~
  10260. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10261. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  10262. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  10263. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  10264. /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]
  10265. 578 | void *ptr = ioremap_nocache(phys, size);
  10266. | ^~~~~~~~~~~~~~~
  10267. | ioremap_cache
  10268. /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]
  10269. /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]
  10270. 327 | getrawmonotonic(&ts);
  10271. | ^~~~~~~~~~~~~~~
  10272. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  10273. 325 | struct timespec ts = {0};
  10274. | ^~
  10275. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  10276. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  10277. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  10278. /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
  10279. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  10280. | ^~~~~~~
  10281. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  10282. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  10283. 39 | *tv = (struct timeval) {
  10284. | ^~~
  10285. /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'
  10286. 40 | .tv_sec = now.tv_sec,
  10287. | ^~~~~~
  10288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  10289. 40 | .tv_sec = now.tv_sec,
  10290. | ^~~
  10291. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  10292. /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'
  10293. 41 | .tv_usec = now.tv_nsec/1000,
  10294. | ^~~~~~~
  10295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  10296. 41 | .tv_usec = now.tv_nsec/1000,
  10297. | ^~~
  10298. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  10299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  10300. 39 | *tv = (struct timeval) {
  10301. | ^
  10302. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  10303. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  10304. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  10305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  10306. 325 | struct timespec ts = {0};
  10307. | ^~~~~~~~
  10308. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  10309. 325 | struct timespec ts = {0};
  10310. | ^
  10311. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  10312. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  10313. 325 | struct timespec ts = {0};
  10314. | ^~
  10315. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  10316. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10317. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  10318. /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
  10319. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  10320. | ^~~~~~~
  10321. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  10322. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  10323. 39 | *tv = (struct timeval) {
  10324. | ^~~
  10325. /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'
  10326. 40 | .tv_sec = now.tv_sec,
  10327. | ^~~~~~
  10328. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  10329. 40 | .tv_sec = now.tv_sec,
  10330. | ^~~
  10331. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  10332. /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'
  10333. 41 | .tv_usec = now.tv_nsec/1000,
  10334. | ^~~~~~~
  10335. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  10336. 41 | .tv_usec = now.tv_nsec/1000,
  10337. | ^~~
  10338. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  10339. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  10340. 39 | *tv = (struct timeval) {
  10341. | ^
  10342. /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]
  10343. 327 | getrawmonotonic(&ts);
  10344. | ^~~~~~~~~~~~~~~
  10345. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  10346. 325 | struct timespec ts = {0};
  10347. | ^~
  10348. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  10349. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  10351. /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'?
  10352. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10353. | ^~~~~~~~
  10354. /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'
  10355. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10356. | ^~~~~~~~
  10357. /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'
  10358. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10359. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10360. /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'?
  10361. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10362. | ^~~~~~~~
  10363. /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'
  10364. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10365. | ^~~~~~~~
  10366. /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'
  10367. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10368. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10369. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  10370. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  10371. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10372. /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]
  10373. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10374. | ^~~~
  10375. | |
  10376. | int
  10377. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10378. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10379. | ^~~~
  10380. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10381. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10382. | ^~~~~~~~~~~~~~~
  10383. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10384. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10385. | ^~~~~~~~~~
  10386. /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'
  10387. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10388. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10389. /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'
  10390. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10391. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10392. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  10393. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  10394. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  10395. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  10396. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  10397. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  10398. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10399. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10400. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10401. /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'
  10402. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  10403. | ~~~~~~~~~~~~~~~~~~~~~^~~
  10404. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  10405. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  10406. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10407. /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]
  10408. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10409. | ^~~~
  10410. | |
  10411. | int
  10412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10413. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10414. | ^~~~
  10415. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10416. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10417. | ^~~~~~~~~~~~~~~
  10418. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10419. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10420. | ^~~~~~~~~~
  10421. /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'
  10422. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10423. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10424. /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'
  10425. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10426. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10427. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  10428. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10429. /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'
  10430. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  10431. | ~~~~~~^~~~
  10432. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  10433. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10434. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10435. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10436. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c: In function 'cpu_thrashing_stats_init':
  10437. /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]
  10438. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  10439. | ^~~~
  10440. | |
  10441. | const struct file_operations *
  10442. /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'
  10443. 39 | proc_create_data(name, mode, parent, fops, __data)
  10444. | ^~~~
  10445. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:427:45: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  10446. 427 | g_cpu_thrashing_stats.procfs_file = NV_CREATE_PROC_FILE(THRASHING_STATS_FILE_NAME,
  10447. | ^~~~~~~~~~~~~~~~~~~
  10448. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  10449. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  10450. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10451. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10452. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10453. /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 *'
  10454. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  10455. | ^~~~~~~~~~~~~~~~
  10456. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  10457. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10458. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10459. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10460. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c: In function 'gpu_thrashing_stats_create':
  10461. /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]
  10462. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  10463. | ^~~~
  10464. | |
  10465. | const struct file_operations *
  10466. /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'
  10467. 39 | proc_create_data(name, mode, parent, fops, __data)
  10468. | ^~~~
  10469. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:482:34: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  10470. 482 | gpu_thrashing->procfs_file = NV_CREATE_PROC_FILE(THRASHING_STATS_FILE_NAME,
  10471. | ^~~~~~~~~~~~~~~~~~~
  10472. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  10473. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  10474. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10475. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10476. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10477. /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 *'
  10478. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  10479. | ^~~~~~~~~~~~~~~~
  10480. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  10481. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10482. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  10483. /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
  10484. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  10485. | ^~~~~~~
  10486. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  10487. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  10488. 39 | *tv = (struct timeval) {
  10489. | ^~~
  10490. /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'
  10491. 40 | .tv_sec = now.tv_sec,
  10492. | ^~~~~~
  10493. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  10494. 40 | .tv_sec = now.tv_sec,
  10495. | ^~~
  10496. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  10497. /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'
  10498. 41 | .tv_usec = now.tv_nsec/1000,
  10499. | ^~~~~~~
  10500. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  10501. 41 | .tv_usec = now.tv_nsec/1000,
  10502. | ^~~
  10503. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  10504. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  10505. 39 | *tv = (struct timeval) {
  10506. | ^
  10507. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  10508. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  10509. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  10510. /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]
  10511. 331 | }
  10512. | ^
  10513. cc1: some warnings being treated as errors
  10514. 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_thrashing.o] Error 1
  10515. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o
  10516. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  10517. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25:
  10518. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  10519. /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'?
  10520. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10521. | ^~~~~~~~
  10522. /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'
  10523. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10524. | ^~~~~~~~
  10525. /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'
  10526. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10527. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10528. /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'?
  10529. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10530. | ^~~~~~~~
  10531. /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'
  10532. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10533. | ^~~~~~~~
  10534. /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'
  10535. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10536. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10537. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  10538. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  10539. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25:
  10540. /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]
  10541. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10542. | ^~~~
  10543. | |
  10544. | int
  10545. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10546. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10547. | ^~~~
  10548. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10549. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10550. | ^~~~~~~~~~~~~~~
  10551. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10552. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10553. | ^~~~~~~~~~
  10554. /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'
  10555. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10556. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10557. /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'
  10558. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10559. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10560. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  10561. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  10562. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  10563. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  10564. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  10565. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  10566. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10567. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  10568. /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'
  10569. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  10570. | ~~~~~~~~~~~~~~~~~~~~~^~~
  10571. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  10572. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  10573. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25:
  10574. /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]
  10575. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10576. | ^~~~
  10577. | |
  10578. | int
  10579. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10580. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10581. | ^~~~
  10582. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10583. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10584. | ^~~~~~~~~~~~~~~
  10585. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10586. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10587. | ^~~~~~~~~~
  10588. /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'
  10589. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10590. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10591. /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'
  10592. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10593. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10594. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  10595. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25:
  10596. /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'
  10597. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  10598. | ~~~~~~^~~~
  10599. cc1: some warnings being treated as errors
  10600. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10601. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  10602. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  10603. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10604. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  10605. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  10606. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  10607. | ^~~~~~~~~
  10608. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  10609. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10610. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  10611. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  10612. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10613. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  10614. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  10615. | ^~~~~~~~~
  10616. 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_prefetch.o] Error 1
  10617. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.o
  10618. cc1: some warnings being treated as errors
  10619. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10620. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  10621. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  10622. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10623. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  10624. /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]
  10625. 578 | void *ptr = ioremap_nocache(phys, size);
  10626. | ^~~~~~~~~~~~~~~
  10627. | ioremap_cache
  10628. /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]
  10629. 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_ats_ibm.o] Error 1
  10630. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.o
  10631. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  10632. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  10633. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10634. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  10635. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  10636. 325 | struct timespec ts = {0};
  10637. | ^~~~~~~~
  10638. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  10639. 325 | struct timespec ts = {0};
  10640. | ^
  10641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  10642. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  10643. 325 | struct timespec ts = {0};
  10644. | ^~
  10645. /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]
  10646. 327 | getrawmonotonic(&ts);
  10647. | ^~~~~~~~~~~~~~~
  10648. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  10649. 325 | struct timespec ts = {0};
  10650. | ^~
  10651. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  10652. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  10653. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  10654. /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
  10655. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  10656. | ^~~~~~~
  10657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  10658. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  10659. 39 | *tv = (struct timeval) {
  10660. | ^~~
  10661. /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'
  10662. 40 | .tv_sec = now.tv_sec,
  10663. | ^~~~~~
  10664. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  10665. 40 | .tv_sec = now.tv_sec,
  10666. | ^~~
  10667. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  10668. /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'
  10669. 41 | .tv_usec = now.tv_nsec/1000,
  10670. | ^~~~~~~
  10671. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  10672. 41 | .tv_usec = now.tv_nsec/1000,
  10673. | ^~~
  10674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  10675. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  10676. 39 | *tv = (struct timeval) {
  10677. | ^
  10678. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10679. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  10680. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  10681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  10682. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  10683. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  10684. | ^~~~~~~~~
  10685. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  10686. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10687. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  10688. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  10689. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  10690. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  10691. | ^~~~~~~~~
  10692. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10693. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  10694. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  10695. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  10696. /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]
  10697. 578 | void *ptr = ioremap_nocache(phys, size);
  10698. | ^~~~~~~~~~~~~~~
  10699. | ioremap_cache
  10700. /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]
  10701. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  10702. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  10703. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  10704. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  10705. 325 | struct timespec ts = {0};
  10706. | ^~~~~~~~
  10707. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  10708. 325 | struct timespec ts = {0};
  10709. | ^
  10710. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  10711. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  10712. 325 | struct timespec ts = {0};
  10713. | ^~
  10714. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10715. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  10716. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  10717. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  10718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  10719. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  10720. | ^~~~~~~~~
  10721. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  10722. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10723. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  10724. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  10725. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  10726. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  10727. | ^~~~~~~~~
  10728. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10729. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10730. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  10731. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  10732. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  10733. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  10734. | ^~~~~~~~~
  10735. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  10736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10737. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10738. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  10739. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  10740. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  10741. | ^~~~~~~~~
  10742. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10743. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  10744. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  10745. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  10746. /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]
  10747. 578 | void *ptr = ioremap_nocache(phys, size);
  10748. | ^~~~~~~~~~~~~~~
  10749. | ioremap_cache
  10750. /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]
  10751. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10752. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10753. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  10754. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  10755. /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]
  10756. 578 | void *ptr = ioremap_nocache(phys, size);
  10757. | ^~~~~~~~~~~~~~~
  10758. | ioremap_cache
  10759. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  10760. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10761. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  10762. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  10763. /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
  10764. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  10765. | ^~~~~~~
  10766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  10767. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  10768. 39 | *tv = (struct timeval) {
  10769. | ^~~
  10770. /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'
  10771. 40 | .tv_sec = now.tv_sec,
  10772. | ^~~~~~
  10773. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  10774. 40 | .tv_sec = now.tv_sec,
  10775. | ^~~
  10776. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  10777. /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'
  10778. 41 | .tv_usec = now.tv_nsec/1000,
  10779. | ^~~~~~~
  10780. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  10781. 41 | .tv_usec = now.tv_nsec/1000,
  10782. | ^~~
  10783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  10784. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  10785. 39 | *tv = (struct timeval) {
  10786. | ^
  10787. /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]
  10788. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  10789. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  10790. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  10791. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  10792. /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
  10793. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  10794. | ^~~~~~~
  10795. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  10796. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  10797. 39 | *tv = (struct timeval) {
  10798. | ^~~
  10799. /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'
  10800. 40 | .tv_sec = now.tv_sec,
  10801. | ^~~~~~
  10802. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  10803. 40 | .tv_sec = now.tv_sec,
  10804. | ^~~
  10805. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  10806. /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'
  10807. 41 | .tv_usec = now.tv_nsec/1000,
  10808. | ^~~~~~~
  10809. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  10810. 41 | .tv_usec = now.tv_nsec/1000,
  10811. | ^~~
  10812. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  10813. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  10814. 39 | *tv = (struct timeval) {
  10815. | ^
  10816. /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]
  10817. 327 | getrawmonotonic(&ts);
  10818. | ^~~~~~~~~~~~~~~
  10819. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  10820. 325 | struct timespec ts = {0};
  10821. | ^~
  10822. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  10823. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  10824. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  10825. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  10826. 325 | struct timespec ts = {0};
  10827. | ^~~~~~~~
  10828. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  10829. 325 | struct timespec ts = {0};
  10830. | ^
  10831. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  10832. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  10833. 325 | struct timespec ts = {0};
  10834. | ^~
  10835. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10836. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  10837. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  10838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  10839. 325 | struct timespec ts = {0};
  10840. | ^~~~~~~~
  10841. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  10842. 325 | struct timespec ts = {0};
  10843. | ^
  10844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  10845. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  10846. 325 | struct timespec ts = {0};
  10847. | ^~
  10848. /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]
  10849. 327 | getrawmonotonic(&ts);
  10850. | ^~~~~~~~~~~~~~~
  10851. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  10852. 325 | struct timespec ts = {0};
  10853. | ^~
  10854. /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]
  10855. 327 | getrawmonotonic(&ts);
  10856. | ^~~~~~~~~~~~~~~
  10857. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  10858. 325 | struct timespec ts = {0};
  10859. | ^~
  10860. cc1: some warnings being treated as errors
  10861. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10862. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10863. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  10864. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  10865. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  10866. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  10867. | ^~~~~~~~~
  10868. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  10869. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10870. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10871. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  10872. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  10873. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  10874. | ^~~~~~~~~
  10875. 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_test_rng.o] Error 1
  10876. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.o
  10877. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10878. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  10879. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  10880. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  10881. /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]
  10882. 578 | void *ptr = ioremap_nocache(phys, size);
  10883. | ^~~~~~~~~~~~~~~
  10884. | ioremap_cache
  10885. /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]
  10886. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  10887. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  10888. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:29,
  10889. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:29,
  10890. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_types.h:28,
  10891. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:32,
  10892. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10893. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  10894. /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'?
  10895. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10896. | ^~~~~~~~
  10897. /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'
  10898. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10899. | ^~~~~~~~
  10900. /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'
  10901. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10902. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10903. /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'?
  10904. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10905. | ^~~~~~~~
  10906. /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'
  10907. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10908. | ^~~~~~~~
  10909. /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'
  10910. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10911. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10912. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  10913. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  10914. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10915. /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]
  10916. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10917. | ^~~~
  10918. | |
  10919. | int
  10920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10921. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10922. | ^~~~
  10923. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10924. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10925. | ^~~~~~~~~~~~~~~
  10926. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10927. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10928. | ^~~~~~~~~~
  10929. /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'
  10930. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10931. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10932. /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'
  10933. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10934. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10935. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  10936. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  10937. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  10938. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  10939. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  10940. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  10941. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  10942. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  10943. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  10944. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10945. /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'
  10946. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  10947. | ~~~~~~~~~~~~~~~~~~~~~^~~
  10948. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  10949. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  10950. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10951. /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]
  10952. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10953. | ^~~~
  10954. | |
  10955. | int
  10956. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  10957. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  10958. | ^~~~
  10959. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  10960. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  10961. | ^~~~~~~~~~~~~~~
  10962. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  10963. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  10964. | ^~~~~~~~~~
  10965. /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'
  10966. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  10967. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10968. /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'
  10969. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  10970. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10971. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  10972. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  10973. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:29,
  10974. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:29,
  10975. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_types.h:28,
  10976. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:32,
  10977. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  10978. /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'
  10979. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  10980. | ~~~~~~^~~~
  10981. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults':
  10982. /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'?
  10983. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  10984. | ^~~~~~~~
  10985. /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'
  10986. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10987. | ^~~~~~~~
  10988. /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'
  10989. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  10990. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  10991. /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'?
  10992. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  10993. | ^~~~~~~~
  10994. /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'
  10995. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  10996. | ^~~~~~~~
  10997. /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'
  10998. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  10999. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11000. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  11001. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  11002. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  11003. /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]
  11004. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  11005. | ^~~~
  11006. | |
  11007. | int
  11008. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  11009. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  11010. | ^~~~
  11011. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  11012. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  11013. | ^~~~~~~~~~~~~~~
  11014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  11015. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  11016. | ^~~~~~~~~~
  11017. /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'
  11018. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  11019. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11020. /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'
  11021. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  11022. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11023. cc1: some warnings being treated as errors
  11024. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11025. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  11026. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11027. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11028. 325 | struct timespec ts = {0};
  11029. | ^~~~~~~~
  11030. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11031. 325 | struct timespec ts = {0};
  11032. | ^
  11033. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11034. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11035. 325 | struct timespec ts = {0};
  11036. | ^~
  11037. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  11038. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  11039. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  11040. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  11041. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  11042. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  11043. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11044. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  11045. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  11046. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  11047. /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'
  11048. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  11049. | ~~~~~~~~~~~~~~~~~~~~~^~~
  11050. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  11051. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  11052. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  11053. /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]
  11054. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  11055. | ^~~~
  11056. | |
  11057. | int
  11058. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  11059. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  11060. | ^~~~
  11061. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  11062. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  11063. | ^~~~~~~~~~~~~~~
  11064. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  11065. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  11066. | ^~~~~~~~~~
  11067. /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'
  11068. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  11069. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11070. /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'
  11071. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  11072. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11073. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11074. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11075. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:29,
  11076. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:29,
  11077. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_types.h:28,
  11078. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:32,
  11079. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  11080. /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'
  11081. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  11082. | ~~~~~~^~~~
  11083. 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_test.o] Error 1
  11084. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.o
  11085. cc1: some warnings being treated as errors
  11086. 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_ats_faults.o] Error 1
  11087. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.o
  11088. /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]
  11089. 327 | getrawmonotonic(&ts);
  11090. | ^~~~~~~~~~~~~~~
  11091. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11092. 325 | struct timespec ts = {0};
  11093. | ^~
  11094. cc1: some warnings being treated as errors
  11095. 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_test.o] Error 1
  11096. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.o
  11097. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  11098. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  11099. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  11100. /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'?
  11101. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  11102. | ^~~~~~~~
  11103. /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'
  11104. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  11105. | ^~~~~~~~
  11106. /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'
  11107. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  11108. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11109. /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'?
  11110. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  11111. | ^~~~~~~~
  11112. /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'
  11113. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  11114. | ^~~~~~~~
  11115. /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'
  11116. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  11117. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11118. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  11119. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  11120. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  11121. /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]
  11122. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  11123. | ^~~~
  11124. | |
  11125. | int
  11126. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  11127. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  11128. | ^~~~
  11129. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  11130. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  11131. | ^~~~~~~~~~~~~~~
  11132. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  11133. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  11134. | ^~~~~~~~~~
  11135. /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'
  11136. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  11137. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11138. /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'
  11139. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  11140. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11141. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  11142. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  11143. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  11144. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  11145. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  11146. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  11147. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11148. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  11149. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  11150. /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'
  11151. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  11152. | ~~~~~~~~~~~~~~~~~~~~~^~~
  11153. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  11154. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  11155. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  11156. /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]
  11157. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  11158. | ^~~~
  11159. | |
  11160. | int
  11161. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  11162. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  11163. | ^~~~
  11164. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  11165. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  11166. | ^~~~~~~~~~~~~~~
  11167. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  11168. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  11169. | ^~~~~~~~~~
  11170. /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'
  11171. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  11172. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11173. /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'
  11174. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  11175. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  11176. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  11177. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  11178. /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'
  11179. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  11180. | ~~~~~~^~~~
  11181. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11182. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11183. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  11184. /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
  11185. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11186. | ^~~~~~~
  11187. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11188. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11189. 39 | *tv = (struct timeval) {
  11190. | ^~~
  11191. /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'
  11192. 40 | .tv_sec = now.tv_sec,
  11193. | ^~~~~~
  11194. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11195. 40 | .tv_sec = now.tv_sec,
  11196. | ^~~
  11197. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11198. /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'
  11199. 41 | .tv_usec = now.tv_nsec/1000,
  11200. | ^~~~~~~
  11201. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11202. 41 | .tv_usec = now.tv_nsec/1000,
  11203. | ^~~
  11204. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11205. cc1: some warnings being treated as errors
  11206. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11207. 39 | *tv = (struct timeval) {
  11208. | ^
  11209. 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_test.o] Error 1
  11210. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.o
  11211. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11212. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11213. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11214. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11215. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  11216. /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
  11217. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11218. | ^~~~~~~
  11219. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11220. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11221. 39 | *tv = (struct timeval) {
  11222. | ^~~
  11223. /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'
  11224. 40 | .tv_sec = now.tv_sec,
  11225. | ^~~~~~
  11226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11227. 40 | .tv_sec = now.tv_sec,
  11228. | ^~~
  11229. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11230. /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'
  11231. 41 | .tv_usec = now.tv_nsec/1000,
  11232. | ^~~~~~~
  11233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11234. 41 | .tv_usec = now.tv_nsec/1000,
  11235. | ^~~
  11236. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11238. 39 | *tv = (struct timeval) {
  11239. | ^
  11240. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11241. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11242. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  11243. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11244. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11245. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11246. | ^~~~~~~~~
  11247. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11248. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11249. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11250. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  11251. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11252. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11253. | ^~~~~~~~~
  11254. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11255. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11256. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  11257. /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
  11258. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11259. | ^~~~~~~
  11260. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11261. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11262. 39 | *tv = (struct timeval) {
  11263. | ^~~
  11264. /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'
  11265. 40 | .tv_sec = now.tv_sec,
  11266. | ^~~~~~
  11267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11268. 40 | .tv_sec = now.tv_sec,
  11269. | ^~~
  11270. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11271. /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'
  11272. 41 | .tv_usec = now.tv_nsec/1000,
  11273. | ^~~~~~~
  11274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11275. 41 | .tv_usec = now.tv_nsec/1000,
  11276. | ^~~
  11277. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11279. 39 | *tv = (struct timeval) {
  11280. | ^
  11281. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11282. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11283. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  11284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11285. /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]
  11286. 578 | void *ptr = ioremap_nocache(phys, size);
  11287. | ^~~~~~~~~~~~~~~
  11288. | ioremap_cache
  11289. /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]
  11290. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11291. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  11292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11293. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11294. 325 | struct timespec ts = {0};
  11295. | ^~~~~~~~
  11296. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11297. 325 | struct timespec ts = {0};
  11298. | ^
  11299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11300. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11301. 325 | struct timespec ts = {0};
  11302. | ^~
  11303. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11304. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11305. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  11306. /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
  11307. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11308. | ^~~~~~~
  11309. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11310. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11311. 39 | *tv = (struct timeval) {
  11312. | ^~~
  11313. /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'
  11314. 40 | .tv_sec = now.tv_sec,
  11315. | ^~~~~~
  11316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11317. 40 | .tv_sec = now.tv_sec,
  11318. | ^~~
  11319. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11320. /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'
  11321. 41 | .tv_usec = now.tv_nsec/1000,
  11322. | ^~~~~~~
  11323. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11324. 41 | .tv_usec = now.tv_nsec/1000,
  11325. | ^~~
  11326. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11328. 39 | *tv = (struct timeval) {
  11329. | ^
  11330. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11331. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  11332. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  11333. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  11334. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11335. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11336. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11337. | ^~~~~~~~~
  11338. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11339. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11340. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  11341. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  11342. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  11343. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11344. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11345. | ^~~~~~~~~
  11346. /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]
  11347. 327 | getrawmonotonic(&ts);
  11348. | ^~~~~~~~~~~~~~~
  11349. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11350. 325 | struct timespec ts = {0};
  11351. | ^~
  11352. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11353. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  11354. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  11355. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  11356. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11357. /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]
  11358. 578 | void *ptr = ioremap_nocache(phys, size);
  11359. | ^~~~~~~~~~~~~~~
  11360. | ioremap_cache
  11361. /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]
  11362. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11363. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11364. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  11365. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  11366. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11367. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11368. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11369. | ^~~~~~~~~
  11370. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11371. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11372. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11373. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  11374. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  11375. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11376. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11377. | ^~~~~~~~~
  11378. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11379. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11380. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  11381. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  11382. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11383. /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]
  11384. 578 | void *ptr = ioremap_nocache(phys, size);
  11385. | ^~~~~~~~~~~~~~~
  11386. | ioremap_cache
  11387. /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]
  11388. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  11389. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  11390. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  11391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11392. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11393. 325 | struct timespec ts = {0};
  11394. | ^~~~~~~~
  11395. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11396. 325 | struct timespec ts = {0};
  11397. | ^
  11398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11399. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11400. 325 | struct timespec ts = {0};
  11401. | ^~
  11402. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11403. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  11404. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  11405. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11406. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11407. 325 | struct timespec ts = {0};
  11408. | ^~~~~~~~
  11409. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11410. 325 | struct timespec ts = {0};
  11411. | ^
  11412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11413. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11414. 325 | struct timespec ts = {0};
  11415. | ^~
  11416. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11417. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11418. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11419. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11420. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  11421. /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
  11422. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11423. | ^~~~~~~
  11424. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11425. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11426. 39 | *tv = (struct timeval) {
  11427. | ^~~
  11428. /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'
  11429. 40 | .tv_sec = now.tv_sec,
  11430. | ^~~~~~
  11431. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11432. 40 | .tv_sec = now.tv_sec,
  11433. | ^~~
  11434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11435. /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'
  11436. 41 | .tv_usec = now.tv_nsec/1000,
  11437. | ^~~~~~~
  11438. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11439. 41 | .tv_usec = now.tv_nsec/1000,
  11440. | ^~~
  11441. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11443. 39 | *tv = (struct timeval) {
  11444. | ^
  11445. /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]
  11446. 327 | getrawmonotonic(&ts);
  11447. | ^~~~~~~~~~~~~~~
  11448. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11449. 325 | struct timespec ts = {0};
  11450. | ^~
  11451. /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]
  11452. 327 | getrawmonotonic(&ts);
  11453. | ^~~~~~~~~~~~~~~
  11454. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11455. 325 | struct timespec ts = {0};
  11456. | ^~
  11457. cc1: some warnings being treated as errors
  11458. 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_test.o] Error 1
  11459. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.o
  11460. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11461. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11462. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  11463. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11464. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11465. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11466. | ^~~~~~~~~
  11467. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11468. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11469. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11470. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  11471. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11472. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11473. | ^~~~~~~~~
  11474. cc1: some warnings being treated as errors
  11475. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11476. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11477. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  11478. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11479. /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]
  11480. 578 | void *ptr = ioremap_nocache(phys, size);
  11481. | ^~~~~~~~~~~~~~~
  11482. | ioremap_cache
  11483. /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]
  11484. 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_test.o] Error 1
  11485. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.o
  11486. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11487. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11488. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11489. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11490. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  11491. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11492. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11493. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11494. | ^~~~~~~~~
  11495. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11496. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11497. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11498. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11499. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11500. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  11501. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11502. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11503. | ^~~~~~~~~
  11504. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11505. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  11506. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11507. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11508. 325 | struct timespec ts = {0};
  11509. | ^~~~~~~~
  11510. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11511. 325 | struct timespec ts = {0};
  11512. | ^
  11513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11514. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11515. 325 | struct timespec ts = {0};
  11516. | ^~
  11517. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11518. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11519. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  11520. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11521. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11522. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11523. | ^~~~~~~~~
  11524. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11525. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11526. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11527. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  11528. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11529. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11530. | ^~~~~~~~~
  11531. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11532. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11533. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11534. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11535. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  11536. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11537. /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]
  11538. 578 | void *ptr = ioremap_nocache(phys, size);
  11539. | ^~~~~~~~~~~~~~~
  11540. | ioremap_cache
  11541. /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]
  11542. cc1: some warnings being treated as errors
  11543. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11544. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11545. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  11546. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11547. /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]
  11548. 578 | void *ptr = ioremap_nocache(phys, size);
  11549. | ^~~~~~~~~~~~~~~
  11550. | ioremap_cache
  11551. 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_test.o] Error 1
  11552. /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]
  11553. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.o
  11554. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11555. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11556. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11557. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  11558. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11559. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11560. 325 | struct timespec ts = {0};
  11561. | ^~~~~~~~
  11562. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11563. 325 | struct timespec ts = {0};
  11564. | ^
  11565. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11566. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11567. 325 | struct timespec ts = {0};
  11568. | ^~
  11569. /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]
  11570. 327 | getrawmonotonic(&ts);
  11571. | ^~~~~~~~~~~~~~~
  11572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11573. 325 | struct timespec ts = {0};
  11574. | ^~
  11575. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11576. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  11577. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11579. 325 | struct timespec ts = {0};
  11580. | ^~~~~~~~
  11581. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11582. 325 | struct timespec ts = {0};
  11583. | ^
  11584. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11585. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11586. 325 | struct timespec ts = {0};
  11587. | ^~
  11588. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11589. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11590. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  11591. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11592. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11593. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11594. | ^~~~~~~~~
  11595. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11596. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11597. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11598. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  11599. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11600. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11601. | ^~~~~~~~~
  11602. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11603. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11604. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  11605. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11606. /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]
  11607. 578 | void *ptr = ioremap_nocache(phys, size);
  11608. | ^~~~~~~~~~~~~~~
  11609. | ioremap_cache
  11610. /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]
  11611. /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]
  11612. 327 | getrawmonotonic(&ts);
  11613. | ^~~~~~~~~~~~~~~
  11614. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11615. 325 | struct timespec ts = {0};
  11616. | ^~
  11617. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11618. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11619. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  11620. /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
  11621. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11622. | ^~~~~~~
  11623. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11624. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11625. 39 | *tv = (struct timeval) {
  11626. | ^~~
  11627. /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'
  11628. 40 | .tv_sec = now.tv_sec,
  11629. | ^~~~~~
  11630. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11631. 40 | .tv_sec = now.tv_sec,
  11632. | ^~~
  11633. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11634. /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'
  11635. 41 | .tv_usec = now.tv_nsec/1000,
  11636. | ^~~~~~~
  11637. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11638. 41 | .tv_usec = now.tv_nsec/1000,
  11639. | ^~~
  11640. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11642. 39 | *tv = (struct timeval) {
  11643. | ^
  11644. /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]
  11645. 327 | getrawmonotonic(&ts);
  11646. | ^~~~~~~~~~~~~~~
  11647. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11648. 325 | struct timespec ts = {0};
  11649. | ^~
  11650. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  11651. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  11652. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11653. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11654. 325 | struct timespec ts = {0};
  11655. | ^~~~~~~~
  11656. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11657. 325 | struct timespec ts = {0};
  11658. | ^
  11659. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11661. 325 | struct timespec ts = {0};
  11662. | ^~
  11663. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11664. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11665. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11666. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11667. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  11668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11669. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11670. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11671. | ^~~~~~~~~
  11672. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11673. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11674. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11675. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11676. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11677. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  11678. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11679. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11680. | ^~~~~~~~~
  11681. /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]
  11682. 327 | getrawmonotonic(&ts);
  11683. | ^~~~~~~~~~~~~~~
  11684. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11685. 325 | struct timespec ts = {0};
  11686. | ^~
  11687. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11688. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11689. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11690. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11691. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  11692. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11693. /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]
  11694. 578 | void *ptr = ioremap_nocache(phys, size);
  11695. | ^~~~~~~~~~~~~~~
  11696. | ioremap_cache
  11697. /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]
  11698. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11699. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11700. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  11701. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  11702. /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
  11703. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11704. | ^~~~~~~
  11705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11706. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11707. 39 | *tv = (struct timeval) {
  11708. | ^~~
  11709. /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'
  11710. 40 | .tv_sec = now.tv_sec,
  11711. | ^~~~~~
  11712. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11713. 40 | .tv_sec = now.tv_sec,
  11714. | ^~~
  11715. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11716. /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'
  11717. 41 | .tv_usec = now.tv_nsec/1000,
  11718. | ^~~~~~~
  11719. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11720. 41 | .tv_usec = now.tv_nsec/1000,
  11721. | ^~~
  11722. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11723. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11724. 39 | *tv = (struct timeval) {
  11725. | ^
  11726. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  11727. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  11728. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  11729. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  11730. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11731. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11732. 325 | struct timespec ts = {0};
  11733. | ^~~~~~~~
  11734. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11735. 325 | struct timespec ts = {0};
  11736. | ^
  11737. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11738. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11739. 325 | struct timespec ts = {0};
  11740. | ^~
  11741. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11742. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11743. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  11744. /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
  11745. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11746. | ^~~~~~~
  11747. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11748. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11749. 39 | *tv = (struct timeval) {
  11750. | ^~~
  11751. /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'
  11752. 40 | .tv_sec = now.tv_sec,
  11753. | ^~~~~~
  11754. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11755. 40 | .tv_sec = now.tv_sec,
  11756. | ^~~
  11757. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11758. /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'
  11759. 41 | .tv_usec = now.tv_nsec/1000,
  11760. | ^~~~~~~
  11761. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11762. 41 | .tv_usec = now.tv_nsec/1000,
  11763. | ^~~
  11764. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11765. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11766. 39 | *tv = (struct timeval) {
  11767. | ^
  11768. cc1: some warnings being treated as errors
  11769. /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]
  11770. 327 | getrawmonotonic(&ts);
  11771. | ^~~~~~~~~~~~~~~
  11772. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11773. 325 | struct timespec ts = {0};
  11774. | ^~
  11775. 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_page_tree_test.o] Error 1
  11776. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.o
  11777. /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]
  11778. 331 | }
  11779. | ^
  11780. cc1: some warnings being treated as errors
  11781. 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_test.o] Error 1
  11782. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o
  11783. cc1: some warnings being treated as errors
  11784. 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_test.o] Error 1
  11785. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.o
  11786. cc1: some warnings being treated as errors
  11787. 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_test.o] Error 1
  11788. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.o
  11789. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11790. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11791. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  11792. /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
  11793. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11794. | ^~~~~~~
  11795. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11796. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11797. 39 | *tv = (struct timeval) {
  11798. | ^~~
  11799. /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'
  11800. 40 | .tv_sec = now.tv_sec,
  11801. | ^~~~~~
  11802. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11803. 40 | .tv_sec = now.tv_sec,
  11804. | ^~~
  11805. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11806. /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'
  11807. 41 | .tv_usec = now.tv_nsec/1000,
  11808. | ^~~~~~~
  11809. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11810. 41 | .tv_usec = now.tv_nsec/1000,
  11811. | ^~~
  11812. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11813. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11814. 39 | *tv = (struct timeval) {
  11815. | ^
  11816. cc1: some warnings being treated as errors
  11817. 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_ce_test.o] Error 1
  11818. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o
  11819. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11820. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11821. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  11822. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11823. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11824. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11825. | ^~~~~~~~~
  11826. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11827. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11828. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11829. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  11830. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11831. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11832. | ^~~~~~~~~
  11833. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11834. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11835. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  11836. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11837. /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]
  11838. 578 | void *ptr = ioremap_nocache(phys, size);
  11839. | ^~~~~~~~~~~~~~~
  11840. | ioremap_cache
  11841. /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]
  11842. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11843. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11844. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  11845. /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
  11846. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11847. | ^~~~~~~
  11848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11849. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11850. 39 | *tv = (struct timeval) {
  11851. | ^~~
  11852. /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'
  11853. 40 | .tv_sec = now.tv_sec,
  11854. | ^~~~~~
  11855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11856. 40 | .tv_sec = now.tv_sec,
  11857. | ^~~
  11858. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11859. /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'
  11860. 41 | .tv_usec = now.tv_nsec/1000,
  11861. | ^~~~~~~
  11862. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11863. 41 | .tv_usec = now.tv_nsec/1000,
  11864. | ^~~
  11865. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11866. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11867. 39 | *tv = (struct timeval) {
  11868. | ^
  11869. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  11870. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  11871. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11872. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11873. 325 | struct timespec ts = {0};
  11874. | ^~~~~~~~
  11875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11876. 325 | struct timespec ts = {0};
  11877. | ^
  11878. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11879. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11880. 325 | struct timespec ts = {0};
  11881. | ^~
  11882. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11883. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  11884. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  11885. /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
  11886. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11887. | ^~~~~~~
  11888. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11889. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11890. 39 | *tv = (struct timeval) {
  11891. | ^~~
  11892. /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'
  11893. 40 | .tv_sec = now.tv_sec,
  11894. | ^~~~~~
  11895. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11896. 40 | .tv_sec = now.tv_sec,
  11897. | ^~~
  11898. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11899. /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'
  11900. 41 | .tv_usec = now.tv_nsec/1000,
  11901. | ^~~~~~~
  11902. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11903. 41 | .tv_usec = now.tv_nsec/1000,
  11904. | ^~~
  11905. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11906. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11907. 39 | *tv = (struct timeval) {
  11908. | ^
  11909. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  11910. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  11911. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  11912. /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
  11913. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  11914. | ^~~~~~~
  11915. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11916. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11917. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  11918. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  11919. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11921. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11922. | ^~~~~~~~~
  11923. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11924. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11925. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11926. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  11927. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  11928. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11929. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11930. | ^~~~~~~~~
  11931. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  11932. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  11933. 39 | *tv = (struct timeval) {
  11934. | ^~~
  11935. /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'
  11936. 40 | .tv_sec = now.tv_sec,
  11937. | ^~~~~~
  11938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  11939. 40 | .tv_sec = now.tv_sec,
  11940. | ^~~
  11941. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  11942. /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'
  11943. 41 | .tv_usec = now.tv_nsec/1000,
  11944. | ^~~~~~~
  11945. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  11946. 41 | .tv_usec = now.tv_nsec/1000,
  11947. | ^~~
  11948. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  11949. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  11950. 39 | *tv = (struct timeval) {
  11951. | ^
  11952. /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]
  11953. 327 | getrawmonotonic(&ts);
  11954. | ^~~~~~~~~~~~~~~
  11955. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  11956. 325 | struct timespec ts = {0};
  11957. | ^~
  11958. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11959. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11960. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  11961. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  11962. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  11963. /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]
  11964. 578 | void *ptr = ioremap_nocache(phys, size);
  11965. | ^~~~~~~~~~~~~~~
  11966. | ioremap_cache
  11967. /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]
  11968. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11969. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11970. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  11971. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  11972. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  11973. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  11974. | ^~~~~~~~~
  11975. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  11976. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11977. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11978. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  11979. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  11980. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  11981. | ^~~~~~~~~
  11982. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11983. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  11984. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  11985. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  11986. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  11987. 325 | struct timespec ts = {0};
  11988. | ^~~~~~~~
  11989. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  11990. 325 | struct timespec ts = {0};
  11991. | ^
  11992. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  11993. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  11994. 325 | struct timespec ts = {0};
  11995. | ^~
  11996. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  11997. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  11998. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  11999. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12000. /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]
  12001. 578 | void *ptr = ioremap_nocache(phys, size);
  12002. | ^~~~~~~~~~~~~~~
  12003. | ioremap_cache
  12004. /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]
  12005. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  12006. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12007. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  12008. /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
  12009. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  12010. | ^~~~~~~
  12011. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  12012. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  12013. 39 | *tv = (struct timeval) {
  12014. | ^~~
  12015. /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'
  12016. 40 | .tv_sec = now.tv_sec,
  12017. | ^~~~~~
  12018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  12019. 40 | .tv_sec = now.tv_sec,
  12020. | ^~~
  12021. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  12022. /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'
  12023. 41 | .tv_usec = now.tv_nsec/1000,
  12024. | ^~~~~~~
  12025. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  12026. 41 | .tv_usec = now.tv_nsec/1000,
  12027. | ^~~
  12028. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  12029. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  12030. 39 | *tv = (struct timeval) {
  12031. | ^
  12032. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12033. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  12034. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12036. 325 | struct timespec ts = {0};
  12037. | ^~~~~~~~
  12038. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12039. 325 | struct timespec ts = {0};
  12040. | ^
  12041. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12042. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12043. 325 | struct timespec ts = {0};
  12044. | ^~
  12045. /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]
  12046. 327 | getrawmonotonic(&ts);
  12047. | ^~~~~~~~~~~~~~~
  12048. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12049. 325 | struct timespec ts = {0};
  12050. | ^~
  12051. cc1: some warnings being treated as errors
  12052. 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_test.o] Error 1
  12053. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o
  12054. /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]
  12055. 327 | getrawmonotonic(&ts);
  12056. | ^~~~~~~~~~~~~~~
  12057. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12058. 325 | struct timespec ts = {0};
  12059. | ^~
  12060. cc1: some warnings being treated as errors
  12061. 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_test.o] Error 1
  12062. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.o
  12063. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12064. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12065. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  12066. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12067. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12068. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12069. | ^~~~~~~~~
  12070. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12071. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12072. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12073. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  12074. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12075. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12076. | ^~~~~~~~~
  12077. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12078. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12079. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  12080. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12081. /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]
  12082. 578 | void *ptr = ioremap_nocache(phys, size);
  12083. | ^~~~~~~~~~~~~~~
  12084. | ioremap_cache
  12085. /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]
  12086. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12087. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  12088. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12089. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12090. 325 | struct timespec ts = {0};
  12091. | ^~~~~~~~
  12092. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12093. 325 | struct timespec ts = {0};
  12094. | ^
  12095. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12097. 325 | struct timespec ts = {0};
  12098. | ^~
  12099. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  12100. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12101. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  12102. /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
  12103. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  12104. | ^~~~~~~
  12105. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  12106. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  12107. 39 | *tv = (struct timeval) {
  12108. | ^~~
  12109. /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'
  12110. 40 | .tv_sec = now.tv_sec,
  12111. | ^~~~~~
  12112. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  12113. 40 | .tv_sec = now.tv_sec,
  12114. | ^~~
  12115. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  12116. /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'
  12117. 41 | .tv_usec = now.tv_nsec/1000,
  12118. | ^~~~~~~
  12119. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  12120. 41 | .tv_usec = now.tv_nsec/1000,
  12121. | ^~~
  12122. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  12123. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  12124. 39 | *tv = (struct timeval) {
  12125. | ^
  12126. /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]
  12127. 327 | getrawmonotonic(&ts);
  12128. | ^~~~~~~~~~~~~~~
  12129. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12130. 325 | struct timespec ts = {0};
  12131. | ^~
  12132. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12133. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12134. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  12135. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12136. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12137. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12138. | ^~~~~~~~~
  12139. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12140. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12141. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12142. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  12143. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12144. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12145. | ^~~~~~~~~
  12146. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  12147. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  12148. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  12149. /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
  12150. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  12151. | ^~~~~~~
  12152. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  12153. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  12154. 39 | *tv = (struct timeval) {
  12155. | ^~~
  12156. /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'
  12157. 40 | .tv_sec = now.tv_sec,
  12158. | ^~~~~~
  12159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  12160. 40 | .tv_sec = now.tv_sec,
  12161. | ^~~
  12162. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  12163. /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'
  12164. 41 | .tv_usec = now.tv_nsec/1000,
  12165. | ^~~~~~~
  12166. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  12167. 41 | .tv_usec = now.tv_nsec/1000,
  12168. | ^~~
  12169. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  12170. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  12171. 39 | *tv = (struct timeval) {
  12172. | ^
  12173. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12174. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12175. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  12176. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12177. /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]
  12178. 578 | void *ptr = ioremap_nocache(phys, size);
  12179. | ^~~~~~~~~~~~~~~
  12180. | ioremap_cache
  12181. /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]
  12182. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12183. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  12184. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12185. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12186. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12187. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12188. | ^~~~~~~~~
  12189. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12190. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12191. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  12192. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12193. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12194. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12195. | ^~~~~~~~~
  12196. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12197. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  12198. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12199. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12200. 325 | struct timespec ts = {0};
  12201. | ^~~~~~~~
  12202. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12203. 325 | struct timespec ts = {0};
  12204. | ^
  12205. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12206. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12207. 325 | struct timespec ts = {0};
  12208. | ^~
  12209. cc1: some warnings being treated as errors
  12210. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12211. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  12212. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12213. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12214. /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]
  12215. 578 | void *ptr = ioremap_nocache(phys, size);
  12216. | ^~~~~~~~~~~~~~~
  12217. | ioremap_cache
  12218. /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]
  12219. 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_test.o] Error 1
  12220. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o
  12221. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12222. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  12223. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  12224. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12225. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12226. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12227. | ^~~~~~~~~
  12228. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12229. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12230. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  12231. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  12232. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12233. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12234. | ^~~~~~~~~
  12235. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  12236. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12238. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12239. 325 | struct timespec ts = {0};
  12240. | ^~~~~~~~
  12241. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12242. 325 | struct timespec ts = {0};
  12243. | ^
  12244. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12245. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12246. 325 | struct timespec ts = {0};
  12247. | ^~
  12248. /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]
  12249. 327 | getrawmonotonic(&ts);
  12250. | ^~~~~~~~~~~~~~~
  12251. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12252. 325 | struct timespec ts = {0};
  12253. | ^~
  12254. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12255. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  12256. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  12257. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12258. /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]
  12259. 578 | void *ptr = ioremap_nocache(phys, size);
  12260. | ^~~~~~~~~~~~~~~
  12261. | ioremap_cache
  12262. /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]
  12263. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  12264. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  12265. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12267. 325 | struct timespec ts = {0};
  12268. | ^~~~~~~~
  12269. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12270. 325 | struct timespec ts = {0};
  12271. | ^
  12272. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12273. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12274. 325 | struct timespec ts = {0};
  12275. | ^~
  12276. /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]
  12277. 327 | getrawmonotonic(&ts);
  12278. | ^~~~~~~~~~~~~~~
  12279. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12280. 325 | struct timespec ts = {0};
  12281. | ^~
  12282. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12283. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12284. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  12285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12286. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12287. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12288. | ^~~~~~~~~
  12289. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12290. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12291. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12292. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  12293. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12294. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12295. | ^~~~~~~~~
  12296. /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]
  12297. 327 | getrawmonotonic(&ts);
  12298. | ^~~~~~~~~~~~~~~
  12299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12300. 325 | struct timespec ts = {0};
  12301. | ^~
  12302. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12303. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12304. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  12305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12306. /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]
  12307. 578 | void *ptr = ioremap_nocache(phys, size);
  12308. | ^~~~~~~~~~~~~~~
  12309. | ioremap_cache
  12310. /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]
  12311. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12312. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  12313. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12314. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12315. 325 | struct timespec ts = {0};
  12316. | ^~~~~~~~
  12317. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12318. 325 | struct timespec ts = {0};
  12319. | ^
  12320. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12321. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12322. 325 | struct timespec ts = {0};
  12323. | ^~
  12324. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  12325. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:25:
  12326. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  12327. /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'?
  12328. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12329. | ^~~~~~~~
  12330. /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'
  12331. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  12332. | ^~~~~~~~
  12333. /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'
  12334. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12335. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12336. /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'?
  12337. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12338. | ^~~~~~~~
  12339. /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'
  12340. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  12341. | ^~~~~~~~
  12342. /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'
  12343. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12344. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12345. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  12346. /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]
  12347. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12348. | ^~~~
  12349. | |
  12350. | int
  12351. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  12352. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  12353. | ^~~~
  12354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  12355. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  12356. | ^~~~~~~~~~~~~~~
  12357. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  12358. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12359. | ^~~~~~~~~~
  12360. /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'
  12361. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  12362. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12363. /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'
  12364. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12365. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12366. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  12367. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  12368. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  12369. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  12370. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  12371. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  12372. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12373. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12374. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  12375. /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'
  12376. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  12377. | ~~~~~~~~~~~~~~~~~~~~~^~~
  12378. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  12379. /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]
  12380. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12381. | ^~~~
  12382. | |
  12383. | int
  12384. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  12385. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  12386. | ^~~~
  12387. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  12388. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  12389. | ^~~~~~~~~~~~~~~
  12390. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  12391. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12392. | ^~~~~~~~~~
  12393. /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'
  12394. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  12395. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12396. /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'
  12397. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12398. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12399. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  12400. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:25:
  12401. /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'
  12402. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  12403. | ~~~~~~^~~~
  12404. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  12405. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12406. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  12407. /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
  12408. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  12409. | ^~~~~~~
  12410. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  12411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  12412. 39 | *tv = (struct timeval) {
  12413. | ^~~
  12414. /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'
  12415. 40 | .tv_sec = now.tv_sec,
  12416. | ^~~~~~
  12417. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  12418. 40 | .tv_sec = now.tv_sec,
  12419. | ^~~
  12420. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  12421. /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'
  12422. 41 | .tv_usec = now.tv_nsec/1000,
  12423. | ^~~~~~~
  12424. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  12425. 41 | .tv_usec = now.tv_nsec/1000,
  12426. | ^~~
  12427. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  12428. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  12429. 39 | *tv = (struct timeval) {
  12430. | ^
  12431. /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]
  12432. 327 | getrawmonotonic(&ts);
  12433. | ^~~~~~~~~~~~~~~
  12434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12435. 325 | struct timespec ts = {0};
  12436. | ^~
  12437. cc1: some warnings being treated as errors
  12438. 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_test.o] Error 1
  12439. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.o
  12440. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  12441. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  12442. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  12443. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27:
  12444. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  12445. /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'?
  12446. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12447. | ^~~~~~~~
  12448. /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'
  12449. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  12450. | ^~~~~~~~
  12451. /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'
  12452. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12453. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12454. /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'?
  12455. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12456. | ^~~~~~~~
  12457. /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'
  12458. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  12459. | ^~~~~~~~
  12460. /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'
  12461. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12462. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12463. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:28,
  12464. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  12465. /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]
  12466. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12467. | ^~~~
  12468. | |
  12469. | int
  12470. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  12471. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  12472. | ^~~~
  12473. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  12474. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  12475. | ^~~~~~~~~~~~~~~
  12476. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  12477. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12478. | ^~~~~~~~~~
  12479. /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'
  12480. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  12481. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12482. /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'
  12483. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12484. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12485. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  12486. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  12487. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  12488. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  12489. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  12490. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  12491. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12492. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12493. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  12494. /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'
  12495. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  12496. | ~~~~~~~~~~~~~~~~~~~~~^~~
  12497. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:28,
  12498. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  12499. /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]
  12500. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12501. | ^~~~
  12502. | |
  12503. | int
  12504. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  12505. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  12506. | ^~~~
  12507. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  12508. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  12509. | ^~~~~~~~~~~~~~~
  12510. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  12511. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12512. | ^~~~~~~~~~
  12513. /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'
  12514. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  12515. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12516. /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'
  12517. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12518. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12519. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  12520. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  12521. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  12522. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27:
  12523. /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'
  12524. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  12525. | ~~~~~~^~~~
  12526. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  12527. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12528. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  12529. /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'?
  12530. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12531. | ^~~~~~~~
  12532. /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'
  12533. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  12534. | ^~~~~~~~
  12535. /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'
  12536. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12537. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12538. /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'?
  12539. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12540. | ^~~~~~~~
  12541. /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'
  12542. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  12543. | ^~~~~~~~
  12544. /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'
  12545. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12546. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12547. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  12548. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  12549. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12550. /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]
  12551. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12552. | ^~~~
  12553. | |
  12554. | int
  12555. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  12556. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  12557. | ^~~~
  12558. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  12559. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  12560. | ^~~~~~~~~~~~~~~
  12561. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  12562. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12563. | ^~~~~~~~~~
  12564. /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'
  12565. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  12566. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12567. /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'
  12568. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12569. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12570. cc1: some warnings being treated as errors
  12571. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  12572. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  12573. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  12574. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  12575. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  12576. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  12577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12578. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  12579. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12580. /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'
  12581. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  12582. | ~~~~~~~~~~~~~~~~~~~~~^~~
  12583. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  12584. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  12585. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12586. /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]
  12587. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12588. | ^~~~
  12589. | |
  12590. | int
  12591. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  12592. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  12593. | ^~~~
  12594. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  12595. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  12596. | ^~~~~~~~~~~~~~~
  12597. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  12598. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  12599. | ^~~~~~~~~~
  12600. /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'
  12601. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  12602. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12603. /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'
  12604. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  12605. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12606. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  12607. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  12608. /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'
  12609. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  12610. | ~~~~~~^~~~
  12611. 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_test.o] Error 1
  12612. cc1: some warnings being treated as errors
  12613. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.o
  12614. 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_test.o] Error 1
  12615. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.o
  12616. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12617. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12618. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  12619. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12621. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12622. | ^~~~~~~~~
  12623. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12624. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12625. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12626. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  12627. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12628. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12629. | ^~~~~~~~~
  12630. cc1: some warnings being treated as errors
  12631. 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_test.o] Error 1
  12632. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12633. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12634. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  12635. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12636. /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]
  12637. 578 | void *ptr = ioremap_nocache(phys, size);
  12638. | ^~~~~~~~~~~~~~~
  12639. | ioremap_cache
  12640. /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]
  12641. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm.o
  12642. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12643. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  12644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12645. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12646. 325 | struct timespec ts = {0};
  12647. | ^~~~~~~~
  12648. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12649. 325 | struct timespec ts = {0};
  12650. | ^
  12651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12652. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12653. 325 | struct timespec ts = {0};
  12654. | ^~
  12655. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12656. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  12657. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  12658. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12659. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12660. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12661. | ^~~~~~~~~
  12662. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12663. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12664. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  12665. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  12666. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12667. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12668. | ^~~~~~~~~
  12669. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12670. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  12671. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  12672. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12673. /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]
  12674. 578 | void *ptr = ioremap_nocache(phys, size);
  12675. | ^~~~~~~~~~~~~~~
  12676. | ioremap_cache
  12677. /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]
  12678. /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]
  12679. 327 | getrawmonotonic(&ts);
  12680. | ^~~~~~~~~~~~~~~
  12681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12682. 325 | struct timespec ts = {0};
  12683. | ^~
  12684. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  12685. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  12686. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12687. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12688. 325 | struct timespec ts = {0};
  12689. | ^~~~~~~~
  12690. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12691. 325 | struct timespec ts = {0};
  12692. | ^
  12693. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12694. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12695. 325 | struct timespec ts = {0};
  12696. | ^~
  12697. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  12698. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12699. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  12700. /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
  12701. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  12702. | ^~~~~~~
  12703. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  12704. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-drv.o
  12705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  12706. 39 | *tv = (struct timeval) {
  12707. | ^~~
  12708. /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'
  12709. 40 | .tv_sec = now.tv_sec,
  12710. | ^~~~~~
  12711. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  12712. 40 | .tv_sec = now.tv_sec,
  12713. | ^~~
  12714. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  12715. /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'
  12716. 41 | .tv_usec = now.tv_nsec/1000,
  12717. | ^~~~~~~
  12718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  12719. 41 | .tv_usec = now.tv_nsec/1000,
  12720. | ^~~
  12721. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  12722. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  12723. 39 | *tv = (struct timeval) {
  12724. | ^
  12725. cc1: some warnings being treated as errors
  12726. 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_get_rm_ptes_test.o] Error 1
  12727. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-utils.o
  12728. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-drv.c:27:
  12729. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-fb.h:30:10: fatal error: drm/drmP.h: No such file or directory
  12730. 30 | #include <drm/drmP.h>
  12731. | ^~~~~~~~~~~~
  12732. compilation terminated.
  12733. 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-drm/nvidia-drm-drv.o] Error 1
  12734. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-crtc.o
  12735. /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]
  12736. 327 | getrawmonotonic(&ts);
  12737. | ^~~~~~~~~~~~~~~
  12738. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12739. 325 | struct timespec ts = {0};
  12740. | ^~
  12741. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-utils.c:28:
  12742. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-utils.h:30:10: fatal error: drm/drmP.h: No such file or directory
  12743. 30 | #include <drm/drmP.h>
  12744. | ^~~~~~~~~~~~
  12745. compilation terminated.
  12746. 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-drm/nvidia-drm-utils.o] Error 1
  12747. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-crtc.c:29:
  12748. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-crtc.h:32:10: fatal error: drm/drmP.h: No such file or directory
  12749. 32 | #include <drm/drmP.h>
  12750. | ^~~~~~~~~~~~
  12751. compilation terminated.
  12752. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.o
  12753. 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-drm/nvidia-drm-crtc.o] Error 1
  12754. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  12755. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12756. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  12757. /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
  12758. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  12759. | ^~~~~~~
  12760. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  12761. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  12762. 39 | *tv = (struct timeval) {
  12763. | ^~~
  12764. /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'
  12765. 40 | .tv_sec = now.tv_sec,
  12766. | ^~~~~~
  12767. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-connector.o
  12768. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  12769. 40 | .tv_sec = now.tv_sec,
  12770. | ^~~
  12771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  12772. /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'
  12773. 41 | .tv_usec = now.tv_nsec/1000,
  12774. | ^~~~~~~
  12775. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  12776. 41 | .tv_usec = now.tv_nsec/1000,
  12777. | ^~~
  12778. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  12779. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  12780. 39 | *tv = (struct timeval) {
  12781. | ^
  12782. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-connector.c:29:
  12783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-connector.h:30:10: fatal error: drm/drmP.h: No such file or directory
  12784. 30 | #include <drm/drmP.h>
  12785. | ^~~~~~~~~~~~
  12786. compilation terminated.
  12787. 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-drm/nvidia-drm-connector.o] Error 1
  12788. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem.o
  12789. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-fb.o
  12790. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12791. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12792. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  12793. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12794. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12795. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12796. | ^~~~~~~~~
  12797. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12798. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12799. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12800. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  12801. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12802. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12803. | ^~~~~~~~~
  12804. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-fb.c:29:
  12805. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-fb.h:30:10: fatal error: drm/drmP.h: No such file or directory
  12806. 30 | #include <drm/drmP.h>
  12807. | ^~~~~~~~~~~~
  12808. compilation terminated.
  12809. 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-drm/nvidia-drm-fb.o] Error 1
  12810. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-modeset.o
  12811. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12812. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12813. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  12814. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12815. /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]
  12816. 578 | void *ptr = ioremap_nocache(phys, size);
  12817. | ^~~~~~~~~~~~~~~
  12818. | ioremap_cache
  12819. /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]
  12820. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-modeset.c:28:
  12821. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-modeset.h:30:10: fatal error: drm/drmP.h: No such file or directory
  12822. 30 | #include <drm/drmP.h>
  12823. | ^~~~~~~~~~~~
  12824. compilation terminated.
  12825. 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-drm/nvidia-drm-modeset.o] Error 1
  12826. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-prime-fence.o
  12827. cc1: some warnings being treated as errors
  12828. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  12829. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  12830. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  12831. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  12832. 325 | struct timespec ts = {0};
  12833. | ^~~~~~~~
  12834. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  12835. 325 | struct timespec ts = {0};
  12836. | ^
  12837. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  12838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  12839. 325 | struct timespec ts = {0};
  12840. | ^~
  12841. 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_fault_buffer_flush_test.o] Error 1
  12842. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-linux.o
  12843. /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]
  12844. 327 | getrawmonotonic(&ts);
  12845. | ^~~~~~~~~~~~~~~
  12846. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  12847. 325 | struct timespec ts = {0};
  12848. | ^~
  12849. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-helper.o
  12850. cc1: some warnings being treated as errors
  12851. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-helper.c:34:10: fatal error: drm/drmP.h: No such file or directory
  12852. 34 | #include <drm/drmP.h>
  12853. | ^~~~~~~~~~~~
  12854. compilation terminated.
  12855. 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-drm/nvidia-drm-helper.o] Error 1
  12856. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nv-pci-table.o
  12857. 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_test.o] Error 1
  12858. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o
  12859. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  12860. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:33:30: error: field 'base' has incomplete type
  12861. 33 | struct nv_drm_gem_object base;
  12862. | ^~~~
  12863. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:37:5: error: unknown type name 'bool'
  12864. 37 | bool dumb_buffer;
  12865. | ^~~~
  12866. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h: In function 'to_nv_nvkms_memory':
  12867. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:46:19: error: 'NULL' undeclared (first use in this function)
  12868. 46 | if (nv_gem != NULL) {
  12869. | ^~~~
  12870. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:31:1: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
  12871. 30 | #include "nvidia-drm-gem.h"
  12872. +++ |+#include <stddef.h>
  12873. 31 |
  12874. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:46:19: note: each undeclared identifier is reported only once for each function it appears in
  12875. 46 | if (nv_gem != NULL) {
  12876. | ^~~~
  12877. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:47:16: error: implicit declaration of function 'container_of' [-Werror=implicit-function-declaration]
  12878. 47 | return container_of(nv_gem, struct nv_drm_gem_nvkms_memory, base);
  12879. | ^~~~~~~~~~~~
  12880. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:47:37: error: expected expression before 'struct'
  12881. 47 | return container_of(nv_gem, struct nv_drm_gem_nvkms_memory, base);
  12882. | ^~~~~~
  12883. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h: In function 'to_nv_nvkms_memory_const':
  12884. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:56:19: error: 'NULL' undeclared (first use in this function)
  12885. 56 | if (nv_gem != NULL) {
  12886. | ^~~~
  12887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:56:19: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
  12888. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:57:37: error: expected expression before 'struct'
  12889. 57 | return container_of(nv_gem, struct nv_drm_gem_nvkms_memory, base);
  12890. | ^~~~~~
  12891. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h: At top level:
  12892. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:67:5: error: unknown type name 'u32'
  12893. 67 | u32 handle)
  12894. | ^~~
  12895. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:83:36: warning: 'struct drm_mode_create_dumb' declared inside parameter list will not be visible outside of this definition or declaration
  12896. 83 | struct drm_device *dev, struct drm_mode_create_dumb *args);
  12897. | ^~~~~~~~~~~~~~~~~~~~
  12898. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:83:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  12899. 83 | struct drm_device *dev, struct drm_mode_create_dumb *args);
  12900. | ^~~~~~~~~~
  12901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:82:12: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  12902. 82 | struct drm_file *file_priv,
  12903. | ^~~~~~~~
  12904. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:86:61: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  12905. 86 | void *data, struct drm_file *filep);
  12906. | ^~~~~~~~
  12907. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:85:49: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  12908. 85 | int nv_drm_gem_import_nvkms_memory_ioctl(struct drm_device *dev,
  12909. | ^~~~~~~~~~
  12910. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:89:61: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  12911. 89 | void *data, struct drm_file *filep);
  12912. | ^~~~~~~~
  12913. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:88:49: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  12914. 88 | int nv_drm_gem_export_nvkms_memory_ioctl(struct drm_device *dev,
  12915. | ^~~~~~~~~~
  12916. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:38:
  12917. /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
  12918. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  12919. | ^~~~~~~
  12920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  12921. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  12922. 39 | *tv = (struct timeval) {
  12923. | ^~~
  12924. /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'
  12925. 40 | .tv_sec = now.tv_sec,
  12926. | ^~~~~~
  12927. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  12928. 40 | .tv_sec = now.tv_sec,
  12929. | ^~~
  12930. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  12931. /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'
  12932. 41 | .tv_usec = now.tv_nsec/1000,
  12933. | ^~~~~~~
  12934. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  12935. 41 | .tv_usec = now.tv_nsec/1000,
  12936. | ^~~
  12937. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  12938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  12939. 39 | *tv = (struct timeval) {
  12940. | ^
  12941. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c: In function 'nvkms_get_usec':
  12942. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:219:20: error: storage size of 'tv' isn't known
  12943. 219 | struct timeval tv;
  12944. | ^~
  12945. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:219:20: warning: unused variable 'tv' [-Wunused-variable]
  12946. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:92:52: error: unknown type name 'uint32_t'
  12947. 92 | struct drm_device *dev, uint32_t handle,
  12948. | ^~~~~~~~
  12949. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:93:28: error: unknown type name 'uint64_t'
  12950. 93 | uint64_t *offset);
  12951. | ^~~~~~~~
  12952. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:35:
  12953. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c: In function 'nvkms_add_proc_file':
  12954. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:1006:41: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  12955. 1006 | &nv_procfs_nvkms_proc_fops,
  12956. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  12957. | |
  12958. | const struct file_operations *
  12959. /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'
  12960. 39 | proc_create_data(name, mode, parent, fops, __data)
  12961. | ^~~~
  12962. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:16,
  12963. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:35:
  12964. /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 *'
  12965. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  12966. | ^~~~~~~~~~~~~~~~
  12967. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:96:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  12968. 96 | struct drm_device *dev,
  12969. | ^~~~~~~~~~
  12970. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c: In function 'nvkms_get_usec':
  12971. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:224:1: warning: control reaches end of non-void function [-Wreturn-type]
  12972. 224 | }
  12973. | ^
  12974. cc1: some warnings being treated as errors
  12975. 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-modeset/nvidia-modeset-linux.o] Error 1
  12976. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o
  12977. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12978. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12979. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  12980. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  12981. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  12982. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  12983. | ^~~~~~~~~
  12984. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  12985. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12986. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12987. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  12988. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  12989. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  12990. | ^~~~~~~~~
  12991. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  12992. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  12993. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  12994. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  12995. /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]
  12996. 578 | void *ptr = ioremap_nocache(phys, size);
  12997. | ^~~~~~~~~~~~~~~
  12998. | ioremap_cache
  12999. /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]
  13000. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  13001. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  13002. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  13003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13005. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13006. | ^~~~~~~~~
  13007. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13008. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  13009. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  13010. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  13011. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13012. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13013. | ^~~~~~~~~
  13014. cc1: some warnings being treated as errors
  13015. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  13016. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  13017. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  13018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  13019. 325 | struct timespec ts = {0};
  13020. | ^~~~~~~~
  13021. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  13022. 325 | struct timespec ts = {0};
  13023. | ^
  13024. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  13025. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  13026. 325 | struct timespec ts = {0};
  13027. | ^~
  13028. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  13029. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  13030. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  13031. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13032. /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]
  13033. 578 | void *ptr = ioremap_nocache(phys, size);
  13034. | ^~~~~~~~~~~~~~~
  13035. | ioremap_cache
  13036. /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]
  13037. 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_peer_identity_mappings_test.o] Error 1
  13038. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  13039. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  13040. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  13041. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  13042. 325 | struct timespec ts = {0};
  13043. | ^~~~~~~~
  13044. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  13045. 325 | struct timespec ts = {0};
  13046. | ^
  13047. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  13048. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  13049. 325 | struct timespec ts = {0};
  13050. | ^~
  13051. /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]
  13052. 327 | getrawmonotonic(&ts);
  13053. | ^~~~~~~~~~~~~~~
  13054. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  13055. 325 | struct timespec ts = {0};
  13056. | ^~
  13057. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.c:28:
  13058. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.h:60:42: warning: 'struct nv_drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13059. 60 | void nv_drm_handle_display_change(struct nv_drm_device *nv_dev,
  13060. | ^~~~~~~~~~~~~
  13061. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.h:63:53: warning: 'struct nv_drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13062. 63 | void nv_drm_handle_dynamic_display_connected(struct nv_drm_device *nv_dev,
  13063. | ^~~~~~~~~~~~~
  13064. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.c:29:
  13065. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-utils.h:30:10: fatal error: drm/drmP.h: No such file or directory
  13066. 30 | #include <drm/drmP.h>
  13067. | ^~~~~~~~~~~~
  13068. compilation terminated.
  13069. 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-drm/nvidia-drm-encoder.o] Error 1
  13070. /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]
  13071. 327 | getrawmonotonic(&ts);
  13072. | ^~~~~~~~~~~~~~~
  13073. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  13074. 325 | struct timespec ts = {0};
  13075. | ^~
  13076. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function '__nv_drm_gem_nvkms_memory_free':
  13077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:34:42: error: dereferencing pointer to incomplete type 'struct nv_drm_gem_object'
  13078. 34 | struct nv_drm_device *nv_dev = nv_gem->nv_dev;
  13079. | ^~
  13080. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:40:13: error: implicit declaration of function 'iounmap'; did you mean 'do_munmap'? [-Werror=implicit-function-declaration]
  13081. 40 | iounmap(nv_nvkms_memory->pWriteCombinedIORemapAddress);
  13082. | ^~~~~~~
  13083. | do_munmap
  13084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:43:9: error: 'nvKms' undeclared (first use in this function)
  13085. 43 | nvKms->unmapMemory(nv_dev->pDevice,
  13086. | ^~~~~
  13087. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:43:34: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  13088. 43 | nvKms->unmapMemory(nv_dev->pDevice,
  13089. | ^~
  13090. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:45:28: error: 'NVKMS_KAPI_MAPPING_TYPE_USER' undeclared (first use in this function)
  13091. 45 | NVKMS_KAPI_MAPPING_TYPE_USER,
  13092. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13093. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:53:5: error: implicit declaration of function 'nv_drm_free' [-Werror=implicit-function-declaration]
  13094. 53 | nv_drm_free(nv_nvkms_memory);
  13095. | ^~~~~~~~~~~
  13096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  13097. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:57:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13098. 57 | struct drm_device *dev,
  13099. | ^~~~~~~~~~
  13100. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:60:14: error: variable 'nv_gem_nvkms_memory_ops' has initializer but incomplete type
  13101. 60 | const struct nv_drm_gem_object_funcs nv_gem_nvkms_memory_ops = {
  13102. | ^~~~~~~~~~~~~~~~~~~~~~~
  13103. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:61:6: error: 'const struct nv_drm_gem_object_funcs' has no member named 'free'
  13104. 61 | .free = __nv_drm_gem_nvkms_memory_free,
  13105. | ^~~~
  13106. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:61:13: warning: excess elements in struct initializer
  13107. 61 | .free = __nv_drm_gem_nvkms_memory_free,
  13108. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13109. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:61:13: note: (near initialization for 'nv_gem_nvkms_memory_ops')
  13110. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:62:6: error: 'const struct nv_drm_gem_object_funcs' has no member named 'prime_dup'
  13111. 62 | .prime_dup = __nv_drm_gem_nvkms_prime_dup,
  13112. | ^~~~~~~~~
  13113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:62:18: warning: excess elements in struct initializer
  13114. 62 | .prime_dup = __nv_drm_gem_nvkms_prime_dup,
  13115. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13116. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:62:18: note: (near initialization for 'nv_gem_nvkms_memory_ops')
  13117. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:67:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13118. 67 | struct drm_device *dev, struct drm_mode_create_dumb *args)
  13119. | ^~~~~~~~~~
  13120. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:66:12: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  13121. 66 | struct drm_file *file_priv,
  13122. | ^~~~~~~~
  13123. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:65:5: error: conflicting types for 'nv_drm_dumb_create'
  13124. 65 | int nv_drm_dumb_create(
  13125. | ^~~~~~~~~~~~~~~~~~
  13126. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  13127. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:81:5: note: previous declaration of 'nv_drm_dumb_create' was here
  13128. 81 | int nv_drm_dumb_create(
  13129. | ^~~~~~~~~~~~~~~~~~
  13130. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function 'nv_drm_dumb_create':
  13131. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:69:36: error: implicit declaration of function 'to_nv_device' [-Werror=implicit-function-declaration]
  13132. 69 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  13133. | ^~~~~~~~~~~~
  13134. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:69:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13135. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/asm-generic/bug.h:19,
  13136. from /usr/src/linux-headers-5.8.0-kali3-common/arch/x86/include/asm/bug.h:92,
  13137. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/bug.h:5,
  13138. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmdebug.h:5,
  13139. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:9,
  13140. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-mm.h:80,
  13141. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:30:
  13142. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:74:33: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  13143. 74 | nv_dev->pitchAlignment);
  13144. | ^~
  13145. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/kernel.h:108:9: note: in definition of macro 'roundup'
  13146. 108 | typeof(y) __y = y; \
  13147. | ^
  13148. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:83:13: error: implicit declaration of function 'nv_drm_calloc' [-Werror=implicit-function-declaration]
  13149. 83 | nv_drm_calloc(1, sizeof(*nv_nvkms_memory))) == NULL) {
  13150. | ^~~~~~~~~~~~~
  13151. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:82:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13152. 82 | if ((nv_nvkms_memory =
  13153. | ^
  13154. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:89:13: error: 'nvKms' undeclared (first use in this function)
  13155. 89 | nvKms->allocateMemory(nv_dev->pDevice, args->size)) == NULL) {
  13156. | ^~~~~
  13157. cc1: some warnings being treated as errors
  13158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:91:9: error: implicit declaration of function 'NV_DRM_DEV_LOG_ERR' [-Werror=implicit-function-declaration]
  13159. 91 | NV_DRM_DEV_LOG_ERR(
  13160. | ^~~~~~~~~~~~~~~~~~
  13161. 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_test.o] Error 1
  13162. cc1: some warnings being treated as errors
  13163. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:100:27: error: 'NVKMS_KAPI_MAPPING_TYPE_USER' undeclared (first use in this function)
  13164. 100 | NVKMS_KAPI_MAPPING_TYPE_USER,
  13165. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13166. 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_range_group_tree_test.o] Error 1
  13167. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:111:53: error: implicit declaration of function 'ioremap_wc' [-Werror=implicit-function-declaration]
  13168. 111 | nv_nvkms_memory->pWriteCombinedIORemapAddress = ioremap_wc(
  13169. | ^~~~~~~~~~
  13170. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:111:51: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13171. 111 | nv_nvkms_memory->pWriteCombinedIORemapAddress = ioremap_wc(
  13172. | ^
  13173. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:117:5: error: implicit declaration of function 'nv_drm_gem_object_init'; did you mean 'debug_object_init'? [-Werror=implicit-function-declaration]
  13174. 117 | nv_drm_gem_object_init(nv_dev,
  13175. | ^~~~~~~~~~~~~~~~~~~~~~
  13176. | debug_object_init
  13177. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:122:12: error: implicit declaration of function 'nv_drm_gem_handle_create_drop_reference' [-Werror=implicit-function-declaration]
  13178. 122 | return nv_drm_gem_handle_create_drop_reference(file_priv,
  13179. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13180. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  13181. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:138:12: warning: 'struct nv_drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13182. 138 | struct nv_drm_device *nv_dev,
  13183. | ^~~~~~~~~~~~~
  13184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:155:61: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  13185. 155 | void *data, struct drm_file *filep)
  13186. | ^~~~~~~~
  13187. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:154:49: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13188. 154 | int nv_drm_gem_import_nvkms_memory_ioctl(struct drm_device *dev,
  13189. | ^~~~~~~~~~
  13190. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:154:5: error: conflicting types for 'nv_drm_gem_import_nvkms_memory_ioctl'
  13191. 154 | int nv_drm_gem_import_nvkms_memory_ioctl(struct drm_device *dev,
  13192. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13193. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  13194. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:85:5: note: previous declaration of 'nv_drm_gem_import_nvkms_memory_ioctl' was here
  13195. 85 | int nv_drm_gem_import_nvkms_memory_ioctl(struct drm_device *dev,
  13196. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13197. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function 'nv_drm_gem_import_nvkms_memory_ioctl':
  13198. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:157:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13199. 157 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  13200. | ^~~~~~~~~~~~
  13201. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:163:10: error: implicit declaration of function 'drm_core_check_feature' [-Werror=implicit-function-declaration]
  13202. 163 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) {
  13203. | ^~~~~~~~~~~~~~~~~~~~~~
  13204. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:163:38: error: 'DRIVER_MODESET' undeclared (first use in this function); did you mean 'HRTIMER_MODE_SOFT'?
  13205. 163 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) {
  13206. | ^~~~~~~~~~~~~~
  13207. | HRTIMER_MODE_SOFT
  13208. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:168:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13209. 168 | if ((nv_nvkms_memory =
  13210. | ^
  13211. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:174:15: error: 'nvKms' undeclared (first use in this function)
  13212. 174 | pMemory = nvKms->importMemory(nv_dev->pDevice,
  13213. | ^~~~~
  13214. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:174:41: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  13215. 174 | pMemory = nvKms->importMemory(nv_dev->pDevice,
  13216. | ^~
  13217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:187:33: error: passing argument 1 of '__nv_drm_nvkms_gem_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
  13218. 187 | __nv_drm_nvkms_gem_obj_init(nv_dev, nv_nvkms_memory, pMemory, p->mem_size);
  13219. | ^~~~~~
  13220. | |
  13221. | struct nv_drm_device *
  13222. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:138:27: note: expected 'struct nv_drm_device *' but argument is of type 'struct nv_drm_device *'
  13223. 138 | struct nv_drm_device *nv_dev,
  13224. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  13225. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  13226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:201:61: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  13227. 201 | void *data, struct drm_file *filep)
  13228. | ^~~~~~~~
  13229. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:200:49: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13230. 200 | int nv_drm_gem_export_nvkms_memory_ioctl(struct drm_device *dev,
  13231. | ^~~~~~~~~~
  13232. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:200:5: error: conflicting types for 'nv_drm_gem_export_nvkms_memory_ioctl'
  13233. 200 | int nv_drm_gem_export_nvkms_memory_ioctl(struct drm_device *dev,
  13234. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13235. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  13236. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:88:5: note: previous declaration of 'nv_drm_gem_export_nvkms_memory_ioctl' was here
  13237. 88 | int nv_drm_gem_export_nvkms_memory_ioctl(struct drm_device *dev,
  13238. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function 'nv_drm_gem_export_nvkms_memory_ioctl':
  13240. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:203:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13241. 203 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  13242. | ^~~~~~~~~~~~
  13243. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:208:38: error: 'DRIVER_MODESET' undeclared (first use in this function); did you mean 'HRTIMER_MODE_SOFT'?
  13244. 208 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) {
  13245. | ^~~~~~~~~~~~~~
  13246. | HRTIMER_MODE_SOFT
  13247. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:219:28: error: implicit declaration of function 'nv_drm_gem_object_nvkms_memory_lookup'; did you mean 'nv_drm_gem_export_nvkms_memory_ioctl'? [-Werror=implicit-function-declaration]
  13248. 219 | if ((nv_nvkms_memory = nv_drm_gem_object_nvkms_memory_lookup(
  13249. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13250. | nv_drm_gem_export_nvkms_memory_ioctl
  13251. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:219:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13252. 219 | if ((nv_nvkms_memory = nv_drm_gem_object_nvkms_memory_lookup(
  13253. | ^
  13254. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:231:10: error: 'nvKms' undeclared (first use in this function)
  13255. 231 | if (!nvKms->exportMemory(nv_dev->pDevice,
  13256. | ^~~~~
  13257. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:231:36: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  13258. 231 | if (!nvKms->exportMemory(nv_dev->pDevice,
  13259. | ^~
  13260. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:244:9: error: implicit declaration of function 'nv_drm_gem_object_unreference_unlocked' [-Werror=implicit-function-declaration]
  13261. 244 | nv_drm_gem_object_unreference_unlocked(&nv_nvkms_memory->base);
  13262. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13263. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  13264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:251:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13265. 251 | struct drm_device *dev,
  13266. | ^~~~~~~~~~
  13267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:250:31: error: conflicting types for '__nv_drm_gem_nvkms_prime_dup'
  13268. 250 | static struct drm_gem_object *__nv_drm_gem_nvkms_prime_dup(
  13269. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13270. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:56:31: note: previous declaration of '__nv_drm_gem_nvkms_prime_dup' was here
  13271. 56 | static struct drm_gem_object *__nv_drm_gem_nvkms_prime_dup(
  13272. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13273. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function '__nv_drm_gem_nvkms_prime_dup':
  13274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:254:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13275. 254 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  13276. | ^~~~~~~~~~~~
  13277. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/asm-generic/bug.h:5,
  13278. from /usr/src/linux-headers-5.8.0-kali3-common/arch/x86/include/asm/bug.h:92,
  13279. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/bug.h:5,
  13280. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmdebug.h:5,
  13281. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:9,
  13282. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-mm.h:80,
  13283. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:30:
  13284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:260:44: error: dereferencing pointer to incomplete type 'const struct nv_drm_gem_object'
  13285. 260 | BUG_ON(nv_gem_src == NULL || nv_gem_src->ops != &nv_gem_nvkms_memory_ops);
  13286. | ^~
  13287. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
  13288. 78 | # define unlikely(x) __builtin_expect(!!(x), 0)
  13289. | ^
  13290. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:260:5: note: in expansion of macro 'BUG_ON'
  13291. 260 | BUG_ON(nv_gem_src == NULL || nv_gem_src->ops != &nv_gem_nvkms_memory_ops);
  13292. | ^~~~~~
  13293. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:265:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13294. 265 | if ((nv_nvkms_memory =
  13295. | ^
  13296. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:270:15: error: 'nvKms' undeclared (first use in this function)
  13297. 270 | pMemory = nvKms->dupMemory(nv_dev->pDevice,
  13298. | ^~~~~
  13299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:270:38: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  13300. 270 | pMemory = nvKms->dupMemory(nv_dev->pDevice,
  13301. | ^~
  13302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:271:42: error: dereferencing pointer to incomplete type 'const struct nv_drm_device'
  13303. 271 | nv_dev_src->pDevice,
  13304. | ^~
  13305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:281:33: error: passing argument 1 of '__nv_drm_nvkms_gem_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
  13306. 281 | __nv_drm_nvkms_gem_obj_init(nv_dev,
  13307. | ^~~~~~
  13308. | |
  13309. | struct nv_drm_device *
  13310. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:138:27: note: expected 'struct nv_drm_device *' but argument is of type 'struct nv_drm_device *'
  13311. 138 | struct nv_drm_device *nv_dev,
  13312. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  13313. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  13314. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:295:35: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  13315. 295 | struct drm_device *dev, uint32_t handle,
  13316. | ^~~~~~~~~~
  13317. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:294:35: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  13318. 294 | int nv_drm_dumb_map_offset(struct drm_file *file,
  13319. | ^~~~~~~~
  13320. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function 'nv_drm_dumb_map_offset':
  13321. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:298:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13322. 298 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  13323. | ^~~~~~~~~~~~
  13324. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:302:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  13325. 302 | if ((nv_nvkms_memory = nv_drm_gem_object_nvkms_memory_lookup(
  13326. | ^
  13327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:321:11: error: implicit declaration of function 'nv_drm_gem_create_mmap_offset'; did you mean 'nv_drm_dumb_map_offset'? [-Werror=implicit-function-declaration]
  13328. 321 | ret = nv_drm_gem_create_mmap_offset(&nv_nvkms_memory->base, offset);
  13329. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13330. | nv_drm_dumb_map_offset
  13331. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function '__nv_drm_vma_fault':
  13332. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:339:9: error: implicit declaration of function 'to_nv_gem_object' [-Werror=implicit-function-declaration]
  13333. 339 | to_nv_gem_object(gem));
  13334. | ^~~~~~~~~~~~~~~~
  13335. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:339:9: warning: passing argument 1 of 'to_nv_nvkms_memory' makes pointer from integer without a cast [-Wint-conversion]
  13336. 339 | to_nv_gem_object(gem));
  13337. | ^~~~~~~~~~~~~~~~~~~~~
  13338. | |
  13339. | int
  13340. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  13341. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:44:31: note: expected 'struct nv_drm_gem_object *' but argument is of type 'int'
  13342. 44 | struct nv_drm_gem_object *nv_gem)
  13343. | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  13344. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:346:32: error: implicit declaration of function 'drm_vma_node_start' [-Werror=implicit-function-declaration]
  13345. 346 | page_offset = vmf->pgoff - drm_vma_node_start(&gem->vma_node);
  13346. | ^~~~~~~~~~~~~~~~~~
  13347. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:346:55: error: dereferencing pointer to incomplete type 'struct drm_gem_object'
  13348. 346 | page_offset = vmf->pgoff - drm_vma_node_start(&gem->vma_node);
  13349. | ^~
  13350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  13351. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:393:14: error: 'drm_gem_vm_open' undeclared here (not in a function); did you mean 'drm_gem_open'?
  13352. 393 | .open = drm_gem_vm_open,
  13353. | ^~~~~~~~~~~~~~~
  13354. | drm_gem_open
  13355. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:395:14: error: 'drm_gem_vm_close' undeclared here (not in a function); did you mean 'drm_gem_close'?
  13356. 395 | .close = drm_gem_vm_close,
  13357. | ^~~~~~~~~~~~~~~~
  13358. | drm_gem_close
  13359. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:60:38: error: storage size of 'nv_gem_nvkms_memory_ops' isn't known
  13360. 60 | const struct nv_drm_gem_object_funcs nv_gem_nvkms_memory_ops = {
  13361. | ^~~~~~~~~~~~~~~~~~~~~~~
  13362. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:56:31: warning: '__nv_drm_gem_nvkms_prime_dup' used but never defined
  13363. 56 | static struct drm_gem_object *__nv_drm_gem_nvkms_prime_dup(
  13364. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13365. cc1: some warnings being treated as errors
  13366. 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-drm/nvidia-drm-gem-nvkms-memory.o] Error 1
  13367. make[3]: Target '__build' not remade because of errors.
  13368. make[2]: *** [/usr/src/linux-headers-5.8.0-kali3-common/Makefile:1764: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel] Error 2
  13369. make[2]: Target 'modules' not remade because of errors.
  13370. make[2]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  13371. make[1]: *** [Makefile:185: __sub-make] Error 2
  13372. make[1]: Target 'modules' not remade because of errors.
  13373. make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-common'
  13374. make: *** [Makefile:81: modules] Error 2
  13375. -> Error.
  13376. ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details.
  13377. -> The command `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"` failed with the following output:
  13378. make[1]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-common'
  13379. make[2]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  13380. scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
  13381. SYMLINK /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-kernel.o
  13382. SYMLINK /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nv-modeset-kernel.o
  13383. CONFTEST: INIT_WORK
  13384. CONFTEST: remap_pfn_range
  13385. CONFTEST: hash__remap_4k_pfn
  13386. CONFTEST: follow_pfn
  13387. CONFTEST: vmap
  13388. CONFTEST: set_pages_uc
  13389. CONFTEST: list_is_first
  13390. CONFTEST: set_memory_uc
  13391. CONFTEST: set_memory_array_uc
  13392. CONFTEST: change_page_attr
  13393. CONFTEST: pci_get_class
  13394. CONFTEST: pci_choose_state
  13395. CONFTEST: vm_insert_page
  13396. CONFTEST: acpi_device_id
  13397. CONFTEST: acquire_console_sem
  13398. CONFTEST: console_lock
  13399. CONFTEST: kmem_cache_create
  13400. CONFTEST: on_each_cpu
  13401. CONFTEST: smp_call_function
  13402. CONFTEST: acpi_evaluate_integer
  13403. CONFTEST: ioremap_cache
  13404. CONFTEST: ioremap_wc
  13405. CONFTEST: acpi_walk_namespace
  13406. CONFTEST: pci_domain_nr
  13407. CONFTEST: pci_dma_mapping_error
  13408. CONFTEST: sg_alloc_table
  13409. CONFTEST: sg_init_table
  13410. CONFTEST: pci_get_domain_bus_and_slot
  13411. CONFTEST: get_num_physpages
  13412. CONFTEST: efi_enabled
  13413. CONFTEST: proc_create_data
  13414. CONFTEST: pde_data
  13415. CONFTEST: proc_remove
  13416. CONFTEST: pm_vt_switch_required
  13417. CONFTEST: xen_ioemu_inject_msi
  13418. CONFTEST: phys_to_dma
  13419. CONFTEST: get_dma_ops
  13420. CONFTEST: write_cr4
  13421. CONFTEST: of_get_property
  13422. CONFTEST: of_find_node_by_phandle
  13423. CONFTEST: of_node_to_nid
  13424. CONFTEST: pnv_pci_get_npu_dev
  13425. CONFTEST: of_get_ibm_chip_id
  13426. CONFTEST: for_each_online_node
  13427. CONFTEST: node_end_pfn
  13428. CONFTEST: pci_bus_address
  13429. CONFTEST: pci_stop_and_remove_bus_device
  13430. CONFTEST: pci_remove_bus_device
  13431. CONFTEST: request_threaded_irq
  13432. CONFTEST: register_cpu_notifier
  13433. CONFTEST: cpuhp_setup_state
  13434. CONFTEST: dma_map_resource
  13435. CONFTEST: backlight_device_register
  13436. CONFTEST: register_acpi_notifier
  13437. CONFTEST: timer_setup
  13438. CONFTEST: pci_enable_msix_range
  13439. CONFTEST: compound_order
  13440. CONFTEST: do_gettimeofday
  13441. CONFTEST: dma_direct_map_resource
  13442. CONFTEST: vmf_insert_pfn
  13443. CONFTEST: remap_page_range
  13444. CONFTEST: address_space_init_once
  13445. CONFTEST: kbasename
  13446. CONFTEST: fatal_signal_pending
  13447. CONFTEST: list_cut_position
  13448. CONFTEST: vzalloc
  13449. CONFTEST: wait_on_bit_lock_argument_count
  13450. CONFTEST: bitmap_clear
  13451. CONFTEST: usleep_range
  13452. CONFTEST: radix_tree_empty
  13453. CONFTEST: radix_tree_replace_slot
  13454. CONFTEST: pnv_npu2_init_context
  13455. CONFTEST: drm_dev_unref
  13456. CONFTEST: drm_reinit_primary_mode_group
  13457. CONFTEST: get_user_pages_remote
  13458. CONFTEST: get_user_pages
  13459. CONFTEST: drm_gem_object_lookup
  13460. CONFTEST: drm_atomic_state_ref_counting
  13461. CONFTEST: drm_driver_has_gem_prime_res_obj
  13462. CONFTEST: drm_atomic_helper_connector_dpms
  13463. CONFTEST: drm_connector_funcs_have_mode_in_name
  13464. CONFTEST: drm_framebuffer_get
  13465. CONFTEST: drm_gem_object_get
  13466. CONFTEST: drm_dev_put
  13467. CONFTEST: is_export_symbol_gpl_of_node_to_nid
  13468. CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
  13469. CONFTEST: is_export_symbol_present_swiotlb_dma_ops
  13470. CONFTEST: i2c_adapter
  13471. CONFTEST: pm_message_t
  13472. CONFTEST: irq_handler_t
  13473. CONFTEST: acpi_device_ops
  13474. CONFTEST: acpi_op_remove
  13475. CONFTEST: outer_flush_all
  13476. CONFTEST: proc_dir_entry
  13477. CONFTEST: scatterlist
  13478. CONFTEST: sg_table
  13479. CONFTEST: file_operations
  13480. CONFTEST: vm_operations_struct
  13481. CONFTEST: atomic_long_type
  13482. CONFTEST: file_inode
  13483. CONFTEST: task_struct
  13484. CONFTEST: kuid_t
  13485. CONFTEST: dma_ops
  13486. CONFTEST: swiotlb_dma_ops
  13487. CONFTEST: dma_map_ops
  13488. CONFTEST: noncoherent_swiotlb_dma_ops
  13489. CONFTEST: vm_fault_present
  13490. CONFTEST: vm_fault_has_address
  13491. CONFTEST: backlight_properties_type
  13492. CONFTEST: vmbus_channel_has_ringbuffer_page
  13493. CONFTEST: kmem_cache_has_kobj_remove_work
  13494. CONFTEST: sysfs_slab_unlink
  13495. CONFTEST: fault_flags
  13496. CONFTEST: atomic64_type
  13497. CONFTEST: address_space
  13498. CONFTEST: backing_dev_info
  13499. CONFTEST: mm_context_t
  13500. CONFTEST: vm_ops_fault_removed_vma_arg
  13501. CONFTEST: node_states_n_memory
  13502. CONFTEST: drm_bus_present
  13503. CONFTEST: drm_bus_has_bus_type
  13504. CONFTEST: drm_bus_has_get_irq
  13505. CONFTEST: drm_bus_has_get_name
  13506. CONFTEST: drm_driver_has_legacy_dev_list
  13507. CONFTEST: drm_driver_has_set_busid
  13508. CONFTEST: drm_crtc_state_has_connectors_changed
  13509. CONFTEST: drm_init_function_args
  13510. CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
  13511. CONFTEST: drm_helper_mode_fill_fb_struct
  13512. CONFTEST: drm_master_drop_has_from_release_arg
  13513. CONFTEST: drm_driver_unload_has_int_return_type
  13514. CONFTEST: kref_has_refcount_of_type_refcount_t
  13515. CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
  13516. CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
  13517. CONFTEST: drm_mode_object_find_has_file_priv_arg
  13518. CONFTEST: dma_buf_owner
  13519. CONFTEST: drm_connector_list_iter
  13520. CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
  13521. CONFTEST: drm_driver_prime_flag_present
  13522. CONFTEST: dom0_kernel_present
  13523. CONFTEST: nvidia_vgpu_hyperv_available
  13524. CONFTEST: nvidia_vgpu_kvm_build
  13525. CONFTEST: nvidia_grid_build
  13526. CONFTEST: drm_available
  13527. CONFTEST: drm_atomic_available
  13528. CONFTEST: is_export_symbol_gpl_refcount_inc
  13529. CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
  13530. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.o
  13531. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.o
  13532. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.o
  13533. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.o
  13534. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.o
  13535. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.o
  13536. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.o
  13537. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.o
  13538. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  13539. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13540. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13541. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13542. | ^~~~~~~~~
  13543. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13544. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  13545. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13546. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13547. | ^~~~~~~~~
  13548. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  13549. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13550. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13551. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13552. | ^~~~~~~~~
  13553. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13554. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  13555. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13556. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13557. | ^~~~~~~~~
  13558. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  13559. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13560. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13561. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13562. | ^~~~~~~~~
  13563. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13564. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  13565. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13566. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13567. | ^~~~~~~~~
  13568. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  13569. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13570. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13571. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13572. | ^~~~~~~~~
  13573. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13574. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  13575. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13576. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13577. | ^~~~~~~~~
  13578. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  13579. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13580. /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]
  13581. 578 | void *ptr = ioremap_nocache(phys, size);
  13582. | ^~~~~~~~~~~~~~~
  13583. | ioremap_cache
  13584. /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]
  13585. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  13586. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13587. /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]
  13588. 578 | void *ptr = ioremap_nocache(phys, size);
  13589. | ^~~~~~~~~~~~~~~
  13590. | ioremap_cache
  13591. /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]
  13592. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  13593. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13594. /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]
  13595. 578 | void *ptr = ioremap_nocache(phys, size);
  13596. | ^~~~~~~~~~~~~~~
  13597. | ioremap_cache
  13598. /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]
  13599. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  13600. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13601. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13602. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13603. | ^~~~~~~~~
  13604. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13605. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  13606. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13607. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13608. | ^~~~~~~~~
  13609. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  13610. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13611. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13612. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13613. | ^~~~~~~~~
  13614. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13615. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  13616. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13617. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13618. | ^~~~~~~~~
  13619. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  13620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13621. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13622. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13623. | ^~~~~~~~~
  13624. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13625. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  13626. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13627. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13628. | ^~~~~~~~~
  13629. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  13630. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13631. /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]
  13632. 578 | void *ptr = ioremap_nocache(phys, size);
  13633. | ^~~~~~~~~~~~~~~
  13634. | ioremap_cache
  13635. /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]
  13636. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  13637. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13638. /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]
  13639. 578 | void *ptr = ioremap_nocache(phys, size);
  13640. | ^~~~~~~~~~~~~~~
  13641. | ioremap_cache
  13642. /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]
  13643. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  13644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13645. /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]
  13646. 578 | void *ptr = ioremap_nocache(phys, size);
  13647. | ^~~~~~~~~~~~~~~
  13648. | ioremap_cache
  13649. /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]
  13650. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  13651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13652. /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]
  13653. 578 | void *ptr = ioremap_nocache(phys, size);
  13654. | ^~~~~~~~~~~~~~~
  13655. | ioremap_cache
  13656. /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]
  13657. cc1: some warnings being treated as errors
  13658. cc1: some warnings being treated as errors
  13659. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  13660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13662. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13663. | ^~~~~~~~~
  13664. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13665. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  13666. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13667. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13668. | ^~~~~~~~~
  13669. 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
  13670. 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
  13671. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.o
  13672. cc1: some warnings being treated as errors
  13673. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.o
  13674. 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
  13675. cc1: some warnings being treated as errors
  13676. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  13677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13678. /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]
  13679. 578 | void *ptr = ioremap_nocache(phys, size);
  13680. | ^~~~~~~~~~~~~~~
  13681. | ioremap_cache
  13682. /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]
  13683. cc1: some warnings being treated as errors
  13684. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.o
  13685. 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
  13686. 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
  13687. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.o
  13688. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.o
  13689. cc1: some warnings being treated as errors
  13690. 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
  13691. cc1: some warnings being treated as errors
  13692. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.o
  13693. 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
  13694. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.o
  13695. cc1: some warnings being treated as errors
  13696. 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
  13697. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.o
  13698. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  13699. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13700. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13701. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13702. | ^~~~~~~~~
  13703. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13704. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  13705. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13706. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13707. | ^~~~~~~~~
  13708. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  13709. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13710. /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]
  13711. 578 | void *ptr = ioremap_nocache(phys, size);
  13712. | ^~~~~~~~~~~~~~~
  13713. | ioremap_cache
  13714. /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]
  13715. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  13716. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13717. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13718. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13719. | ^~~~~~~~~
  13720. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13721. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  13722. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13723. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13724. | ^~~~~~~~~
  13725. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  13726. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13727. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13728. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13729. | ^~~~~~~~~
  13730. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13731. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  13732. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13733. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13734. | ^~~~~~~~~
  13735. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  13736. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13737. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13738. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13739. | ^~~~~~~~~
  13740. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13741. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  13742. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13743. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13744. | ^~~~~~~~~
  13745. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  13746. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13747. /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]
  13748. 578 | void *ptr = ioremap_nocache(phys, size);
  13749. | ^~~~~~~~~~~~~~~
  13750. | ioremap_cache
  13751. /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]
  13752. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  13753. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13754. /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]
  13755. 578 | void *ptr = ioremap_nocache(phys, size);
  13756. | ^~~~~~~~~~~~~~~
  13757. | ioremap_cache
  13758. /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]
  13759. cc1: some warnings being treated as errors
  13760. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  13761. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13762. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13763. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13764. | ^~~~~~~~~
  13765. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13766. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  13767. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13768. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13769. | ^~~~~~~~~
  13770. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  13771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13772. /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]
  13773. 578 | void *ptr = ioremap_nocache(phys, size);
  13774. | ^~~~~~~~~~~~~~~
  13775. | ioremap_cache
  13776. /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]
  13777. 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
  13778. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.o
  13779. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  13780. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13781. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13782. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13783. | ^~~~~~~~~
  13784. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13785. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  13786. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13787. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13788. | ^~~~~~~~~
  13789. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  13790. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13791. /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]
  13792. 578 | void *ptr = ioremap_nocache(phys, size);
  13793. | ^~~~~~~~~~~~~~~
  13794. | ioremap_cache
  13795. /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]
  13796. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13797. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13798. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13799. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13800. | ^~~~~~~~~
  13801. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13802. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13803. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13804. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13805. | ^~~~~~~~~
  13806. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  13807. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13808. /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]
  13809. 578 | void *ptr = ioremap_nocache(phys, size);
  13810. | ^~~~~~~~~~~~~~~
  13811. | ioremap_cache
  13812. /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]
  13813. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching':
  13814. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
  13815. 255 | if (NV_ALLOW_CACHING(memory_type))
  13816. | ^
  13817. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:257:9: note: here
  13818. 257 | default:
  13819. | ^~~~~~~
  13820. cc1: some warnings being treated as errors
  13821. cc1: some warnings being treated as errors
  13822. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13823. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13824. /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]
  13825. 578 | void *ptr = ioremap_nocache(phys, size);
  13826. | ^~~~~~~~~~~~~~~
  13827. | ioremap_cache
  13828. /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]
  13829. cc1: some warnings being treated as errors
  13830. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  13831. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  13832. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  13833. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  13834. | ^~~~~~~~~
  13835. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  13836. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  13837. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  13838. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  13839. | ^~~~~~~~~
  13840. 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
  13841. 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
  13842. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.o
  13843. 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
  13844. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.o
  13845. cc1: some warnings being treated as errors
  13846. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.o
  13847. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  13848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  13849. /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]
  13850. 578 | void *ptr = ioremap_nocache(phys, size);
  13851. | ^~~~~~~~~~~~~~~
  13852. | ioremap_cache
  13853. /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]
  13854. cc1: some warnings being treated as errors
  13855. 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
  13856. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  13857. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13858. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_add_text_file':
  13859. /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]
  13860. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  13861. | ^~~~
  13862. | |
  13863. | const struct file_operations *
  13864. /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'
  13865. 39 | proc_create_data(name, mode, parent, fops, __data)
  13866. | ^~~~
  13867. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1026:5: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  13868. 1026 | NV_CREATE_PROC_FILE(filename, parent, text_file, (void *)text);
  13869. | ^~~~~~~~~~~~~~~~~~~
  13870. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  13871. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  13872. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13873. /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 *'
  13874. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  13875. | ^~~~~~~~~~~~~~~~
  13876. 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
  13877. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  13878. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13879. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_register_procfs':
  13880. /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]
  13881. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  13882. | ^~~~
  13883. | |
  13884. | const struct file_operations *
  13885. /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'
  13886. 39 | proc_create_data(name, mode, parent, fops, __data)
  13887. | ^~~~
  13888. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1080:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  13889. 1080 | entry = NV_CREATE_PROC_FILE("params", proc_nvidia, params, NULL);
  13890. | ^~~~~~~~~~~~~~~~~~~
  13891. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  13892. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  13893. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13894. /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 *'
  13895. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  13896. | ^~~~~~~~~~~~~~~~
  13897. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.o
  13898. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  13899. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13900. /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]
  13901. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  13902. | ^~~~
  13903. | |
  13904. | const struct file_operations *
  13905. /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'
  13906. 39 | proc_create_data(name, mode, parent, fops, __data)
  13907. | ^~~~
  13908. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1084:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  13909. 1084 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia, registry, NULL);
  13910. | ^~~~~~~~~~~~~~~~~~~
  13911. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  13912. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  13913. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13914. /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 *'
  13915. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  13916. | ^~~~~~~~~~~~~~~~
  13917. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  13918. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13919. /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]
  13920. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  13921. | ^~~~
  13922. | |
  13923. | const struct file_operations *
  13924. /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'
  13925. 39 | proc_create_data(name, mode, parent, fops, __data)
  13926. | ^~~~
  13927. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1105:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  13928. 1105 | entry = NV_CREATE_PROC_FILE("version", proc_nvidia, version, NULL);
  13929. | ^~~~~~~~~~~~~~~~~~~
  13930. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  13931. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  13932. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13933. /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 *'
  13934. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  13935. | ^~~~~~~~~~~~~~~~
  13936. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  13937. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_add_gpu':
  13939. /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]
  13940. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  13941. | ^~~~
  13942. | |
  13943. | const struct file_operations *
  13944. /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'
  13945. 39 | proc_create_data(name, mode, parent, fops, __data)
  13946. | ^~~~
  13947. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1147:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  13948. 1147 | entry = NV_CREATE_PROC_FILE("information", proc_nvidia_gpu, gpu_info,
  13949. | ^~~~~~~~~~~~~~~~~~~
  13950. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  13951. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  13952. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13953. /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 *'
  13954. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  13955. | ^~~~~~~~~~~~~~~~
  13956. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  13957. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13958. /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]
  13959. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  13960. | ^~~~
  13961. | |
  13962. | const struct file_operations *
  13963. /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'
  13964. 39 | proc_create_data(name, mode, parent, fops, __data)
  13965. | ^~~~
  13966. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1152:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  13967. 1152 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia_gpu, registry, nv);
  13968. | ^~~~~~~~~~~~~~~~~~~
  13969. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  13970. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  13971. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13972. /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 *'
  13973. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  13974. | ^~~~~~~~~~~~~~~~
  13975. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  13976. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13977. /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]
  13978. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  13979. | ^~~~
  13980. | |
  13981. | const struct file_operations *
  13982. /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'
  13983. 39 | proc_create_data(name, mode, parent, fops, __data)
  13984. | ^~~~
  13985. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1158:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  13986. 1158 | entry = NV_CREATE_PROC_FILE("exercise_error_forwarding", proc_nvidia_gpu,
  13987. | ^~~~~~~~~~~~~~~~~~~
  13988. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  13989. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  13990. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13991. /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 *'
  13992. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  13993. | ^~~~~~~~~~~~~~~~
  13994. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  13995. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  13996. /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]
  13997. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  13998. | ^~~~
  13999. | |
  14000. | const struct file_operations *
  14001. /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'
  14002. 39 | proc_create_data(name, mode, parent, fops, __data)
  14003. | ^~~~
  14004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1166:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  14005. 1166 | entry = NV_CREATE_PROC_FILE("unbindLock", proc_nvidia_gpu, unbind_lock, nv);
  14006. | ^~~~~~~~~~~~~~~~~~~
  14007. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  14008. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  14009. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  14010. /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 *'
  14011. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  14012. | ^~~~~~~~~~~~~~~~
  14013. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  14014. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  14015. /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]
  14016. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  14017. | ^~~~
  14018. | |
  14019. | const struct file_operations *
  14020. /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'
  14021. 39 | proc_create_data(name, mode, parent, fops, __data)
  14022. | ^~~~
  14023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1173:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  14024. 1173 | entry = NV_CREATE_PROC_FILE("numa_status", proc_nvidia_gpu, numa_status,
  14025. | ^~~~~~~~~~~~~~~~~~~
  14026. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  14027. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  14028. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  14029. /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 *'
  14030. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  14031. | ^~~~~~~~~~~~~~~~
  14032. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  14033. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  14034. /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]
  14035. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  14036. | ^~~~
  14037. | |
  14038. | const struct file_operations *
  14039. /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'
  14040. 39 | proc_create_data(name, mode, parent, fops, __data)
  14041. | ^~~~
  14042. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1178:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  14043. 1178 | entry = NV_CREATE_PROC_FILE("offline_pages", proc_nvidia_gpu, offline_pages,
  14044. | ^~~~~~~~~~~~~~~~~~~
  14045. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  14046. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  14047. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  14048. /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 *'
  14049. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  14050. | ^~~~~~~~~~~~~~~~
  14051. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.o
  14052. cc1: some warnings being treated as errors
  14053. 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
  14054. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.o
  14055. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c: In function 'nv_set_memory_array_type':
  14056. /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]
  14057. 86 | set_memory_array_uc(pages, num_pages);
  14058. | ^~~~~~~~~~~~~~~~~~~
  14059. | set_pages_array_uc
  14060. /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]
  14061. 89 | set_memory_array_wb(pages, num_pages);
  14062. | ^~~~~~~~~~~~~~~~~~~
  14063. | set_pages_array_wb
  14064. cc1: some warnings being treated as errors
  14065. 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
  14066. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pci-table.o
  14067. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  14068. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14069. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14070. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14071. | ^~~~~~~~~
  14072. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14073. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  14074. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14075. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14076. | ^~~~~~~~~
  14077. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  14078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14079. /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]
  14080. 578 | void *ptr = ioremap_nocache(phys, size);
  14081. | ^~~~~~~~~~~~~~~
  14082. | ioremap_cache
  14083. /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]
  14084. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  14085. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14086. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14087. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14088. | ^~~~~~~~~
  14089. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14090. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  14091. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14092. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14093. | ^~~~~~~~~
  14094. cc1: some warnings being treated as errors
  14095. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  14096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14097. /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]
  14098. 578 | void *ptr = ioremap_nocache(phys, size);
  14099. | ^~~~~~~~~~~~~~~
  14100. | ioremap_cache
  14101. /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]
  14102. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  14103. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14104. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14105. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14106. | ^~~~~~~~~
  14107. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14108. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  14109. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14110. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14111. | ^~~~~~~~~
  14112. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  14113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14114. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14115. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14116. | ^~~~~~~~~
  14117. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14118. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  14119. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14120. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14121. | ^~~~~~~~~
  14122. 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
  14123. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  14124. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14125. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14126. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14127. | ^~~~~~~~~
  14128. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14129. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  14130. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14131. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14132. | ^~~~~~~~~
  14133. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-kthread-q.o
  14134. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  14135. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14136. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14137. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14138. | ^~~~~~~~~
  14139. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14140. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  14141. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14142. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14143. | ^~~~~~~~~
  14144. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  14145. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14146. /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]
  14147. 578 | void *ptr = ioremap_nocache(phys, size);
  14148. | ^~~~~~~~~~~~~~~
  14149. | ioremap_cache
  14150. /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]
  14151. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:17:
  14152. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: At top level:
  14153. /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
  14154. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14155. | ^~~~~~~
  14156. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14157. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14158. 39 | *tv = (struct timeval) {
  14159. | ^~~
  14160. /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'
  14161. 40 | .tv_sec = now.tv_sec,
  14162. | ^~~~~~
  14163. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  14164. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14165. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  14166. 40 | .tv_sec = now.tv_sec,
  14167. | ^~~
  14168. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  14169. /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'
  14170. 41 | .tv_usec = now.tv_nsec/1000,
  14171. | ^~~~~~~
  14172. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  14173. 41 | .tv_usec = now.tv_nsec/1000,
  14174. | ^~~
  14175. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  14176. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  14177. 39 | *tv = (struct timeval) {
  14178. | ^
  14179. /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]
  14180. 578 | void *ptr = ioremap_nocache(phys, size);
  14181. | ^~~~~~~~~~~~~~~
  14182. | ioremap_cache
  14183. /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]
  14184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_get_current_time':
  14185. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:432:20: error: storage size of 'tm' isn't known
  14186. 432 | struct timeval tm;
  14187. | ^~
  14188. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:432:20: warning: unused variable 'tm' [-Wunused-variable]
  14189. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_get_current_tick':
  14190. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:446:21: error: storage size of 'ts' isn't known
  14191. 446 | struct timespec ts;
  14192. | ^~
  14193. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  14194. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14195. /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]
  14196. 578 | void *ptr = ioremap_nocache(phys, size);
  14197. | ^~~~~~~~~~~~~~~
  14198. | ioremap_cache
  14199. /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]
  14200. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  14201. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14202. /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]
  14203. 578 | void *ptr = ioremap_nocache(phys, size);
  14204. | ^~~~~~~~~~~~~~~
  14205. | ioremap_cache
  14206. /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]
  14207. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory':
  14208. /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'?
  14209. 47 | down_read(&mm->mmap_sem);
  14210. | ^~~~~~~~
  14211. | mmap_base
  14212. /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'?
  14213. 80 | up_read(&mm->mmap_sem);
  14214. | ^~~~~~~~
  14215. | mmap_base
  14216. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages':
  14217. /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'?
  14218. 118 | down_read(&mm->mmap_sem);
  14219. | ^~~~~~~~
  14220. | mmap_base
  14221. /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'?
  14222. 121 | up_read(&mm->mmap_sem);
  14223. | ^~~~~~~~
  14224. | mmap_base
  14225. cc1: some warnings being treated as errors
  14226. cc1: some warnings being treated as errors
  14227. /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]
  14228. 448 | jiffies_to_timespec(jiffies, &ts);
  14229. | ^~~~~~~~~~~~~~~~~~~
  14230. | jiffies_to_timespec64
  14231. 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
  14232. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:446:21: warning: unused variable 'ts' [-Wunused-variable]
  14233. 446 | struct timespec ts;
  14234. | ^~
  14235. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_delay':
  14236. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:20: error: storage size of 'tm_end' isn't known
  14237. 558 | struct timeval tm_end, tm_aux;
  14238. | ^~~~~~
  14239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:28: error: storage size of 'tm_aux' isn't known
  14240. 558 | struct timeval tm_end, tm_aux;
  14241. | ^~~~~~
  14242. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:28: warning: unused variable 'tm_aux' [-Wunused-variable]
  14243. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:20: warning: unused variable 'tm_end' [-Wunused-variable]
  14244. 558 | struct timeval tm_end, tm_aux;
  14245. | ^~~~~~
  14246. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  14247. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14248. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14249. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14250. | ^~~~~~~~~
  14251. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14252. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  14253. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14254. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14255. | ^~~~~~~~~
  14256. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-kthread-q-selftest.o
  14257. cc1: some warnings being treated as errors
  14258. 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
  14259. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function '_os_ipmi_receive_resp':
  14260. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:1917:29: error: storage size of 'tv' isn't known
  14261. 1917 | struct timeval tv;
  14262. | ^~
  14263. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:1917:29: warning: unused variable 'tv' [-Wunused-variable]
  14264. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.o
  14265. 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
  14266. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  14267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14268. /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]
  14269. 578 | void *ptr = ioremap_nocache(phys, size);
  14270. | ^~~~~~~~~~~~~~~
  14271. | ioremap_cache
  14272. /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]
  14273. cc1: some warnings being treated as errors
  14274. 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
  14275. cc1: some warnings being treated as errors
  14276. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.o
  14277. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.o
  14278. cc1: some warnings being treated as errors
  14279. 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
  14280. 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
  14281. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.o
  14282. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.o
  14283. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.o
  14284. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  14285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14286. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14287. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14288. | ^~~~~~~~~
  14289. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14290. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  14291. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14292. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14293. | ^~~~~~~~~
  14294. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  14295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14296. /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]
  14297. 578 | void *ptr = ioremap_nocache(phys, size);
  14298. | ^~~~~~~~~~~~~~~
  14299. | ioremap_cache
  14300. /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]
  14301. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  14302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14303. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14304. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14305. | ^~~~~~~~~
  14306. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14307. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  14308. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14309. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14310. | ^~~~~~~~~
  14311. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  14312. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14313. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14314. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14315. | ^~~~~~~~~
  14316. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14317. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  14318. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14319. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14320. | ^~~~~~~~~
  14321. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  14322. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14323. /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]
  14324. 578 | void *ptr = ioremap_nocache(phys, size);
  14325. | ^~~~~~~~~~~~~~~
  14326. | ioremap_cache
  14327. /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]
  14328. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  14329. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14330. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14331. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14332. | ^~~~~~~~~
  14333. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14334. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  14335. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14336. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14337. | ^~~~~~~~~
  14338. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  14339. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14340. /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]
  14341. 578 | void *ptr = ioremap_nocache(phys, size);
  14342. | ^~~~~~~~~~~~~~~
  14343. | ioremap_cache
  14344. /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]
  14345. cc1: some warnings being treated as errors
  14346. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  14347. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  14348. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14349. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14350. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14351. | ^~~~~~~~~
  14352. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14353. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  14354. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  14355. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14356. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14357. | ^~~~~~~~~
  14358. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  14359. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14360. /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]
  14361. 578 | void *ptr = ioremap_nocache(phys, size);
  14362. | ^~~~~~~~~~~~~~~
  14363. | ioremap_cache
  14364. /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]
  14365. 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
  14366. cc1: some warnings being treated as errors
  14367. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  14368. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  14369. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14370. /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]
  14371. 578 | void *ptr = ioremap_nocache(phys, size);
  14372. | ^~~~~~~~~~~~~~~
  14373. | ioremap_cache
  14374. /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]
  14375. 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
  14376. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.o
  14377. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.o
  14378. cc1: some warnings being treated as errors
  14379. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  14380. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14382. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14383. | ^~~~~~~~~
  14384. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14385. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  14386. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14387. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14388. | ^~~~~~~~~
  14389. 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
  14390. cc1: some warnings being treated as errors
  14391. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.o
  14392. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  14393. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14394. /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]
  14395. 578 | void *ptr = ioremap_nocache(phys, size);
  14396. | ^~~~~~~~~~~~~~~
  14397. | ioremap_cache
  14398. /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]
  14399. 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
  14400. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.o
  14401. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.o
  14402. cc1: some warnings being treated as errors
  14403. 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
  14404. cc1: some warnings being treated as errors
  14405. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/nvstatus.o
  14406. 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
  14407. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/nvCpuUuid.o
  14408. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.o
  14409. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.o
  14410. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.o
  14411. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  14412. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  14413. /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
  14414. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14415. | ^~~~~~~
  14416. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14417. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14418. 39 | *tv = (struct timeval) {
  14419. | ^~~
  14420. /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'
  14421. 40 | .tv_sec = now.tv_sec,
  14422. | ^~~~~~
  14423. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  14424. 40 | .tv_sec = now.tv_sec,
  14425. | ^~~
  14426. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  14427. /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'
  14428. 41 | .tv_usec = now.tv_nsec/1000,
  14429. | ^~~~~~~
  14430. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  14431. 41 | .tv_usec = now.tv_nsec/1000,
  14432. | ^~~
  14433. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  14434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  14435. 39 | *tv = (struct timeval) {
  14436. | ^
  14437. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  14438. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  14439. /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
  14440. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14441. | ^~~~~~~
  14442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14443. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14444. 39 | *tv = (struct timeval) {
  14445. | ^~~
  14446. /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'
  14447. 40 | .tv_sec = now.tv_sec,
  14448. | ^~~~~~
  14449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  14450. 40 | .tv_sec = now.tv_sec,
  14451. | ^~~
  14452. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  14453. /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'
  14454. 41 | .tv_usec = now.tv_nsec/1000,
  14455. | ^~~~~~~
  14456. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  14457. 41 | .tv_usec = now.tv_nsec/1000,
  14458. | ^~~
  14459. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  14460. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  14461. 39 | *tv = (struct timeval) {
  14462. | ^
  14463. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  14464. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14465. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  14466. /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
  14467. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14468. | ^~~~~~~
  14469. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14470. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14471. 39 | *tv = (struct timeval) {
  14472. | ^~~
  14473. /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'
  14474. 40 | .tv_sec = now.tv_sec,
  14475. | ^~~~~~
  14476. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  14477. 40 | .tv_sec = now.tv_sec,
  14478. | ^~~
  14479. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  14480. /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'
  14481. 41 | .tv_usec = now.tv_nsec/1000,
  14482. | ^~~~~~~
  14483. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  14484. 41 | .tv_usec = now.tv_nsec/1000,
  14485. | ^~~
  14486. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  14487. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  14488. 39 | *tv = (struct timeval) {
  14489. | ^
  14490. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  14491. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14492. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  14493. /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
  14494. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14495. | ^~~~~~~
  14496. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14497. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14498. 39 | *tv = (struct timeval) {
  14499. | ^~~
  14500. /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'
  14501. 40 | .tv_sec = now.tv_sec,
  14502. | ^~~~~~
  14503. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  14504. 40 | .tv_sec = now.tv_sec,
  14505. | ^~~
  14506. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  14507. /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'
  14508. 41 | .tv_usec = now.tv_nsec/1000,
  14509. | ^~~~~~~
  14510. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  14511. 41 | .tv_usec = now.tv_nsec/1000,
  14512. | ^~~
  14513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  14514. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  14515. 39 | *tv = (struct timeval) {
  14516. | ^
  14517. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  14518. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14519. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  14520. /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
  14521. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14522. | ^~~~~~~
  14523. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14524. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14525. 39 | *tv = (struct timeval) {
  14526. | ^~~
  14527. /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'
  14528. 40 | .tv_sec = now.tv_sec,
  14529. | ^~~~~~
  14530. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  14531. 40 | .tv_sec = now.tv_sec,
  14532. | ^~~
  14533. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  14534. /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'
  14535. 41 | .tv_usec = now.tv_nsec/1000,
  14536. | ^~~~~~~
  14537. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  14538. 41 | .tv_usec = now.tv_nsec/1000,
  14539. | ^~~
  14540. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  14541. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  14542. 39 | *tv = (struct timeval) {
  14543. | ^
  14544. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  14545. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14546. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  14547. /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
  14548. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14549. | ^~~~~~~
  14550. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14551. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14552. 39 | *tv = (struct timeval) {
  14553. | ^~~
  14554. /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'
  14555. 40 | .tv_sec = now.tv_sec,
  14556. | ^~~~~~
  14557. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  14558. 40 | .tv_sec = now.tv_sec,
  14559. | ^~~
  14560. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  14561. /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'
  14562. 41 | .tv_usec = now.tv_nsec/1000,
  14563. | ^~~~~~~
  14564. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  14565. 41 | .tv_usec = now.tv_nsec/1000,
  14566. | ^~~
  14567. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  14568. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  14569. 39 | *tv = (struct timeval) {
  14570. | ^
  14571. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  14572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14573. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14574. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14575. | ^~~~~~~~~
  14576. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  14578. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14579. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14580. | ^~~~~~~~~
  14581. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14582. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  14583. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14584. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14585. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14586. | ^~~~~~~~~
  14587. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14589. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  14590. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14591. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14592. | ^~~~~~~~~
  14593. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  14594. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14595. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14596. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14597. | ^~~~~~~~~
  14598. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14599. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  14600. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14601. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14602. | ^~~~~~~~~
  14603. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  14604. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14605. /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]
  14606. 578 | void *ptr = ioremap_nocache(phys, size);
  14607. | ^~~~~~~~~~~~~~~
  14608. | ioremap_cache
  14609. /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]
  14610. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14611. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  14612. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14613. /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]
  14614. 578 | void *ptr = ioremap_nocache(phys, size);
  14615. | ^~~~~~~~~~~~~~~
  14616. | ioremap_cache
  14617. /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]
  14618. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14619. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  14620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14621. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14622. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14623. | ^~~~~~~~~
  14624. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14625. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14626. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  14627. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14628. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14629. | ^~~~~~~~~
  14630. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14631. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14632. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  14633. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14634. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14635. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14636. | ^~~~~~~~~
  14637. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14638. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14639. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14640. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  14641. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14642. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14643. | ^~~~~~~~~
  14644. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  14645. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14646. /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]
  14647. 578 | void *ptr = ioremap_nocache(phys, size);
  14648. | ^~~~~~~~~~~~~~~
  14649. | ioremap_cache
  14650. /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]
  14651. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:32:
  14652. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: At top level:
  14653. /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
  14654. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14655. | ^~~~~~~
  14656. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14658. 39 | *tv = (struct timeval) {
  14659. | ^~~
  14660. /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'
  14661. 40 | .tv_sec = now.tv_sec,
  14662. | ^~~~~~
  14663. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  14664. 40 | .tv_sec = now.tv_sec,
  14665. | ^~~
  14666. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  14667. /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'
  14668. 41 | .tv_usec = now.tv_nsec/1000,
  14669. | ^~~~~~~
  14670. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  14671. 41 | .tv_usec = now.tv_nsec/1000,
  14672. | ^~~
  14673. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  14674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  14675. 39 | *tv = (struct timeval) {
  14676. | ^
  14677. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  14678. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  14679. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nvlink_permissions_init':
  14680. /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]
  14681. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  14682. | ^~~~
  14683. | |
  14684. | const struct file_operations *
  14685. /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'
  14686. 39 | proc_create_data(name, mode, parent, fops, __data)
  14687. | ^~~~
  14688. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:105:26: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  14689. 105 | nvlink_permissions = NV_CREATE_PROC_FILE("permissions",
  14690. | ^~~~~~~~~~~~~~~~~~~
  14691. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  14692. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  14693. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  14694. /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 *'
  14695. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  14696. | ^~~~~~~~~~~~~~~~
  14697. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  14698. /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
  14699. 506 | const struct timeval *a,
  14700. | ^~~~~~~
  14701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timer_less_than':
  14702. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:510:14: error: dereferencing pointer to incomplete type 'const struct timeval'
  14703. 510 | return (a->tv_sec == b->tv_sec) ? (a->tv_usec < b->tv_usec)
  14704. | ^~
  14705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  14706. /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
  14707. 516 | const struct timeval *a,
  14708. | ^~~~~~~
  14709. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timeradd':
  14710. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:521:11: error: dereferencing pointer to incomplete type 'struct timeval'
  14711. 521 | result->tv_sec = a->tv_sec + b->tv_sec;
  14712. | ^~
  14713. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:521:23: error: dereferencing pointer to incomplete type 'const struct timeval'
  14714. 521 | result->tv_sec = a->tv_sec + b->tv_sec;
  14715. | ^~
  14716. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  14717. /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
  14718. 532 | const struct timeval *a,
  14719. | ^~~~~~~
  14720. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timersub':
  14721. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:537:11: error: dereferencing pointer to incomplete type 'struct timeval'
  14722. 537 | result->tv_sec = a->tv_sec - b->tv_sec;
  14723. | ^~
  14724. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:537:23: error: dereferencing pointer to incomplete type 'const struct timeval'
  14725. 537 | result->tv_sec = a->tv_sec - b->tv_sec;
  14726. | ^~
  14727. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nvlink_sleep':
  14728. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:20: error: storage size of 'tm_end' isn't known
  14729. 554 | struct timeval tm_end, tm_aux;
  14730. | ^~~~~~
  14731. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14732. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  14733. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14734. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:28: error: storage size of 'tm_aux' isn't known
  14735. 554 | struct timeval tm_end, tm_aux;
  14736. | ^~~~~~
  14737. /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]
  14738. 578 | void *ptr = ioremap_nocache(phys, size);
  14739. | ^~~~~~~~~~~~~~~
  14740. | ioremap_cache
  14741. /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]
  14742. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:28: warning: unused variable 'tm_aux' [-Wunused-variable]
  14743. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:20: warning: unused variable 'tm_end' [-Wunused-variable]
  14744. 554 | struct timeval tm_end, tm_aux;
  14745. | ^~~~~~
  14746. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14747. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14748. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  14749. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14750. /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]
  14751. 578 | void *ptr = ioremap_nocache(phys, size);
  14752. | ^~~~~~~~~~~~~~~
  14753. | ioremap_cache
  14754. /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]
  14755. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_utils.c:25:
  14756. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  14757. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  14758. 325 | struct timespec ts = {0};
  14759. | ^~~~~~~~
  14760. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  14761. 325 | struct timespec ts = {0};
  14762. | ^
  14763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  14764. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  14765. 325 | struct timespec ts = {0};
  14766. | ^~
  14767. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:26:
  14768. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_permissions_init':
  14769. /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]
  14770. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  14771. | ^~~~
  14772. | |
  14773. | const struct file_operations *
  14774. /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'
  14775. 39 | proc_create_data(name, mode, parent, fops, __data)
  14776. | ^~~~
  14777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:324:28: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  14778. 324 | nvswitch_permissions = NV_CREATE_PROC_FILE("permissions",
  14779. | ^~~~~~~~~~~~~~~~~~~
  14780. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:16,
  14781. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:26:
  14782. /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 *'
  14783. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  14784. | ^~~~~~~~~~~~~~~~
  14785. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_os_get_platform_time':
  14786. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1562:21: error: storage size of 'ts' isn't known
  14787. 1562 | struct timespec ts;
  14788. | ^~
  14789. cc1: some warnings being treated as errors
  14790. 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
  14791. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.c:24:
  14792. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  14793. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  14794. 325 | struct timespec ts = {0};
  14795. | ^~~~~~~~
  14796. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  14797. 325 | struct timespec ts = {0};
  14798. | ^
  14799. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  14800. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  14801. 325 | struct timespec ts = {0};
  14802. | ^~
  14803. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14804. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.c:25:
  14805. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  14806. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.o
  14807. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  14808. 325 | struct timespec ts = {0};
  14809. | ^~~~~~~~
  14810. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  14811. 325 | struct timespec ts = {0};
  14812. | ^
  14813. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  14814. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  14815. 325 | struct timespec ts = {0};
  14816. | ^~
  14817. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14818. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14819. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  14820. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14821. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14822. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14823. | ^~~~~~~~~
  14824. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14825. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14826. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14827. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  14828. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14829. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14830. | ^~~~~~~~~
  14831. /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]
  14832. 1564 | getnstimeofday(&ts);
  14833. | ^~~~~~~~~~~~~~
  14834. | efi_gettimeofday
  14835. /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]
  14836. 327 | getrawmonotonic(&ts);
  14837. | ^~~~~~~~~~~~~~~
  14838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  14839. 325 | struct timespec ts = {0};
  14840. | ^~
  14841. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14842. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14843. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  14844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14845. /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]
  14846. 578 | void *ptr = ioremap_nocache(phys, size);
  14847. | ^~~~~~~~~~~~~~~
  14848. | ioremap_cache
  14849. /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]
  14850. cc1: some warnings being treated as errors
  14851. /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]
  14852. 1565 | return ((NvU64) timespec_to_ns(&ts));
  14853. | ^~~~~~~~~~~~~~
  14854. | timespec64_to_ns
  14855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1562:21: warning: unused variable 'ts' [-Wunused-variable]
  14856. 1562 | struct timespec ts;
  14857. | ^~
  14858. 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
  14859. /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]
  14860. 327 | getrawmonotonic(&ts);
  14861. | ^~~~~~~~~~~~~~~
  14862. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  14863. 325 | struct timespec ts = {0};
  14864. | ^~
  14865. /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]
  14866. 327 | getrawmonotonic(&ts);
  14867. | ^~~~~~~~~~~~~~~
  14868. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  14869. 325 | struct timespec ts = {0};
  14870. | ^~
  14871. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14872. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14873. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  14874. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14876. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14877. | ^~~~~~~~~
  14878. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14879. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14880. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14881. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  14882. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14883. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14884. | ^~~~~~~~~
  14885. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.o
  14886. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14887. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14888. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  14889. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  14890. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  14891. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  14892. | ^~~~~~~~~
  14893. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  14894. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14895. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14896. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  14897. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  14898. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  14899. | ^~~~~~~~~
  14900. cc1: some warnings being treated as errors
  14901. /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]
  14902. 1566 | }
  14903. | ^
  14904. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14905. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  14906. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  14907. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  14908. 325 | struct timespec ts = {0};
  14909. | ^~~~~~~~
  14910. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  14911. 325 | struct timespec ts = {0};
  14912. | ^
  14913. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  14914. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  14915. 325 | struct timespec ts = {0};
  14916. | ^~
  14917. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14918. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14919. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  14920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14921. /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]
  14922. 578 | void *ptr = ioremap_nocache(phys, size);
  14923. | ^~~~~~~~~~~~~~~
  14924. | ioremap_cache
  14925. /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]
  14926. cc1: some warnings being treated as errors
  14927. 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
  14928. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  14929. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14930. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  14931. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  14932. /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]
  14933. 578 | void *ptr = ioremap_nocache(phys, size);
  14934. | ^~~~~~~~~~~~~~~
  14935. | ioremap_cache
  14936. /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]
  14937. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.o
  14938. 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
  14939. /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]
  14940. 331 | }
  14941. | ^
  14942. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  14943. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  14944. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  14945. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  14946. 325 | struct timespec ts = {0};
  14947. | ^~~~~~~~
  14948. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  14949. 325 | struct timespec ts = {0};
  14950. | ^
  14951. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  14952. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  14953. 325 | struct timespec ts = {0};
  14954. | ^~
  14955. cc1: some warnings being treated as errors
  14956. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  14957. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  14958. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  14959. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  14960. 325 | struct timespec ts = {0};
  14961. | ^~~~~~~~
  14962. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  14963. 325 | struct timespec ts = {0};
  14964. | ^
  14965. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  14966. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  14967. 325 | struct timespec ts = {0};
  14968. | ^~
  14969. 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
  14970. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.o
  14971. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.o
  14972. /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]
  14973. 327 | getrawmonotonic(&ts);
  14974. | ^~~~~~~~~~~~~~~
  14975. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  14976. 325 | struct timespec ts = {0};
  14977. | ^~
  14978. /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]
  14979. 327 | getrawmonotonic(&ts);
  14980. | ^~~~~~~~~~~~~~~
  14981. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  14982. 325 | struct timespec ts = {0};
  14983. | ^~
  14984. /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]
  14985. 327 | getrawmonotonic(&ts);
  14986. | ^~~~~~~~~~~~~~~
  14987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  14988. 325 | struct timespec ts = {0};
  14989. | ^~
  14990. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  14991. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  14992. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  14993. /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
  14994. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  14995. | ^~~~~~~
  14996. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  14997. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  14998. 39 | *tv = (struct timeval) {
  14999. | ^~~
  15000. /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'
  15001. 40 | .tv_sec = now.tv_sec,
  15002. | ^~~~~~
  15003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  15004. 40 | .tv_sec = now.tv_sec,
  15005. | ^~~
  15006. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  15007. /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'
  15008. 41 | .tv_usec = now.tv_nsec/1000,
  15009. | ^~~~~~~
  15010. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  15011. 41 | .tv_usec = now.tv_nsec/1000,
  15012. | ^~~
  15013. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  15014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  15015. 39 | *tv = (struct timeval) {
  15016. | ^
  15017. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  15018. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  15019. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  15020. /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
  15021. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  15022. | ^~~~~~~
  15023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  15024. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  15025. 39 | *tv = (struct timeval) {
  15026. | ^~~
  15027. /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'
  15028. 40 | .tv_sec = now.tv_sec,
  15029. | ^~~~~~
  15030. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  15031. 40 | .tv_sec = now.tv_sec,
  15032. | ^~~
  15033. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  15034. /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'
  15035. 41 | .tv_usec = now.tv_nsec/1000,
  15036. | ^~~~~~~
  15037. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  15038. 41 | .tv_usec = now.tv_nsec/1000,
  15039. | ^~~
  15040. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  15041. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  15042. 39 | *tv = (struct timeval) {
  15043. | ^
  15044. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  15045. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  15046. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  15047. /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
  15048. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  15049. | ^~~~~~~
  15050. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  15051. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  15052. 39 | *tv = (struct timeval) {
  15053. | ^~~
  15054. /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'
  15055. 40 | .tv_sec = now.tv_sec,
  15056. | ^~~~~~
  15057. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  15058. 40 | .tv_sec = now.tv_sec,
  15059. | ^~~
  15060. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  15061. /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'
  15062. 41 | .tv_usec = now.tv_nsec/1000,
  15063. | ^~~~~~~
  15064. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  15065. 41 | .tv_usec = now.tv_nsec/1000,
  15066. | ^~~
  15067. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  15068. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  15069. 39 | *tv = (struct timeval) {
  15070. | ^
  15071. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  15072. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  15073. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  15074. /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
  15075. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  15076. | ^~~~~~~
  15077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  15078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  15079. 39 | *tv = (struct timeval) {
  15080. | ^~~
  15081. /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'
  15082. 40 | .tv_sec = now.tv_sec,
  15083. | ^~~~~~
  15084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  15085. 40 | .tv_sec = now.tv_sec,
  15086. | ^~~
  15087. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  15088. /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'
  15089. 41 | .tv_usec = now.tv_nsec/1000,
  15090. | ^~~~~~~
  15091. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  15092. 41 | .tv_usec = now.tv_nsec/1000,
  15093. | ^~~
  15094. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  15095. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  15096. 39 | *tv = (struct timeval) {
  15097. | ^
  15098. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  15099. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15100. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  15101. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  15102. /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
  15103. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  15104. | ^~~~~~~
  15105. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  15106. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  15107. 39 | *tv = (struct timeval) {
  15108. | ^~~
  15109. /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'
  15110. 40 | .tv_sec = now.tv_sec,
  15111. | ^~~~~~
  15112. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  15113. 40 | .tv_sec = now.tv_sec,
  15114. | ^~~
  15115. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  15116. /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'
  15117. 41 | .tv_usec = now.tv_nsec/1000,
  15118. | ^~~~~~~
  15119. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  15120. 41 | .tv_usec = now.tv_nsec/1000,
  15121. | ^~~
  15122. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  15123. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  15124. 39 | *tv = (struct timeval) {
  15125. | ^
  15126. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15127. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15128. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  15129. /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'?
  15130. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15131. | ^~~~~~~~
  15132. /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'
  15133. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  15134. | ^~~~~~~~
  15135. /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'
  15136. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15137. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15138. /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'?
  15139. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15140. | ^~~~~~~~
  15141. /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'
  15142. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  15143. | ^~~~~~~~
  15144. /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'
  15145. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15146. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15147. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  15148. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15149. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15150. /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]
  15151. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15152. | ^~~~
  15153. | |
  15154. | int
  15155. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15156. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15157. | ^~~~
  15158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  15159. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  15160. | ^~~~~~~~~~~~~~~
  15161. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  15162. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15163. | ^~~~~~~~~~
  15164. /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'
  15165. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  15166. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15167. /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'
  15168. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15169. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15170. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  15171. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  15172. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  15173. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  15174. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  15175. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  15176. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15177. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  15178. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15179. /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'
  15180. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  15181. | ~~~~~~~~~~~~~~~~~~~~~^~~
  15182. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  15183. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15184. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15185. /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]
  15186. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15187. | ^~~~
  15188. | |
  15189. | int
  15190. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15191. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15192. | ^~~~
  15193. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  15194. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  15195. | ^~~~~~~~~~~~~~~
  15196. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  15197. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15198. | ^~~~~~~~~~
  15199. /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'
  15200. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  15201. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15202. /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'
  15203. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15204. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15205. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15206. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15207. /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'
  15208. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  15209. | ~~~~~~^~~~
  15210. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  15211. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  15212. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:24:
  15213. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  15214. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  15215. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15216. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_managed':
  15218. /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'?
  15219. 301 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15220. | ^~~~~~~~
  15221. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15222. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15223. | ^~~~
  15224. /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'
  15225. 301 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15226. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15227. /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'?
  15228. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15229. | ^~~~~~~~
  15230. /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'
  15231. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  15232. | ^~~~~~~~
  15233. /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'
  15234. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15235. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15236. /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'?
  15237. 350 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15238. | ^~~~~~~~
  15239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15240. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15241. | ^~~~
  15242. /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'
  15243. 350 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15244. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15245. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_managed':
  15246. /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'?
  15247. 360 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15248. | ^~~~~~~~
  15249. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15250. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15251. | ^~~~
  15252. /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'
  15253. 360 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15254. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15255. /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'?
  15256. 390 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15257. | ^~~~~~~~
  15258. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15259. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15260. | ^~~~
  15261. /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'
  15262. 390 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15263. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15264. /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'?
  15265. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15266. | ^~~~~~~~
  15267. /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'
  15268. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  15269. | ^~~~~~~~
  15270. /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'
  15271. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15272. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15273. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  15274. /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]
  15275. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15276. | ^~~~
  15277. | |
  15278. | int
  15279. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15280. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15281. | ^~~~
  15282. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  15283. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  15284. | ^~~~~~~~~~~~~~~
  15285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  15286. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15287. | ^~~~~~~~~~
  15288. /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'
  15289. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  15290. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15291. /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'
  15292. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15293. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15294. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  15295. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  15296. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  15297. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  15298. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  15299. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  15300. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15301. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  15302. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  15303. /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'
  15304. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  15305. | ~~~~~~~~~~~~~~~~~~~~~^~~
  15306. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  15307. /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]
  15308. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15309. | ^~~~
  15310. | |
  15311. | int
  15312. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15313. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15314. | ^~~~
  15315. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  15316. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  15317. | ^~~~~~~~~~~~~~~
  15318. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  15319. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15320. | ^~~~~~~~~~
  15321. /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'
  15322. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  15323. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15324. /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'
  15325. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15326. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15327. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  15328. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  15329. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:24:
  15330. /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'
  15331. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  15332. | ~~~~~~^~~~
  15333. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_fault':
  15334. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c: In function 'map_user_pages':
  15335. /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'?
  15336. 418 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem);
  15337. | ^~~~~~~~
  15338. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15339. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15340. | ^~~~
  15341. /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'
  15342. 418 | uvm_record_lock_mmap_sem_read(&vma->vm_mm->mmap_sem);
  15343. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15344. /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'?
  15345. 258 | down_read(&current->mm->mmap_sem);
  15346. | ^~~~~~~~
  15347. | mmap_base
  15348. /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'?
  15349. 260 | up_read(&current->mm->mmap_sem);
  15350. | ^~~~~~~~
  15351. | mmap_base
  15352. /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'?
  15353. 478 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem);
  15354. | ^~~~~~~~
  15355. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15356. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15357. | ^~~~
  15358. /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'
  15359. 478 | uvm_record_unlock_mmap_sem_read(&vma->vm_mm->mmap_sem);
  15360. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15361. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_open_semaphore_pool':
  15362. /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'?
  15363. 543 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15364. | ^~~~~~~~
  15365. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15366. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15367. | ^~~~
  15368. /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'
  15369. 543 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15370. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15371. /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'?
  15372. 581 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15373. | ^~~~~~~~
  15374. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15375. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15376. | ^~~~
  15377. /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'
  15378. 581 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15379. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15380. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_vm_close_semaphore_pool':
  15381. /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'?
  15382. 591 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15383. | ^~~~~~~~
  15384. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15385. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15386. | ^~~~
  15387. /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'
  15388. 591 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15389. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15390. /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'?
  15391. 600 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15392. | ^~~~~~~~
  15393. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15394. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15395. | ^~~~
  15396. /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'
  15397. 600 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15398. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15399. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm_mmap':
  15400. /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'?
  15401. 626 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15402. | ^~~~~~~~
  15403. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15404. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15405. | ^~~~
  15406. /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'
  15407. 626 | uvm_record_lock_mmap_sem_write(&current->mm->mmap_sem);
  15408. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15409. /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'?
  15410. 712 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15411. | ^~~~~~~~
  15412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15413. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15414. | ^~~~
  15415. /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'
  15416. 712 | uvm_record_unlock_mmap_sem_write(&current->mm->mmap_sem);
  15417. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15418. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15419. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  15420. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  15421. /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'?
  15422. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15423. | ^~~~~~~~
  15424. /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'
  15425. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  15426. | ^~~~~~~~
  15427. /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'
  15428. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15429. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15430. /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'?
  15431. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15432. | ^~~~~~~~
  15433. /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'
  15434. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  15435. | ^~~~~~~~
  15436. /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'
  15437. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15438. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15439. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  15440. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15441. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  15442. /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]
  15443. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15444. | ^~~~
  15445. | |
  15446. | int
  15447. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15448. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15449. | ^~~~
  15450. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  15451. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  15452. | ^~~~~~~~~~~~~~~
  15453. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  15454. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15455. | ^~~~~~~~~~
  15456. /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'
  15457. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  15458. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15459. /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'
  15460. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15461. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15462. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  15463. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  15464. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  15465. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  15466. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  15467. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  15468. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15469. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  15470. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  15471. /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'
  15472. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  15473. | ~~~~~~~~~~~~~~~~~~~~~^~~
  15474. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  15475. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15476. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  15477. /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]
  15478. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15479. | ^~~~
  15480. | |
  15481. | int
  15482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  15483. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  15484. | ^~~~
  15485. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  15486. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  15487. | ^~~~~~~~~~~~~~~
  15488. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  15489. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  15490. | ^~~~~~~~~~
  15491. /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'
  15492. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  15493. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15494. /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'
  15495. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  15496. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  15497. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15498. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.c:24:
  15499. /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'
  15500. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  15501. | ~~~~~~^~~~
  15502. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15503. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15504. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c: In function 'uvm8_initialize':
  15505. /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'?
  15506. 853 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  15507. | ^~~~~~~~
  15508. /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'
  15509. 560 | typeof(mmap_sem) _sem = (mmap_sem); \
  15510. | ^~~~~~~~
  15511. /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'?
  15512. 853 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  15513. | ^~~~~~~~
  15514. /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'
  15515. 560 | typeof(mmap_sem) _sem = (mmap_sem); \
  15516. | ^~~~~~~~
  15517. /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]
  15518. 562 | down_write(_sem); \
  15519. | ^~~~
  15520. | |
  15521. | int
  15522. /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'
  15523. 853 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  15524. | ^~~~~~~~~~~~~~~~~~~~~~~
  15525. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  15526. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  15527. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  15528. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  15529. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  15530. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  15531. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15532. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  15533. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15534. /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'
  15535. 136 | extern void down_write(struct rw_semaphore *sem);
  15536. | ~~~~~~~~~~~~~~~~~~~~~^~~
  15537. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  15538. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15539. /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'?
  15540. 870 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  15541. | ^~~~~~~~
  15542. /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'
  15543. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  15544. | ^~~~~~~~
  15545. /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'?
  15546. 870 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  15547. | ^~~~~~~~
  15548. /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'
  15549. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  15550. | ^~~~~~~~
  15551. /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]
  15552. 567 | up_write(_sem); \
  15553. | ^~~~
  15554. | |
  15555. | int
  15556. /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'
  15557. 870 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  15558. | ^~~~~~~~~~~~~~~~~~~~~
  15559. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  15560. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  15561. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  15562. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  15563. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  15564. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  15565. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15566. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  15567. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15568. /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'
  15569. 152 | extern void up_write(struct rw_semaphore *sem);
  15570. | ~~~~~~~~~~~~~~~~~~~~~^~~
  15571. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  15572. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8.c:24:
  15573. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  15574. /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]
  15575. 331 | }
  15576. | ^
  15577. cc1: some warnings being treated as errors
  15578. 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
  15579. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  15580. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.c:23:
  15581. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  15582. cc1: some warnings being treated as errors
  15583. /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]
  15584. 331 | }
  15585. | ^
  15586. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.o
  15587. 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
  15588. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.o
  15589. cc1: some warnings being treated as errors
  15590. 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
  15591. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.o
  15592. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  15593. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  15594. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  15595. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  15596. /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
  15597. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  15598. | ^~~~~~~
  15599. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  15600. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  15601. 39 | *tv = (struct timeval) {
  15602. | ^~~
  15603. /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'
  15604. 40 | .tv_sec = now.tv_sec,
  15605. | ^~~~~~
  15606. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  15607. 40 | .tv_sec = now.tv_sec,
  15608. | ^~~
  15609. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  15610. /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'
  15611. 41 | .tv_usec = now.tv_nsec/1000,
  15612. | ^~~~~~~
  15613. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  15614. 41 | .tv_usec = now.tv_nsec/1000,
  15615. | ^~~
  15616. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  15617. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  15618. 39 | *tv = (struct timeval) {
  15619. | ^
  15620. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  15621. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15622. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  15623. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  15624. /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
  15625. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  15626. | ^~~~~~~
  15627. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  15628. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  15629. 39 | *tv = (struct timeval) {
  15630. | ^~~
  15631. /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'
  15632. 40 | .tv_sec = now.tv_sec,
  15633. | ^~~~~~
  15634. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  15635. 40 | .tv_sec = now.tv_sec,
  15636. | ^~~
  15637. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  15638. /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'
  15639. 41 | .tv_usec = now.tv_nsec/1000,
  15640. | ^~~~~~~
  15641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  15642. 41 | .tv_usec = now.tv_nsec/1000,
  15643. | ^~~
  15644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  15645. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  15646. 39 | *tv = (struct timeval) {
  15647. | ^
  15648. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15649. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15650. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  15652. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  15653. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  15654. | ^~~~~~~~~
  15655. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  15656. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15657. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15658. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15659. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  15660. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  15661. | ^~~~~~~~~
  15662. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15663. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15664. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15665. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  15666. /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]
  15667. 578 | void *ptr = ioremap_nocache(phys, size);
  15668. | ^~~~~~~~~~~~~~~
  15669. | ioremap_cache
  15670. /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]
  15671. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  15672. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15673. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  15674. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  15675. /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
  15676. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  15677. | ^~~~~~~
  15678. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  15679. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  15680. 39 | *tv = (struct timeval) {
  15681. | ^~~
  15682. /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'
  15683. 40 | .tv_sec = now.tv_sec,
  15684. | ^~~~~~
  15685. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  15686. 40 | .tv_sec = now.tv_sec,
  15687. | ^~~
  15688. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  15689. /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'
  15690. 41 | .tv_usec = now.tv_nsec/1000,
  15691. | ^~~~~~~
  15692. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  15693. 41 | .tv_usec = now.tv_nsec/1000,
  15694. | ^~~
  15695. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  15696. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  15697. 39 | *tv = (struct timeval) {
  15698. | ^
  15699. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15700. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  15702. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  15703. 325 | struct timespec ts = {0};
  15704. | ^~~~~~~~
  15705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  15706. 325 | struct timespec ts = {0};
  15707. | ^
  15708. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  15709. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  15710. 325 | struct timespec ts = {0};
  15711. | ^~
  15712. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15713. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  15714. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  15715. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  15716. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  15717. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  15718. | ^~~~~~~~~
  15719. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  15720. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15721. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  15722. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  15723. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  15724. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  15725. | ^~~~~~~~~
  15726. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15727. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  15728. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  15729. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  15730. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  15731. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  15732. | ^~~~~~~~~
  15733. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  15734. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15735. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  15736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  15737. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  15738. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  15739. | ^~~~~~~~~
  15740. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15741. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  15742. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  15743. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  15744. /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]
  15745. 578 | void *ptr = ioremap_nocache(phys, size);
  15746. | ^~~~~~~~~~~~~~~
  15747. | ioremap_cache
  15748. /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]
  15749. /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]
  15750. 327 | getrawmonotonic(&ts);
  15751. | ^~~~~~~~~~~~~~~
  15752. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  15753. 325 | struct timespec ts = {0};
  15754. | ^~
  15755. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15756. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  15757. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  15758. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  15759. /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]
  15760. 578 | void *ptr = ioremap_nocache(phys, size);
  15761. | ^~~~~~~~~~~~~~~
  15762. | ioremap_cache
  15763. /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]
  15764. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15765. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  15766. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  15767. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  15768. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  15769. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  15770. | ^~~~~~~~~
  15771. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  15772. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15773. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  15774. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  15775. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  15776. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  15777. | ^~~~~~~~~
  15778. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15779. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15780. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  15781. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  15782. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  15783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  15784. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  15785. | ^~~~~~~~~
  15786. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  15787. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15788. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15789. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  15790. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  15791. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  15792. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  15793. | ^~~~~~~~~
  15794. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  15795. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_isr.c:24:
  15796. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  15797. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  15798. 325 | struct timespec ts = {0};
  15799. | ^~~~~~~~
  15800. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  15801. 325 | struct timespec ts = {0};
  15802. | ^
  15803. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  15804. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  15805. 325 | struct timespec ts = {0};
  15806. | ^~
  15807. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.h:28,
  15808. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_procfs.c:24:
  15809. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  15810. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  15811. 325 | struct timespec ts = {0};
  15812. | ^~~~~~~~
  15813. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  15814. 325 | struct timespec ts = {0};
  15815. | ^
  15816. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  15817. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  15818. 325 | struct timespec ts = {0};
  15819. | ^~
  15820. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15821. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  15822. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  15823. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  15824. /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]
  15825. 578 | void *ptr = ioremap_nocache(phys, size);
  15826. | ^~~~~~~~~~~~~~~
  15827. | ioremap_cache
  15828. /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]
  15829. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15830. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15831. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  15832. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  15833. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  15834. /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]
  15835. 578 | void *ptr = ioremap_nocache(phys, size);
  15836. | ^~~~~~~~~~~~~~~
  15837. | ioremap_cache
  15838. /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]
  15839. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  15840. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  15841. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  15842. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  15843. 325 | struct timespec ts = {0};
  15844. | ^~~~~~~~
  15845. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  15846. 325 | struct timespec ts = {0};
  15847. | ^
  15848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  15849. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  15850. 325 | struct timespec ts = {0};
  15851. | ^~
  15852. /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]
  15853. 327 | getrawmonotonic(&ts);
  15854. | ^~~~~~~~~~~~~~~
  15855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  15856. 325 | struct timespec ts = {0};
  15857. | ^~
  15858. /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]
  15859. 327 | getrawmonotonic(&ts);
  15860. | ^~~~~~~~~~~~~~~
  15861. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  15862. 325 | struct timespec ts = {0};
  15863. | ^~
  15864. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15865. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  15866. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  15867. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  15868. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  15869. 325 | struct timespec ts = {0};
  15870. | ^~~~~~~~
  15871. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  15872. 325 | struct timespec ts = {0};
  15873. | ^
  15874. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  15875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  15876. 325 | struct timespec ts = {0};
  15877. | ^~
  15878. /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]
  15879. 327 | getrawmonotonic(&ts);
  15880. | ^~~~~~~~~~~~~~~
  15881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  15882. 325 | struct timespec ts = {0};
  15883. | ^~
  15884. /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]
  15885. 327 | getrawmonotonic(&ts);
  15886. | ^~~~~~~~~~~~~~~
  15887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  15888. 325 | struct timespec ts = {0};
  15889. | ^~
  15890. cc1: some warnings being treated as errors
  15891. 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
  15892. cc1: some warnings being treated as errors
  15893. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.o
  15894. 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
  15895. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.o
  15896. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  15897. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15898. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15899. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15900. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c: In function 'init_procfs_files':
  15901. /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]
  15902. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  15903. | ^~~~
  15904. | |
  15905. | const struct file_operations *
  15906. /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'
  15907. 39 | proc_create_data(name, mode, parent, fops, __data)
  15908. | ^~~~
  15909. /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'
  15910. 428 | gpu->procfs.info_file = NV_CREATE_PROC_FILE("info", gpu->procfs.dir, gpu_info, (void *)gpu);
  15911. | ^~~~~~~~~~~~~~~~~~~
  15912. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  15913. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  15914. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15915. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15916. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15917. /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 *'
  15918. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  15919. | ^~~~~~~~~~~~~~~~
  15920. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  15921. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15922. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15923. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15924. /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]
  15925. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  15926. | ^~~~
  15927. | |
  15928. | const struct file_operations *
  15929. /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'
  15930. 39 | proc_create_data(name, mode, parent, fops, __data)
  15931. | ^~~~
  15932. /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'
  15933. 436 | gpu->procfs.fault_stats_file = NV_CREATE_PROC_FILE("fault_stats", gpu->procfs.dir, gpu_fault_stats, (void *)gpu);
  15934. | ^~~~~~~~~~~~~~~~~~~
  15935. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  15936. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  15937. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15938. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15939. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15940. /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 *'
  15941. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  15942. | ^~~~~~~~~~~~~~~~
  15943. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  15944. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15945. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15946. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15947. /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]
  15948. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  15949. | ^~~~
  15950. | |
  15951. | const struct file_operations *
  15952. /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'
  15953. 39 | proc_create_data(name, mode, parent, fops, __data)
  15954. | ^~~~
  15955. /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'
  15956. 440 | gpu->procfs.access_counters_file = NV_CREATE_PROC_FILE("access_counters", gpu->procfs.dir, gpu_access_counters, (void *)gpu);
  15957. | ^~~~~~~~~~~~~~~~~~~
  15958. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  15959. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  15960. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15961. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  15962. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.c:24:
  15963. /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 *'
  15964. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  15965. | ^~~~~~~~~~~~~~~~
  15966. cc1: some warnings being treated as errors
  15967. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15968. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15969. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  15970. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  15971. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  15972. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  15973. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  15974. | ^~~~~~~~~
  15975. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  15976. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15977. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  15978. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  15979. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  15980. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  15981. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  15982. | ^~~~~~~~~
  15983. 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
  15984. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15985. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  15986. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  15987. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  15988. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  15989. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  15990. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  15991. | ^~~~~~~~~
  15992. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  15993. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  15994. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  15995. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  15996. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  15997. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  15998. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  15999. | ^~~~~~~~~
  16000. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.o
  16001. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16002. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16003. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16004. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16005. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:26:
  16006. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c: In function 'mm_read64':
  16007. /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'?
  16008. 536 | uvm_down_read_mmap_sem(&mm->mmap_sem);
  16009. | ^~~~~~~~
  16010. /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'
  16011. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  16012. | ^~~~~~~~
  16013. /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'?
  16014. 536 | uvm_down_read_mmap_sem(&mm->mmap_sem);
  16015. | ^~~~~~~~
  16016. /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'
  16017. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  16018. | ^~~~~~~~
  16019. /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]
  16020. 544 | down_read(_sem); \
  16021. | ^~~~
  16022. | |
  16023. | int
  16024. /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'
  16025. 536 | uvm_down_read_mmap_sem(&mm->mmap_sem);
  16026. | ^~~~~~~~~~~~~~~~~~~~~~
  16027. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16028. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16029. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16030. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16031. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16032. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16033. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16034. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  16035. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  16036. /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'
  16037. 125 | extern void down_read(struct rw_semaphore *sem);
  16038. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16039. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16040. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16041. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16042. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16043. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:26:
  16044. /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'?
  16045. 538 | uvm_up_read_mmap_sem(&mm->mmap_sem);
  16046. | ^~~~~~~~
  16047. /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'
  16048. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  16049. | ^~~~~~~~
  16050. /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'?
  16051. 538 | uvm_up_read_mmap_sem(&mm->mmap_sem);
  16052. | ^~~~~~~~
  16053. /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'
  16054. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  16055. | ^~~~~~~~
  16056. /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]
  16057. 549 | up_read(_sem); \
  16058. | ^~~~
  16059. | |
  16060. | int
  16061. /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'
  16062. 538 | uvm_up_read_mmap_sem(&mm->mmap_sem);
  16063. | ^~~~~~~~~~~~~~~~~~~~
  16064. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16065. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16066. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16067. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16068. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16069. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16070. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16071. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  16072. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  16073. /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'
  16074. 147 | extern void up_read(struct rw_semaphore *sem);
  16075. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16076. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16077. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16078. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  16079. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16080. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  16081. /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]
  16082. 578 | void *ptr = ioremap_nocache(phys, size);
  16083. | ^~~~~~~~~~~~~~~
  16084. | ioremap_cache
  16085. /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]
  16086. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16087. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16088. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  16089. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  16090. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  16091. /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]
  16092. 578 | void *ptr = ioremap_nocache(phys, size);
  16093. | ^~~~~~~~~~~~~~~
  16094. | ioremap_cache
  16095. /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]
  16096. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16097. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16098. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16099. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16100. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16101. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  16102. /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'?
  16103. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16104. | ^~~~~~~~
  16105. /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'
  16106. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  16107. | ^~~~~~~~
  16108. /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'
  16109. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16110. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16111. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  16112. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space_mm.c:24:
  16113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  16114. /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]
  16115. 331 | }
  16116. | ^
  16117. /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'?
  16118. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16119. | ^~~~~~~~
  16120. /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'
  16121. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  16122. | ^~~~~~~~
  16123. /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'
  16124. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16125. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16126. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  16127. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16128. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16129. /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]
  16130. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16131. | ^~~~
  16132. | |
  16133. | int
  16134. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  16135. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  16136. | ^~~~
  16137. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  16138. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  16139. | ^~~~~~~~~~~~~~~
  16140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  16141. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16142. | ^~~~~~~~~~
  16143. /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'
  16144. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  16145. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16146. /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'
  16147. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16148. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16149. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16150. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16151. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16152. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16153. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16154. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16155. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16156. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16157. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16158. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16159. /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'
  16160. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  16161. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16162. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  16163. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16164. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16165. /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]
  16166. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16167. | ^~~~
  16168. | |
  16169. | int
  16170. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  16171. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  16172. | ^~~~
  16173. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  16174. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  16175. | ^~~~~~~~~~~~~~~
  16176. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  16177. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16178. | ^~~~~~~~~~
  16179. /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'
  16180. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  16181. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16182. /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'
  16183. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16184. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16185. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16186. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16187. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16188. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16189. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16190. /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'
  16191. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  16192. | ~~~~~~^~~~
  16193. cc1: some warnings being treated as errors
  16194. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  16195. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16196. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  16197. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  16198. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  16199. /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
  16200. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  16201. | ^~~~~~~
  16202. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  16203. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  16204. 39 | *tv = (struct timeval) {
  16205. | ^~~
  16206. /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'
  16207. 40 | .tv_sec = now.tv_sec,
  16208. | ^~~~~~
  16209. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  16210. 40 | .tv_sec = now.tv_sec,
  16211. | ^~~
  16212. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  16213. /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'
  16214. 41 | .tv_usec = now.tv_nsec/1000,
  16215. | ^~~~~~~
  16216. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  16217. 41 | .tv_usec = now.tv_nsec/1000,
  16218. | ^~~
  16219. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  16220. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  16221. 39 | *tv = (struct timeval) {
  16222. | ^
  16223. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16224. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  16225. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  16227. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  16228. 325 | struct timespec ts = {0};
  16229. | ^~~~~~~~
  16230. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  16231. 325 | struct timespec ts = {0};
  16232. | ^
  16233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  16234. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  16235. 325 | struct timespec ts = {0};
  16236. | ^~
  16237. 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
  16238. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16239. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  16240. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.c:24:
  16241. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  16242. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  16243. 325 | struct timespec ts = {0};
  16244. | ^~~~~~~~
  16245. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  16246. 325 | struct timespec ts = {0};
  16247. | ^
  16248. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  16249. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  16250. 325 | struct timespec ts = {0};
  16251. | ^~
  16252. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.o
  16253. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  16254. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16255. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  16256. /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
  16257. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  16258. | ^~~~~~~
  16259. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  16260. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  16261. 39 | *tv = (struct timeval) {
  16262. | ^~~
  16263. /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'
  16264. 40 | .tv_sec = now.tv_sec,
  16265. | ^~~~~~
  16266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  16267. 40 | .tv_sec = now.tv_sec,
  16268. | ^~~
  16269. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  16270. /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'
  16271. 41 | .tv_usec = now.tv_nsec/1000,
  16272. | ^~~~~~~
  16273. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  16274. 41 | .tv_usec = now.tv_nsec/1000,
  16275. | ^~~
  16276. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  16277. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  16278. 39 | *tv = (struct timeval) {
  16279. | ^
  16280. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16281. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16282. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  16283. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  16284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  16285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu':
  16286. /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'?
  16287. 755 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  16288. | ^~~~~~~~
  16289. /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'
  16290. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  16291. | ^~~~~~~~
  16292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  16293. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  16294. | ^~~~~~~~~
  16295. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  16296. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16297. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16298. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  16299. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  16300. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  16301. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  16302. | ^~~~~~~~~
  16303. /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'?
  16304. 755 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  16305. | ^~~~~~~~
  16306. /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'
  16307. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  16308. | ^~~~~~~~
  16309. /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]
  16310. 544 | down_read(_sem); \
  16311. | ^~~~
  16312. | |
  16313. | int
  16314. /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'
  16315. 755 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  16316. | ^~~~~~~~~~~~~~~~~~~~~~
  16317. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16318. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16319. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16320. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16321. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16322. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16323. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16324. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16325. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16326. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16327. /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'
  16328. 125 | extern void down_read(struct rw_semaphore *sem);
  16329. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16330. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16331. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16332. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16333. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16334. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16335. /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'?
  16336. 780 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  16337. | ^~~~~~~~
  16338. /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'
  16339. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  16340. | ^~~~~~~~
  16341. /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'?
  16342. 780 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  16343. | ^~~~~~~~
  16344. /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'
  16345. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  16346. | ^~~~~~~~
  16347. /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]
  16348. 549 | up_read(_sem); \
  16349. | ^~~~
  16350. | |
  16351. | int
  16352. /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'
  16353. 780 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  16354. | ^~~~~~~~~~~~~~~~~~~~
  16355. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16356. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16357. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16358. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16359. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16360. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16361. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16362. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16363. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16364. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16365. /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'
  16366. 147 | extern void up_read(struct rw_semaphore *sem);
  16367. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16368. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16369. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16370. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16371. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16372. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16373. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_register_gpu_va_space':
  16374. /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'?
  16375. 1249 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  16376. | ^~~~~~~~
  16377. /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'
  16378. 560 | typeof(mmap_sem) _sem = (mmap_sem); \
  16379. | ^~~~~~~~
  16380. /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'?
  16381. 1249 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  16382. | ^~~~~~~~
  16383. /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'
  16384. 560 | typeof(mmap_sem) _sem = (mmap_sem); \
  16385. | ^~~~~~~~
  16386. /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]
  16387. 562 | down_write(_sem); \
  16388. | ^~~~
  16389. | |
  16390. | int
  16391. /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'
  16392. 1249 | uvm_down_write_mmap_sem(&current->mm->mmap_sem);
  16393. | ^~~~~~~~~~~~~~~~~~~~~~~
  16394. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16395. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16396. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16397. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16398. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16399. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16400. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16401. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16402. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16403. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16404. /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'
  16405. 136 | extern void down_write(struct rw_semaphore *sem);
  16406. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16407. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16408. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16409. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  16410. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  16411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  16412. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16413. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16414. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16415. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16416. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16417. /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'?
  16418. 1302 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  16419. | ^~~~~~~~
  16420. /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'
  16421. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  16422. | ^~~~~~~~
  16423. /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'?
  16424. 1302 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  16425. | ^~~~~~~~
  16426. /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'
  16427. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  16428. | ^~~~~~~~
  16429. /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]
  16430. 567 | up_write(_sem); \
  16431. | ^~~~
  16432. | |
  16433. | int
  16434. /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'
  16435. 1302 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  16436. | ^~~~~~~~~~~~~~~~~~~~~
  16437. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16438. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16439. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16440. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16441. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16442. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16443. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16444. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16445. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16446. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16447. /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'
  16448. 152 | extern void up_write(struct rw_semaphore *sem);
  16449. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16450. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16451. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16452. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16453. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16454. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16455. /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'?
  16456. 1320 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  16457. | ^~~~~~~~
  16458. /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'
  16459. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  16460. | ^~~~~~~~
  16461. /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'?
  16462. 1320 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  16463. | ^~~~~~~~
  16464. /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'
  16465. 566 | typeof(mmap_sem) _sem = (mmap_sem); \
  16466. | ^~~~~~~~
  16467. /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]
  16468. 567 | up_write(_sem); \
  16469. | ^~~~
  16470. | |
  16471. | int
  16472. /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'
  16473. 1320 | uvm_up_write_mmap_sem(&current->mm->mmap_sem);
  16474. | ^~~~~~~~~~~~~~~~~~~~~
  16475. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16476. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16477. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16478. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16479. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16480. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16481. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16482. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16483. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16484. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16485. /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'
  16486. 152 | extern void up_write(struct rw_semaphore *sem);
  16487. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16488. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16489. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16490. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16491. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16492. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16493. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c: In function 'uvm_va_space_unregister_gpu_va_space':
  16494. /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'?
  16495. 1407 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  16496. | ^~~~~~~~
  16497. /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'
  16498. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  16499. | ^~~~~~~~
  16500. /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'?
  16501. 1407 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  16502. | ^~~~~~~~
  16503. /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'
  16504. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  16505. | ^~~~~~~~
  16506. /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]
  16507. 544 | down_read(_sem); \
  16508. | ^~~~
  16509. | |
  16510. | int
  16511. /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'
  16512. 1407 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  16513. | ^~~~~~~~~~~~~~~~~~~~~~
  16514. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16515. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16516. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16517. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16518. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16519. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16520. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16521. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16522. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16523. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16524. /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'
  16525. 125 | extern void down_read(struct rw_semaphore *sem);
  16526. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16527. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16528. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  16529. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  16530. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  16531. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16532. /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'?
  16533. 1431 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  16534. | ^~~~~~~~
  16535. /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'
  16536. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  16537. | ^~~~~~~~
  16538. /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'?
  16539. 1431 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  16540. | ^~~~~~~~
  16541. /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'
  16542. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  16543. | ^~~~~~~~
  16544. /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]
  16545. 549 | up_read(_sem); \
  16546. | ^~~~
  16547. | |
  16548. | int
  16549. /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'
  16550. 1431 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  16551. | ^~~~~~~~~~~~~~~~~~~~
  16552. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16553. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16554. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16555. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16556. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16557. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16558. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16559. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16560. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  16561. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.c:24:
  16562. /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'
  16563. 147 | extern void up_read(struct rw_semaphore *sem);
  16564. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16565. /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]
  16566. 578 | void *ptr = ioremap_nocache(phys, size);
  16567. | ^~~~~~~~~~~~~~~
  16568. | ioremap_cache
  16569. /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]
  16570. /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]
  16571. 327 | getrawmonotonic(&ts);
  16572. | ^~~~~~~~~~~~~~~
  16573. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  16574. 325 | struct timespec ts = {0};
  16575. | ^~
  16576. /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]
  16577. 327 | getrawmonotonic(&ts);
  16578. | ^~~~~~~~~~~~~~~
  16579. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  16580. 325 | struct timespec ts = {0};
  16581. | ^~
  16582. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16583. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  16584. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.c:24:
  16585. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  16586. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  16587. 325 | struct timespec ts = {0};
  16588. | ^~~~~~~~
  16589. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  16590. 325 | struct timespec ts = {0};
  16591. | ^
  16592. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  16593. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  16594. 325 | struct timespec ts = {0};
  16595. | ^~
  16596. cc1: some warnings being treated as errors
  16597. 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
  16598. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.o
  16599. /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]
  16600. 327 | getrawmonotonic(&ts);
  16601. | ^~~~~~~~~~~~~~~
  16602. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  16603. 325 | struct timespec ts = {0};
  16604. | ^~
  16605. cc1: some warnings being treated as errors
  16606. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  16607. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  16608. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  16609. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  16610. /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
  16611. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  16612. | ^~~~~~~
  16613. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  16614. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  16615. 39 | *tv = (struct timeval) {
  16616. | ^~~
  16617. /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'
  16618. 40 | .tv_sec = now.tv_sec,
  16619. | ^~~~~~
  16620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  16621. 40 | .tv_sec = now.tv_sec,
  16622. | ^~~
  16623. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  16624. /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'
  16625. 41 | .tv_usec = now.tv_nsec/1000,
  16626. | ^~~~~~~
  16627. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  16628. 41 | .tv_usec = now.tv_nsec/1000,
  16629. | ^~~
  16630. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  16631. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  16632. 39 | *tv = (struct timeval) {
  16633. | ^
  16634. 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
  16635. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.o
  16636. cc1: some warnings being treated as errors
  16637. 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
  16638. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  16639. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  16640. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  16641. /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
  16642. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  16643. | ^~~~~~~
  16644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  16645. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  16646. 39 | *tv = (struct timeval) {
  16647. | ^~~
  16648. /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'
  16649. 40 | .tv_sec = now.tv_sec,
  16650. | ^~~~~~
  16651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  16652. 40 | .tv_sec = now.tv_sec,
  16653. | ^~~
  16654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  16655. /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'
  16656. 41 | .tv_usec = now.tv_nsec/1000,
  16657. | ^~~~~~~
  16658. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  16659. 41 | .tv_usec = now.tv_nsec/1000,
  16660. | ^~~
  16661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  16662. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  16663. 39 | *tv = (struct timeval) {
  16664. | ^
  16665. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.o
  16666. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16667. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:30,
  16668. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16669. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_sysmem_user':
  16670. /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'?
  16671. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16672. | ^~~~~~~~
  16673. /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'
  16674. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  16675. | ^~~~~~~~
  16676. /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'
  16677. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16678. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16679. /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'?
  16680. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16681. | ^~~~~~~~
  16682. /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'
  16683. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  16684. | ^~~~~~~~
  16685. /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'
  16686. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16687. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16688. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  16689. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  16690. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16691. /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]
  16692. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16693. | ^~~~
  16694. | |
  16695. | int
  16696. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  16697. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  16698. | ^~~~
  16699. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  16700. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  16701. | ^~~~~~~~~~~~~~~
  16702. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  16703. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16704. | ^~~~~~~~~~
  16705. /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'
  16706. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  16707. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16708. /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'
  16709. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16710. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16711. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16712. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16713. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16714. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16715. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16716. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16717. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16718. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16719. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  16720. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16721. /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'
  16722. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  16723. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16724. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  16725. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  16726. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16727. /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]
  16728. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16729. | ^~~~
  16730. | |
  16731. | int
  16732. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  16733. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  16734. | ^~~~
  16735. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  16736. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  16737. | ^~~~~~~~~~~~~~~
  16738. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  16739. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16740. | ^~~~~~~~~~
  16741. /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'
  16742. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  16743. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16744. /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'
  16745. 484 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16746. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16747. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16748. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:30,
  16749. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16750. /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'
  16751. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  16752. | ~~~~~~^~~~
  16753. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c: In function 'uvm_mem_map_cpu_to_vidmem_user':
  16754. /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'?
  16755. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16756. | ^~~~~~~~
  16757. /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'
  16758. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  16759. | ^~~~~~~~
  16760. /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'
  16761. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16762. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16763. /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'?
  16764. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16765. | ^~~~~~~~
  16766. /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'
  16767. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  16768. | ^~~~~~~~
  16769. /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'
  16770. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16771. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16772. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  16773. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  16774. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16775. /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]
  16776. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16777. | ^~~~
  16778. | |
  16779. | int
  16780. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  16781. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  16782. | ^~~~
  16783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  16784. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  16785. | ^~~~~~~~~~~~~~~
  16786. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  16787. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16788. | ^~~~~~~~~~
  16789. /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'
  16790. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  16791. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16792. /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'
  16793. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16794. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16795. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  16796. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  16797. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  16798. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  16799. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  16800. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  16801. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16802. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  16803. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  16804. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16805. /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'
  16806. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  16807. | ~~~~~~~~~~~~~~~~~~~~~^~~
  16808. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  16809. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:28,
  16810. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16811. /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]
  16812. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16813. | ^~~~
  16814. | |
  16815. | int
  16816. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  16817. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  16818. | ^~~~
  16819. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  16820. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  16821. | ^~~~~~~~~~~~~~~
  16822. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  16823. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  16824. | ^~~~~~~~~~
  16825. /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'
  16826. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  16827. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16828. /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'
  16829. 508 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  16830. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  16831. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  16832. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.h:30,
  16833. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem.c:24:
  16834. /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'
  16835. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  16836. | ~~~~~~^~~~
  16837. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  16838. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  16839. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  16840. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  16841. /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
  16842. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  16843. | ^~~~~~~
  16844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  16845. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  16846. 39 | *tv = (struct timeval) {
  16847. | ^~~
  16848. /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'
  16849. 40 | .tv_sec = now.tv_sec,
  16850. | ^~~~~~
  16851. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  16852. 40 | .tv_sec = now.tv_sec,
  16853. | ^~~
  16854. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  16855. /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'
  16856. 41 | .tv_usec = now.tv_nsec/1000,
  16857. | ^~~~~~~
  16858. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  16859. 41 | .tv_usec = now.tv_nsec/1000,
  16860. | ^~~
  16861. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  16862. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  16863. 39 | *tv = (struct timeval) {
  16864. | ^
  16865. cc1: some warnings being treated as errors
  16866. 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
  16867. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.o
  16868. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  16869. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  16870. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  16871. /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
  16872. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  16873. | ^~~~~~~
  16874. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  16875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  16876. 39 | *tv = (struct timeval) {
  16877. | ^~~
  16878. /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'
  16879. 40 | .tv_sec = now.tv_sec,
  16880. | ^~~~~~
  16881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  16882. 40 | .tv_sec = now.tv_sec,
  16883. | ^~~
  16884. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  16885. /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'
  16886. 41 | .tv_usec = now.tv_nsec/1000,
  16887. | ^~~~~~~
  16888. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  16889. 41 | .tv_usec = now.tv_nsec/1000,
  16890. | ^~~
  16891. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  16892. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  16893. 39 | *tv = (struct timeval) {
  16894. | ^
  16895. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  16896. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  16897. /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
  16898. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  16899. | ^~~~~~~
  16900. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  16901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  16902. 39 | *tv = (struct timeval) {
  16903. | ^~~
  16904. /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'
  16905. 40 | .tv_sec = now.tv_sec,
  16906. | ^~~~~~
  16907. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  16908. 40 | .tv_sec = now.tv_sec,
  16909. | ^~~
  16910. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  16911. /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'
  16912. 41 | .tv_usec = now.tv_nsec/1000,
  16913. | ^~~~~~~
  16914. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  16915. 41 | .tv_usec = now.tv_nsec/1000,
  16916. | ^~~
  16917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  16918. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  16919. 39 | *tv = (struct timeval) {
  16920. | ^
  16921. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16922. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16923. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  16924. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  16925. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  16926. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  16927. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  16928. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  16929. | ^~~~~~~~~
  16930. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  16931. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16932. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16933. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  16934. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  16935. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  16936. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  16937. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  16938. | ^~~~~~~~~
  16939. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16940. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16941. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  16942. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  16943. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  16944. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  16945. /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]
  16946. 578 | void *ptr = ioremap_nocache(phys, size);
  16947. | ^~~~~~~~~~~~~~~
  16948. | ioremap_cache
  16949. /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]
  16950. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16951. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16952. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  16953. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  16954. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  16955. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  16956. | ^~~~~~~~~
  16957. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  16958. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16959. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16960. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  16961. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  16962. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  16963. | ^~~~~~~~~
  16964. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16965. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  16966. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  16967. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  16968. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  16969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  16970. 325 | struct timespec ts = {0};
  16971. | ^~~~~~~~
  16972. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  16973. 325 | struct timespec ts = {0};
  16974. | ^
  16975. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  16976. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  16977. 325 | struct timespec ts = {0};
  16978. | ^~
  16979. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  16980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  16981. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  16982. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  16983. /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]
  16984. 578 | void *ptr = ioremap_nocache(phys, size);
  16985. | ^~~~~~~~~~~~~~~
  16986. | ioremap_cache
  16987. /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]
  16988. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  16989. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  16990. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  16991. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  16992. /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
  16993. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  16994. | ^~~~~~~
  16995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  16996. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  16997. 39 | *tv = (struct timeval) {
  16998. | ^~~
  16999. /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'
  17000. 40 | .tv_sec = now.tv_sec,
  17001. | ^~~~~~
  17002. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  17003. 40 | .tv_sec = now.tv_sec,
  17004. | ^~~
  17005. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  17006. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.c:24:
  17007. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17008. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  17009. 325 | struct timespec ts = {0};
  17010. | ^~~~~~~~
  17011. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  17012. 325 | struct timespec ts = {0};
  17013. | ^
  17014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  17015. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  17016. 325 | struct timespec ts = {0};
  17017. | ^~
  17018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  17019. /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'
  17020. 41 | .tv_usec = now.tv_nsec/1000,
  17021. | ^~~~~~~
  17022. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  17023. 41 | .tv_usec = now.tv_nsec/1000,
  17024. | ^~~
  17025. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  17026. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  17027. 39 | *tv = (struct timeval) {
  17028. | ^
  17029. /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]
  17030. 327 | getrawmonotonic(&ts);
  17031. | ^~~~~~~~~~~~~~~
  17032. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  17033. 325 | struct timespec ts = {0};
  17034. | ^~
  17035. /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]
  17036. 327 | getrawmonotonic(&ts);
  17037. | ^~~~~~~~~~~~~~~
  17038. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  17039. 325 | struct timespec ts = {0};
  17040. | ^~
  17041. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17042. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17043. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  17044. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  17045. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  17046. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  17047. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  17048. | ^~~~~~~~~
  17049. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  17050. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17051. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17052. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  17053. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  17054. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  17055. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  17056. | ^~~~~~~~~
  17057. cc1: some warnings being treated as errors
  17058. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  17059. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17060. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  17061. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  17062. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  17063. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  17064. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c: In function 'manager_create_procfs':
  17065. 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
  17066. /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]
  17067. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  17068. | ^~~~
  17069. | |
  17070. | const struct file_operations *
  17071. /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'
  17072. 39 | proc_create_data(name, mode, parent, fops, __data)
  17073. | ^~~~
  17074. /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'
  17075. 1212 | manager->procfs.pending_pushes = NV_CREATE_PROC_FILE("pending_pushes", gpu->procfs.dir, manager_pending_pushes, (void *)manager);
  17076. | ^~~~~~~~~~~~~~~~~~~
  17077. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  17078. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  17079. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17080. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  17081. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  17082. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  17083. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  17084. /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 *'
  17085. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  17086. | ^~~~~~~~~~~~~~~~
  17087. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  17088. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17089. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  17090. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  17091. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  17092. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  17093. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c: In function 'channel_create_procfs':
  17094. /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]
  17095. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  17096. | ^~~~
  17097. | |
  17098. | const struct file_operations *
  17099. /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'
  17100. 39 | proc_create_data(name, mode, parent, fops, __data)
  17101. | ^~~~
  17102. /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'
  17103. 1253 | channel->procfs.info = NV_CREATE_PROC_FILE("info", channel->procfs.dir, channel_info, (void *)channel);
  17104. | ^~~~~~~~~~~~~~~~~~~
  17105. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17106. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17107. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  17108. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  17109. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  17110. /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]
  17111. 578 | void *ptr = ioremap_nocache(phys, size);
  17112. | ^~~~~~~~~~~~~~~
  17113. | ioremap_cache
  17114. /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]
  17115. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  17116. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  17117. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17118. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  17119. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  17120. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  17121. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  17122. /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 *'
  17123. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  17124. | ^~~~~~~~~~~~~~~~
  17125. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  17126. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17127. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  17128. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  17129. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  17130. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  17131. /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]
  17132. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  17133. | ^~~~
  17134. | |
  17135. | const struct file_operations *
  17136. /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'
  17137. 39 | proc_create_data(name, mode, parent, fops, __data)
  17138. | ^~~~
  17139. /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'
  17140. 1257 | channel->procfs.pushes = NV_CREATE_PROC_FILE("pushes", channel->procfs.dir, channel_pushes, (void *)channel);
  17141. | ^~~~~~~~~~~~~~~~~~~
  17142. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o
  17143. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  17144. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  17145. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17146. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  17147. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  17148. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  17149. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  17150. /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 *'
  17151. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  17152. | ^~~~~~~~~~~~~~~~
  17153. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  17154. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  17155. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  17156. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.c:24:
  17157. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17158. /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]
  17159. 331 | }
  17160. | ^
  17161. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17162. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  17163. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.c:24:
  17164. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17165. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  17166. 325 | struct timespec ts = {0};
  17167. | ^~~~~~~~
  17168. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  17169. 325 | struct timespec ts = {0};
  17170. | ^
  17171. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  17172. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  17173. 325 | struct timespec ts = {0};
  17174. | ^~
  17175. cc1: some warnings being treated as errors
  17176. 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
  17177. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o
  17178. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17179. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17180. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  17181. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  17182. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  17183. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  17184. | ^~~~~~~~~
  17185. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  17186. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17187. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17188. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  17189. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  17190. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  17191. | ^~~~~~~~~
  17192. /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]
  17193. 327 | getrawmonotonic(&ts);
  17194. | ^~~~~~~~~~~~~~~
  17195. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  17196. 325 | struct timespec ts = {0};
  17197. | ^~
  17198. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17199. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17200. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  17201. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  17202. /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]
  17203. 578 | void *ptr = ioremap_nocache(phys, size);
  17204. | ^~~~~~~~~~~~~~~
  17205. | ioremap_cache
  17206. /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]
  17207. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17208. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.c:24:
  17209. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17210. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  17211. 325 | struct timespec ts = {0};
  17212. | ^~~~~~~~
  17213. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  17214. 325 | struct timespec ts = {0};
  17215. | ^
  17216. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  17217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  17218. 325 | struct timespec ts = {0};
  17219. | ^~
  17220. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17221. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17222. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  17223. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  17224. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  17225. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  17226. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  17227. | ^~~~~~~~~
  17228. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  17229. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17230. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17231. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  17232. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  17233. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  17234. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  17235. | ^~~~~~~~~
  17236. /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]
  17237. 327 | getrawmonotonic(&ts);
  17238. | ^~~~~~~~~~~~~~~
  17239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  17240. 325 | struct timespec ts = {0};
  17241. | ^~
  17242. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17243. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17244. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  17245. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  17246. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  17247. /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]
  17248. 578 | void *ptr = ioremap_nocache(phys, size);
  17249. | ^~~~~~~~~~~~~~~
  17250. | ioremap_cache
  17251. /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]
  17252. cc1: some warnings being treated as errors
  17253. cc1: some warnings being treated as errors
  17254. 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
  17255. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.o
  17256. 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
  17257. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17258. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.h:27,
  17259. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator.c:24:
  17260. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17261. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  17262. 325 | struct timespec ts = {0};
  17263. | ^~~~~~~~
  17264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  17265. 325 | struct timespec ts = {0};
  17266. | ^
  17267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  17268. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  17269. 325 | struct timespec ts = {0};
  17270. | ^~
  17271. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.o
  17272. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  17273. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17274. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  17275. /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
  17276. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  17277. | ^~~~~~~
  17278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  17279. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  17280. 39 | *tv = (struct timeval) {
  17281. | ^~~
  17282. /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'
  17283. 40 | .tv_sec = now.tv_sec,
  17284. | ^~~~~~
  17285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  17286. 40 | .tv_sec = now.tv_sec,
  17287. | ^~~
  17288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  17289. /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'
  17290. 41 | .tv_usec = now.tv_nsec/1000,
  17291. | ^~~~~~~
  17292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  17293. 41 | .tv_usec = now.tv_nsec/1000,
  17294. | ^~~
  17295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  17296. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  17297. 39 | *tv = (struct timeval) {
  17298. | ^
  17299. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17300. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17301. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  17303. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  17304. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  17305. | ^~~~~~~~~
  17306. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  17307. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17308. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17309. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17310. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  17311. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  17312. | ^~~~~~~~~
  17313. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17314. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  17315. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  17316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  17317. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  17318. | ^~~~~~~~~
  17319. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  17320. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17321. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  17322. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  17323. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  17324. | ^~~~~~~~~
  17325. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17326. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17327. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17328. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  17329. /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]
  17330. 578 | void *ptr = ioremap_nocache(phys, size);
  17331. | ^~~~~~~~~~~~~~~
  17332. | ioremap_cache
  17333. /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]
  17334. /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]
  17335. 327 | getrawmonotonic(&ts);
  17336. | ^~~~~~~~~~~~~~~
  17337. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  17338. 325 | struct timespec ts = {0};
  17339. | ^~
  17340. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  17341. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17342. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  17343. /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
  17344. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  17345. | ^~~~~~~
  17346. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  17347. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  17348. 39 | *tv = (struct timeval) {
  17349. | ^~~
  17350. /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'
  17351. 40 | .tv_sec = now.tv_sec,
  17352. | ^~~~~~
  17353. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  17354. 40 | .tv_sec = now.tv_sec,
  17355. | ^~~
  17356. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  17357. /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'
  17358. 41 | .tv_usec = now.tv_nsec/1000,
  17359. | ^~~~~~~
  17360. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  17361. 41 | .tv_usec = now.tv_nsec/1000,
  17362. | ^~~
  17363. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  17364. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  17365. 39 | *tv = (struct timeval) {
  17366. | ^
  17367. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17368. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  17369. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  17370. /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]
  17371. 578 | void *ptr = ioremap_nocache(phys, size);
  17372. | ^~~~~~~~~~~~~~~
  17373. | ioremap_cache
  17374. /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]
  17375. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17376. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17377. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17378. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  17379. 325 | struct timespec ts = {0};
  17380. | ^~~~~~~~
  17381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  17382. 325 | struct timespec ts = {0};
  17383. | ^
  17384. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  17385. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  17386. 325 | struct timespec ts = {0};
  17387. | ^~
  17388. cc1: some warnings being treated as errors
  17389. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  17390. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  17392. 325 | struct timespec ts = {0};
  17393. | ^~~~~~~~
  17394. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  17395. 325 | struct timespec ts = {0};
  17396. | ^
  17397. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  17398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  17399. 325 | struct timespec ts = {0};
  17400. | ^~
  17401. 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
  17402. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.o
  17403. /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]
  17404. 327 | getrawmonotonic(&ts);
  17405. | ^~~~~~~~~~~~~~~
  17406. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  17407. 325 | struct timespec ts = {0};
  17408. | ^~
  17409. /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]
  17410. 327 | getrawmonotonic(&ts);
  17411. | ^~~~~~~~~~~~~~~
  17412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  17413. 325 | struct timespec ts = {0};
  17414. | ^~
  17415. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17416. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17417. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  17418. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17419. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  17420. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  17421. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  17422. | ^~~~~~~~~
  17423. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  17424. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17425. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17426. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  17427. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17428. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  17429. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  17430. | ^~~~~~~~~
  17431. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17432. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17433. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  17434. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17435. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  17436. /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]
  17437. 578 | void *ptr = ioremap_nocache(phys, size);
  17438. | ^~~~~~~~~~~~~~~
  17439. | ioremap_cache
  17440. /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]
  17441. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  17442. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17443. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  17444. /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
  17445. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  17446. | ^~~~~~~
  17447. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  17448. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  17449. 39 | *tv = (struct timeval) {
  17450. | ^~~
  17451. /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'
  17452. 40 | .tv_sec = now.tv_sec,
  17453. | ^~~~~~
  17454. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  17455. 40 | .tv_sec = now.tv_sec,
  17456. | ^~~
  17457. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  17458. /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'
  17459. 41 | .tv_usec = now.tv_nsec/1000,
  17460. | ^~~~~~~
  17461. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  17462. 41 | .tv_usec = now.tv_nsec/1000,
  17463. | ^~~
  17464. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  17465. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  17466. 39 | *tv = (struct timeval) {
  17467. | ^
  17468. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17469. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  17470. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17471. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17472. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  17473. 325 | struct timespec ts = {0};
  17474. | ^~~~~~~~
  17475. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  17476. 325 | struct timespec ts = {0};
  17477. | ^
  17478. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  17479. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  17480. 325 | struct timespec ts = {0};
  17481. | ^~
  17482. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  17483. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  17484. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  17485. /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
  17486. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  17487. | ^~~~~~~
  17488. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  17489. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  17490. 39 | *tv = (struct timeval) {
  17491. | ^~~
  17492. /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'
  17493. 40 | .tv_sec = now.tv_sec,
  17494. | ^~~~~~
  17495. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  17496. 40 | .tv_sec = now.tv_sec,
  17497. | ^~~
  17498. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  17499. /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'
  17500. 41 | .tv_usec = now.tv_nsec/1000,
  17501. | ^~~~~~~
  17502. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  17503. 41 | .tv_usec = now.tv_nsec/1000,
  17504. | ^~~
  17505. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  17506. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  17507. 39 | *tv = (struct timeval) {
  17508. | ^
  17509. /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]
  17510. 327 | getrawmonotonic(&ts);
  17511. | ^~~~~~~~~~~~~~~
  17512. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  17513. 325 | struct timespec ts = {0};
  17514. | ^~
  17515. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  17516. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  17517. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  17518. /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
  17519. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  17520. | ^~~~~~~
  17521. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  17522. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  17523. 39 | *tv = (struct timeval) {
  17524. | ^~~
  17525. /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'
  17526. 40 | .tv_sec = now.tv_sec,
  17527. | ^~~~~~
  17528. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  17529. 40 | .tv_sec = now.tv_sec,
  17530. | ^~~
  17531. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  17532. /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'
  17533. 41 | .tv_usec = now.tv_nsec/1000,
  17534. | ^~~~~~~
  17535. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  17536. 41 | .tv_usec = now.tv_nsec/1000,
  17537. | ^~~
  17538. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  17539. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  17540. 39 | *tv = (struct timeval) {
  17541. | ^
  17542. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  17543. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:27:
  17544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  17545. /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'?
  17546. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17547. | ^~~~~~~~
  17548. /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'
  17549. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  17550. | ^~~~~~~~
  17551. /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'
  17552. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17553. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17554. /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'?
  17555. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17556. | ^~~~~~~~
  17557. /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'
  17558. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  17559. | ^~~~~~~~
  17560. /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'
  17561. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17562. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17563. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17564. /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]
  17565. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17566. | ^~~~
  17567. | |
  17568. | int
  17569. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  17570. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  17571. | ^~~~
  17572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  17573. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  17574. | ^~~~~~~~~~~~~~~
  17575. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  17576. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17577. | ^~~~~~~~~~
  17578. /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'
  17579. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  17580. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17581. /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'
  17582. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17583. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17584. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  17585. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  17586. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  17587. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  17588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  17589. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  17590. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17591. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17592. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17593. /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'
  17594. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  17595. | ~~~~~~~~~~~~~~~~~~~~~^~~
  17596. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17597. /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]
  17598. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17599. | ^~~~
  17600. | |
  17601. | int
  17602. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  17603. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  17604. | ^~~~
  17605. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  17606. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  17607. | ^~~~~~~~~~~~~~~
  17608. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  17609. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17610. | ^~~~~~~~~~
  17611. /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'
  17612. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  17613. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17614. /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'
  17615. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17616. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17617. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  17618. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:27:
  17619. /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'
  17620. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  17621. | ~~~~~~^~~~
  17622. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  17623. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  17624. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  17625. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  17626. /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'?
  17627. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17628. | ^~~~~~~~
  17629. /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'
  17630. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  17631. | ^~~~~~~~
  17632. /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'
  17633. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17634. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17635. /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'?
  17636. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17637. | ^~~~~~~~
  17638. /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'
  17639. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  17640. | ^~~~~~~~
  17641. /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'
  17642. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17643. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17644. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:25:
  17645. /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]
  17646. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17647. | ^~~~
  17648. | |
  17649. | int
  17650. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  17651. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  17652. | ^~~~
  17653. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  17654. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  17655. | ^~~~~~~~~~~~~~~
  17656. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  17657. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17658. | ^~~~~~~~~~
  17659. /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'
  17660. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  17661. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17662. /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'
  17663. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17664. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17665. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  17666. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  17667. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  17668. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  17669. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  17670. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  17671. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17672. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  17673. /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'
  17674. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  17675. | ~~~~~~~~~~~~~~~~~~~~~^~~
  17676. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:25:
  17677. /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]
  17678. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17679. | ^~~~
  17680. | |
  17681. | int
  17682. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  17683. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  17684. | ^~~~
  17685. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  17686. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  17687. | ^~~~~~~~~~~~~~~
  17688. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  17689. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17690. | ^~~~~~~~~~
  17691. /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'
  17692. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  17693. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17694. /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'
  17695. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17696. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17697. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  17698. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  17699. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  17700. /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'
  17701. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  17702. | ~~~~~~^~~~
  17703. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c: In function 'uvm8_test_va_range_info':
  17704. /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'?
  17705. 1766 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  17706. | ^~~~~~~~
  17707. /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'
  17708. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  17709. | ^~~~~~~~
  17710. /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'?
  17711. 1766 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  17712. | ^~~~~~~~
  17713. /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'
  17714. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  17715. | ^~~~~~~~
  17716. /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]
  17717. 544 | down_read(_sem); \
  17718. | ^~~~
  17719. | |
  17720. | int
  17721. /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'
  17722. 1766 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  17723. | ^~~~~~~~~~~~~~~~~~~~~~
  17724. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  17725. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  17726. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  17727. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  17728. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  17729. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  17730. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17731. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17732. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17733. /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'
  17734. 125 | extern void down_read(struct rw_semaphore *sem);
  17735. | ~~~~~~~~~~~~~~~~~~~~~^~~
  17736. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  17737. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:27:
  17738. /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'?
  17739. 1827 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  17740. | ^~~~~~~~
  17741. /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'
  17742. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  17743. | ^~~~~~~~
  17744. /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'?
  17745. 1827 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  17746. | ^~~~~~~~
  17747. /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'
  17748. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  17749. | ^~~~~~~~
  17750. /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]
  17751. 549 | up_read(_sem); \
  17752. | ^~~~
  17753. | |
  17754. | int
  17755. /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'
  17756. 1827 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  17757. | ^~~~~~~~~~~~~~~~~~~~
  17758. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  17759. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  17760. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  17761. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  17762. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  17763. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  17764. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17765. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  17766. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.c:24:
  17767. /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'
  17768. 147 | extern void up_read(struct rw_semaphore *sem);
  17769. | ~~~~~~~~~~~~~~~~~~~~~^~~
  17770. cc1: some warnings being treated as errors
  17771. 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
  17772. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.o
  17773. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:30,
  17774. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17775. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  17776. /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'?
  17777. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17778. | ^~~~~~~~
  17779. /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'
  17780. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  17781. | ^~~~~~~~
  17782. /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'
  17783. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17784. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17785. /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'?
  17786. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17787. | ^~~~~~~~
  17788. /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'
  17789. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  17790. | ^~~~~~~~
  17791. /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'
  17792. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17793. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17794. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  17795. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:30,
  17796. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17797. /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]
  17798. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17799. | ^~~~
  17800. | |
  17801. | int
  17802. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  17803. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  17804. | ^~~~
  17805. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  17806. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  17807. | ^~~~~~~~~~~~~~~
  17808. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  17809. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17810. | ^~~~~~~~~~
  17811. /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'
  17812. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  17813. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17814. /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'
  17815. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17816. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17817. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  17818. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  17819. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  17820. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  17821. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  17822. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  17823. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17824. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree.h:27,
  17825. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:28,
  17826. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17827. /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'
  17828. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  17829. | ~~~~~~~~~~~~~~~~~~~~~^~~
  17830. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  17831. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:30,
  17832. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17833. /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]
  17834. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17835. | ^~~~
  17836. | |
  17837. | int
  17838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  17839. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  17840. | ^~~~
  17841. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  17842. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  17843. | ^~~~~~~~~~~~~~~
  17844. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  17845. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17846. | ^~~~~~~~~~
  17847. /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'
  17848. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  17849. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17850. /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'
  17851. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17852. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17853. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c: In function 'block_map_cpu_page_to':
  17854. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.h:30,
  17855. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group.c:24:
  17856. /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'
  17857. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  17858. | ~~~~~~^~~~
  17859. /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'?
  17860. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17861. | ^~~~~~~~
  17862. /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'
  17863. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  17864. | ^~~~~~~~
  17865. /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'
  17866. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17867. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17868. /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'?
  17869. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17870. | ^~~~~~~~
  17871. /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'
  17872. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  17873. | ^~~~~~~~
  17874. /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'
  17875. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17876. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17877. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:25:
  17878. /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]
  17879. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17880. | ^~~~
  17881. | |
  17882. | int
  17883. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  17884. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  17885. | ^~~~
  17886. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  17887. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  17888. | ^~~~~~~~~~~~~~~
  17889. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  17890. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17891. | ^~~~~~~~~~
  17892. /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'
  17893. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  17894. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17895. /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'
  17896. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17897. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17898. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  17899. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  17900. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  17901. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  17902. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  17903. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  17904. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17905. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  17906. /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'
  17907. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  17908. | ~~~~~~~~~~~~~~~~~~~~~^~~
  17909. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:25:
  17910. /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]
  17911. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17912. | ^~~~
  17913. | |
  17914. | int
  17915. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  17916. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  17917. | ^~~~
  17918. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  17919. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  17920. | ^~~~~~~~~~~~~~~
  17921. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  17922. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  17923. | ^~~~~~~~~~
  17924. /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'
  17925. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  17926. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17927. /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'
  17928. 6420 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  17929. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  17930. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  17931. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  17932. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  17933. /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'
  17934. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  17935. | ~~~~~~^~~~
  17936. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17937. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17938. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  17939. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  17940. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  17941. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  17942. | ^~~~~~~~~
  17943. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  17944. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17945. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17946. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  17947. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  17948. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  17949. | ^~~~~~~~~
  17950. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17951. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17952. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  17953. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  17954. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17955. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17956. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  17957. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  17958. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  17959. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  17960. | ^~~~~~~~~
  17961. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  17962. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17963. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17964. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  17965. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  17966. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  17967. | ^~~~~~~~~
  17968. /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]
  17969. 578 | void *ptr = ioremap_nocache(phys, size);
  17970. | ^~~~~~~~~~~~~~~
  17971. | ioremap_cache
  17972. /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]
  17973. cc1: some warnings being treated as errors
  17974. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  17975. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17976. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  17977. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  17978. /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]
  17979. 578 | void *ptr = ioremap_nocache(phys, size);
  17980. | ^~~~~~~~~~~~~~~
  17981. | ioremap_cache
  17982. /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]
  17983. 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
  17984. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17985. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  17986. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  17987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  17988. 325 | struct timespec ts = {0};
  17989. | ^~~~~~~~
  17990. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  17991. 325 | struct timespec ts = {0};
  17992. | ^
  17993. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  17994. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.o
  17995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  17996. 325 | struct timespec ts = {0};
  17997. | ^~
  17998. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  17999. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  18000. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  18001. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  18002. 325 | struct timespec ts = {0};
  18003. | ^~~~~~~~
  18004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  18005. 325 | struct timespec ts = {0};
  18006. | ^
  18007. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  18008. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  18009. 325 | struct timespec ts = {0};
  18010. | ^~
  18011. /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]
  18012. 327 | getrawmonotonic(&ts);
  18013. | ^~~~~~~~~~~~~~~
  18014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  18015. 325 | struct timespec ts = {0};
  18016. | ^~
  18017. /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]
  18018. 327 | getrawmonotonic(&ts);
  18019. | ^~~~~~~~~~~~~~~
  18020. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  18021. 325 | struct timespec ts = {0};
  18022. | ^~
  18023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_change_pte_mapping':
  18024. /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'?
  18025. 10482 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18026. | ^~~~~~~~
  18027. /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'
  18028. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18029. | ^~~~~~~~
  18030. /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'?
  18031. 10482 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18032. | ^~~~~~~~
  18033. /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'
  18034. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18035. | ^~~~~~~~
  18036. /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]
  18037. 544 | down_read(_sem); \
  18038. | ^~~~
  18039. | |
  18040. | int
  18041. /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'
  18042. 10482 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18043. | ^~~~~~~~~~~~~~~~~~~~~~
  18044. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18045. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18046. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18047. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18048. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18049. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18050. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18051. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  18052. /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'
  18053. 125 | extern void down_read(struct rw_semaphore *sem);
  18054. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18055. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18056. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18057. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  18058. /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'?
  18059. 10565 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18060. | ^~~~~~~~
  18061. /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'
  18062. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18063. | ^~~~~~~~
  18064. /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'?
  18065. 10565 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18066. | ^~~~~~~~
  18067. /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'
  18068. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18069. | ^~~~~~~~
  18070. /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]
  18071. 549 | up_read(_sem); \
  18072. | ^~~~
  18073. | |
  18074. | int
  18075. /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'
  18076. 10565 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18077. | ^~~~~~~~~~~~~~~~~~~~
  18078. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18079. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18080. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18081. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18082. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18083. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18084. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18085. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  18086. /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'
  18087. 147 | extern void up_read(struct rw_semaphore *sem);
  18088. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18089. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18090. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18091. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  18092. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_block_info':
  18093. /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'?
  18094. 10580 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18095. | ^~~~~~~~
  18096. /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'
  18097. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18098. | ^~~~~~~~
  18099. /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'?
  18100. 10580 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18101. | ^~~~~~~~
  18102. /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'
  18103. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18104. | ^~~~~~~~
  18105. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18106. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18107. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  18108. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  18109. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  18110. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  18111. | ^~~~~~~~~
  18112. /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]
  18113. 544 | down_read(_sem); \
  18114. | ^~~~
  18115. | |
  18116. | int
  18117. /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'
  18118. 10580 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18119. | ^~~~~~~~~~~~~~~~~~~~~~
  18120. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  18121. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18122. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18123. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  18124. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  18125. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  18126. | ^~~~~~~~~
  18127. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18128. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18129. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18130. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18131. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18132. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18133. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18134. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  18135. /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'
  18136. 125 | extern void down_read(struct rw_semaphore *sem);
  18137. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18138. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18139. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18140. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  18141. /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'?
  18142. 10598 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18143. | ^~~~~~~~
  18144. /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'
  18145. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18146. | ^~~~~~~~
  18147. /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'?
  18148. 10598 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18149. | ^~~~~~~~
  18150. /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'
  18151. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18152. | ^~~~~~~~
  18153. /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]
  18154. 549 | up_read(_sem); \
  18155. | ^~~~
  18156. | |
  18157. | int
  18158. /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'
  18159. 10598 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18160. | ^~~~~~~~~~~~~~~~~~~~
  18161. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18162. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18163. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18164. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18165. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18166. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18167. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18168. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  18169. /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'
  18170. 147 | extern void up_read(struct rw_semaphore *sem);
  18171. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18172. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18173. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18174. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  18175. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c: In function 'uvm8_test_va_residency_info':
  18176. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  18177. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  18178. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  18179. /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
  18180. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  18181. | ^~~~~~~
  18182. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  18183. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  18184. 39 | *tv = (struct timeval) {
  18185. | ^~~
  18186. /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'
  18187. 40 | .tv_sec = now.tv_sec,
  18188. | ^~~~~~
  18189. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  18190. 40 | .tv_sec = now.tv_sec,
  18191. | ^~~
  18192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  18193. /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'
  18194. 41 | .tv_usec = now.tv_nsec/1000,
  18195. | ^~~~~~~
  18196. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  18197. 41 | .tv_usec = now.tv_nsec/1000,
  18198. | ^~~
  18199. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  18200. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  18201. 39 | *tv = (struct timeval) {
  18202. | ^
  18203. /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'?
  18204. 10614 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18205. | ^~~~~~~~
  18206. /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'
  18207. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18208. | ^~~~~~~~
  18209. /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'?
  18210. 10614 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18211. | ^~~~~~~~
  18212. /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'
  18213. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18214. | ^~~~~~~~
  18215. /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]
  18216. 544 | down_read(_sem); \
  18217. | ^~~~
  18218. | |
  18219. | int
  18220. /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'
  18221. 10614 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  18222. | ^~~~~~~~~~~~~~~~~~~~~~
  18223. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18224. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18225. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18226. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18227. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18228. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18229. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18230. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  18231. /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'
  18232. 125 | extern void down_read(struct rw_semaphore *sem);
  18233. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18234. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18235. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18236. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  18237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  18238. /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]
  18239. 578 | void *ptr = ioremap_nocache(phys, size);
  18240. | ^~~~~~~~~~~~~~~
  18241. | ioremap_cache
  18242. /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]
  18243. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18244. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18245. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:26:
  18246. /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'?
  18247. 10739 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18248. | ^~~~~~~~
  18249. /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'
  18250. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18251. | ^~~~~~~~
  18252. /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'?
  18253. 10739 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18254. | ^~~~~~~~
  18255. /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'
  18256. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18257. | ^~~~~~~~
  18258. /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]
  18259. 549 | up_read(_sem); \
  18260. | ^~~~
  18261. | |
  18262. | int
  18263. /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'
  18264. 10739 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  18265. | ^~~~~~~~~~~~~~~~~~~~
  18266. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18267. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18268. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18269. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18270. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18271. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18272. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18273. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  18274. /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'
  18275. 147 | extern void up_read(struct rw_semaphore *sem);
  18276. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18277. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18278. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  18279. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  18280. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  18281. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  18282. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  18283. | ^~~~~~~~~
  18284. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  18285. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18286. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  18287. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  18288. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  18289. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  18290. | ^~~~~~~~~
  18291. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18292. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  18293. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  18294. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  18295. 325 | struct timespec ts = {0};
  18296. | ^~~~~~~~
  18297. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  18298. 325 | struct timespec ts = {0};
  18299. | ^
  18300. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  18301. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  18302. 325 | struct timespec ts = {0};
  18303. | ^~
  18304. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18305. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  18306. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  18307. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  18308. /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]
  18309. 578 | void *ptr = ioremap_nocache(phys, size);
  18310. | ^~~~~~~~~~~~~~~
  18311. | ioremap_cache
  18312. /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]
  18313. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  18314. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.c:24:
  18315. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  18316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  18317. 325 | struct timespec ts = {0};
  18318. | ^~~~~~~~
  18319. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  18320. 325 | struct timespec ts = {0};
  18321. | ^
  18322. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  18323. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  18324. 325 | struct timespec ts = {0};
  18325. | ^~
  18326. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  18327. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  18328. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  18329. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  18330. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  18331. /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
  18332. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  18333. | ^~~~~~~
  18334. /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]
  18335. 327 | getrawmonotonic(&ts);
  18336. | ^~~~~~~~~~~~~~~
  18337. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  18338. 325 | struct timespec ts = {0};
  18339. | ^~
  18340. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  18341. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  18342. 39 | *tv = (struct timeval) {
  18343. | ^~~
  18344. /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'
  18345. 40 | .tv_sec = now.tv_sec,
  18346. | ^~~~~~
  18347. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  18348. 40 | .tv_sec = now.tv_sec,
  18349. | ^~~
  18350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  18351. /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'
  18352. 41 | .tv_usec = now.tv_nsec/1000,
  18353. | ^~~~~~~
  18354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  18355. 41 | .tv_usec = now.tv_nsec/1000,
  18356. | ^~~
  18357. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  18358. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  18359. 39 | *tv = (struct timeval) {
  18360. | ^
  18361. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block.c:24:
  18362. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  18363. /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]
  18364. 331 | }
  18365. | ^
  18366. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18367. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  18368. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  18369. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  18370. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  18371. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  18372. | ^~~~~~~~~
  18373. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  18374. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18375. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  18376. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  18377. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  18378. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  18379. | ^~~~~~~~~
  18380. cc1: some warnings being treated as errors
  18381. /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]
  18382. 327 | getrawmonotonic(&ts);
  18383. | ^~~~~~~~~~~~~~~
  18384. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  18385. 325 | struct timespec ts = {0};
  18386. | ^~
  18387. 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
  18388. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18389. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  18390. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  18391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  18392. /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]
  18393. 578 | void *ptr = ioremap_nocache(phys, size);
  18394. | ^~~~~~~~~~~~~~~
  18395. | ioremap_cache
  18396. /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]
  18397. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.o
  18398. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  18399. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  18400. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  18401. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  18402. 325 | struct timespec ts = {0};
  18403. | ^~~~~~~~
  18404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  18405. 325 | struct timespec ts = {0};
  18406. | ^
  18407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  18408. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  18409. 325 | struct timespec ts = {0};
  18410. | ^~
  18411. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18412. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18413. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26:
  18414. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  18415. /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'?
  18416. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18417. | ^~~~~~~~
  18418. /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'
  18419. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18420. | ^~~~~~~~
  18421. /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'
  18422. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18423. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18424. /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'?
  18425. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18426. | ^~~~~~~~
  18427. /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'
  18428. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18429. | ^~~~~~~~
  18430. /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'
  18431. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18432. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18433. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24:
  18434. /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]
  18435. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18436. | ^~~~
  18437. | |
  18438. | int
  18439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18440. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18441. | ^~~~
  18442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18443. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18444. | ^~~~~~~~~~~~~~~
  18445. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18446. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18447. | ^~~~~~~~~~
  18448. /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'
  18449. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18450. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18451. /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'
  18452. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18453. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18454. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18455. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18456. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18457. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18458. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18459. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18460. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18461. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18462. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  18463. /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'
  18464. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  18465. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18466. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18467. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18468. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  18469. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18470. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  18471. /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'?
  18472. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18473. | ^~~~~~~~
  18474. /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'
  18475. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18476. | ^~~~~~~~
  18477. /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'
  18478. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18479. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18480. /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'?
  18481. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18482. | ^~~~~~~~
  18483. /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'
  18484. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18485. | ^~~~~~~~
  18486. /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'
  18487. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18488. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18489. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:29,
  18490. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18491. /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]
  18492. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18493. | ^~~~
  18494. | |
  18495. | int
  18496. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18497. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18498. | ^~~~
  18499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18500. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18501. | ^~~~~~~~~~~~~~~
  18502. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18503. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18504. | ^~~~~~~~~~
  18505. /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'
  18506. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18507. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18508. /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'
  18509. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18510. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18511. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18512. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18513. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18514. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18515. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18516. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18517. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18518. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18519. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  18520. /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'
  18521. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  18522. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18523. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:29,
  18524. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18525. /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]
  18526. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18527. | ^~~~
  18528. | |
  18529. | int
  18530. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18531. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18532. | ^~~~
  18533. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18534. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18535. | ^~~~~~~~~~~~~~~
  18536. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18537. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18538. | ^~~~~~~~~~
  18539. /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'
  18540. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18541. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18542. /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'
  18543. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18544. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18545. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18546. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18547. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  18548. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18549. /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'
  18550. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  18551. | ~~~~~~^~~~
  18552. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults':
  18553. /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'?
  18554. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18555. | ^~~~~~~~
  18556. /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'
  18557. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18558. | ^~~~~~~~
  18559. /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'
  18560. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18561. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18562. /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'?
  18563. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18564. | ^~~~~~~~
  18565. /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'
  18566. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18567. | ^~~~~~~~
  18568. /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'
  18569. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18570. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18571. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:29,
  18572. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18573. /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]
  18574. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18575. | ^~~~
  18576. | |
  18577. | int
  18578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18579. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18580. | ^~~~
  18581. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18582. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18583. | ^~~~~~~~~~~~~~~
  18584. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18585. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18586. | ^~~~~~~~~~
  18587. /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'
  18588. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18589. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18590. /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'
  18591. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18592. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18593. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18594. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18595. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18596. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18597. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18598. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18599. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18600. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18601. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  18602. /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'
  18603. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  18604. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18605. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:29,
  18606. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18607. /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]
  18608. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18609. | ^~~~
  18610. | |
  18611. | int
  18612. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18613. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18614. | ^~~~
  18615. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18616. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18617. | ^~~~~~~~~~~~~~~
  18618. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18619. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18620. | ^~~~~~~~~~
  18621. /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'
  18622. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18623. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18624. /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'
  18625. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18626. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18627. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18628. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18629. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  18630. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18631. /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'
  18632. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  18633. | ~~~~~~^~~~
  18634. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24:
  18635. /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]
  18636. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18637. | ^~~~
  18638. | |
  18639. | int
  18640. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18641. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18642. | ^~~~
  18643. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18644. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18645. | ^~~~~~~~~~~~~~~
  18646. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18647. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18648. | ^~~~~~~~~~
  18649. /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'
  18650. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18651. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18652. /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'
  18653. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18654. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18655. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18656. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18657. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26:
  18658. /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'
  18659. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  18660. | ~~~~~~^~~~
  18661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults':
  18662. /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'?
  18663. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18664. | ^~~~~~~~
  18665. /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'
  18666. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18667. | ^~~~~~~~
  18668. /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'
  18669. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18670. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18671. /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'?
  18672. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18673. | ^~~~~~~~
  18674. /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'
  18675. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18676. | ^~~~~~~~
  18677. /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'
  18678. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18679. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18680. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24:
  18681. /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]
  18682. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18683. | ^~~~
  18684. | |
  18685. | int
  18686. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18687. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18688. | ^~~~
  18689. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18690. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18691. | ^~~~~~~~~~~~~~~
  18692. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18693. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18694. | ^~~~~~~~~~
  18695. /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'
  18696. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18697. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18698. /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'
  18699. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18700. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18701. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18702. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18703. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18704. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18705. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18706. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18707. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18708. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18709. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  18710. /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'
  18711. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  18712. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18713. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:24:
  18714. /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]
  18715. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18716. | ^~~~
  18717. | |
  18718. | int
  18719. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18720. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18721. | ^~~~
  18722. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18723. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18724. | ^~~~~~~~~~~~~~~
  18725. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18726. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18727. | ^~~~~~~~~~
  18728. /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'
  18729. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18730. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18731. /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'
  18732. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  18733. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18734. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18735. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26:
  18737. /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'
  18738. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  18739. | ~~~~~~^~~~
  18740. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c: In function 'service_fault':
  18741. /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'?
  18742. 506 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18743. | ^~~~~~~~
  18744. /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'
  18745. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18746. | ^~~~~~~~
  18747. /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'?
  18748. 506 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18749. | ^~~~~~~~
  18750. /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'
  18751. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18752. | ^~~~~~~~
  18753. /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]
  18754. 544 | down_read(_sem); \
  18755. | ^~~~
  18756. | |
  18757. | int
  18758. /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'
  18759. 506 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18760. | ^~~~~~~~~~~~~~~~~~~~~~
  18761. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18762. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18763. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18764. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18765. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18766. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18767. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18768. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18769. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  18770. /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'
  18771. 125 | extern void down_read(struct rw_semaphore *sem);
  18772. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18773. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18774. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18775. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:26:
  18776. /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'?
  18777. 557 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18778. | ^~~~~~~~
  18779. /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'
  18780. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18781. | ^~~~~~~~
  18782. /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'?
  18783. 557 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18784. | ^~~~~~~~
  18785. /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'
  18786. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18787. | ^~~~~~~~
  18788. /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]
  18789. 549 | up_read(_sem); \
  18790. | ^~~~
  18791. | |
  18792. | int
  18793. /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'
  18794. 557 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18795. | ^~~~~~~~~~~~~~~~~~~~
  18796. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18797. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18798. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18799. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18800. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18801. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18802. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18803. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18804. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
  18805. /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'
  18806. 147 | extern void up_read(struct rw_semaphore *sem);
  18807. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18808. /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]
  18809. 327 | getrawmonotonic(&ts);
  18810. | ^~~~~~~~~~~~~~~
  18811. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  18812. 325 | struct timespec ts = {0};
  18813. | ^~
  18814. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c: In function 'service_fault_batch':
  18815. /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'?
  18816. 1433 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18817. | ^~~~~~~~
  18818. /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'
  18819. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18820. | ^~~~~~~~
  18821. /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'?
  18822. 1433 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18823. | ^~~~~~~~
  18824. /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'
  18825. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18826. | ^~~~~~~~
  18827. /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]
  18828. 549 | up_read(_sem); \
  18829. | ^~~~
  18830. | |
  18831. | int
  18832. /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'
  18833. 1433 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18834. | ^~~~~~~~~~~~~~~~~~~~
  18835. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18836. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18837. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18838. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18839. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18840. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18841. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18842. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18843. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  18844. /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'
  18845. 147 | extern void up_read(struct rw_semaphore *sem);
  18846. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18847. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18848. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18849. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  18850. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18851. /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'?
  18852. 1452 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18853. | ^~~~~~~~
  18854. /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'
  18855. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18856. | ^~~~~~~~
  18857. /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'?
  18858. 1452 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18859. | ^~~~~~~~
  18860. /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'
  18861. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  18862. | ^~~~~~~~
  18863. /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]
  18864. 544 | down_read(_sem); \
  18865. | ^~~~
  18866. | |
  18867. | int
  18868. /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'
  18869. 1452 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18870. | ^~~~~~~~~~~~~~~~~~~~~~
  18871. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18872. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18873. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18874. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18875. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18876. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18877. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18878. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18879. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  18880. /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'
  18881. 125 | extern void down_read(struct rw_semaphore *sem);
  18882. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18883. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18884. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18885. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  18886. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:27:
  18887. /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'?
  18888. 1558 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18889. | ^~~~~~~~
  18890. /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'
  18891. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18892. | ^~~~~~~~
  18893. /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'?
  18894. 1558 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18895. | ^~~~~~~~
  18896. /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'
  18897. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  18898. | ^~~~~~~~
  18899. /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]
  18900. 549 | up_read(_sem); \
  18901. | ^~~~
  18902. | |
  18903. | int
  18904. /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'
  18905. 1558 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  18906. | ^~~~~~~~~~~~~~~~~~~~
  18907. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18908. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18909. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18910. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18911. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18912. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18913. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18914. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18915. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  18916. /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'
  18917. 147 | extern void up_read(struct rw_semaphore *sem);
  18918. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18919. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18920. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
  18921. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  18922. /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]
  18923. 331 | }
  18924. | ^
  18925. cc1: some warnings being treated as errors
  18926. 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
  18927. cc1: some warnings being treated as errors
  18928. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.o
  18929. 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
  18930. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.o
  18931. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  18932. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  18933. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  18934. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26:
  18935. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  18936. /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'?
  18937. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18938. | ^~~~~~~~
  18939. /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'
  18940. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18941. | ^~~~~~~~
  18942. /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'
  18943. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18944. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18945. /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'?
  18946. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18947. | ^~~~~~~~
  18948. /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'
  18949. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  18950. | ^~~~~~~~
  18951. /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'
  18952. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18953. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18954. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.h:26,
  18955. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:25:
  18956. /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]
  18957. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18958. | ^~~~
  18959. | |
  18960. | int
  18961. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18962. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18963. | ^~~~
  18964. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18965. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  18966. | ^~~~~~~~~~~~~~~
  18967. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  18968. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18969. | ^~~~~~~~~~
  18970. /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'
  18971. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  18972. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18973. /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'
  18974. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  18975. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  18976. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  18977. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  18978. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  18979. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  18980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  18981. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  18982. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  18983. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  18984. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  18985. /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'
  18986. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  18987. | ~~~~~~~~~~~~~~~~~~~~~^~~
  18988. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.h:26,
  18989. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:25:
  18990. /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]
  18991. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  18992. | ^~~~
  18993. | |
  18994. | int
  18995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  18996. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  18997. | ^~~~
  18998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  18999. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  19000. | ^~~~~~~~~~~~~~~
  19001. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  19002. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  19003. | ^~~~~~~~~~
  19004. /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'
  19005. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  19006. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19007. /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'
  19008. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  19009. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  19010. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  19011. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  19012. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  19013. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26:
  19014. /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'
  19015. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  19016. | ~~~~~~^~~~
  19017. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19018. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19019. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19020. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  19021. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  19022. /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
  19023. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19024. | ^~~~~~~
  19025. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19026. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19027. 39 | *tv = (struct timeval) {
  19028. | ^~~
  19029. /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'
  19030. 40 | .tv_sec = now.tv_sec,
  19031. | ^~~~~~
  19032. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19033. 40 | .tv_sec = now.tv_sec,
  19034. | ^~~
  19035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19036. /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'
  19037. 41 | .tv_usec = now.tv_nsec/1000,
  19038. | ^~~~~~~
  19039. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19040. 41 | .tv_usec = now.tv_nsec/1000,
  19041. | ^~~
  19042. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19043. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19044. 39 | *tv = (struct timeval) {
  19045. | ^
  19046. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c: In function 'service_phys_single_va_block':
  19047. /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'?
  19048. 1183 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  19049. | ^~~~~~~~
  19050. /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'
  19051. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  19052. | ^~~~~~~~
  19053. /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'?
  19054. 1183 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  19055. | ^~~~~~~~
  19056. /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'
  19057. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  19058. | ^~~~~~~~
  19059. /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]
  19060. 544 | down_read(_sem); \
  19061. | ^~~~
  19062. | |
  19063. | int
  19064. /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'
  19065. 1183 | uvm_down_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  19066. | ^~~~~~~~~~~~~~~~~~~~~~
  19067. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  19068. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  19069. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  19070. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  19071. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  19072. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  19073. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19074. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  19075. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  19076. /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'
  19077. 125 | extern void down_read(struct rw_semaphore *sem);
  19078. | ~~~~~~~~~~~~~~~~~~~~~^~~
  19079. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  19080. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  19081. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  19082. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:26:
  19083. /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'?
  19084. 1225 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  19085. | ^~~~~~~~
  19086. /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'
  19087. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  19088. | ^~~~~~~~
  19089. /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'?
  19090. 1225 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  19091. | ^~~~~~~~
  19092. /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'
  19093. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  19094. | ^~~~~~~~
  19095. /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]
  19096. 549 | up_read(_sem); \
  19097. | ^~~~
  19098. | |
  19099. | int
  19100. /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'
  19101. 1225 | uvm_up_read_mmap_sem(&va_space_mm->mm->mmap_sem);
  19102. | ^~~~~~~~~~~~~~~~~~~~
  19103. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  19104. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  19105. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  19106. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  19107. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  19108. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  19109. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19110. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  19111. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  19112. /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'
  19113. 147 | extern void up_read(struct rw_semaphore *sem);
  19114. | ~~~~~~~~~~~~~~~~~~~~~^~~
  19115. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv_uvm_interface.h:30,
  19116. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_access_counters.c:24:
  19117. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19118. /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]
  19119. 331 | }
  19120. | ^
  19121. cc1: some warnings being treated as errors
  19122. 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
  19123. cc1: some warnings being treated as errors
  19124. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.o
  19125. 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
  19126. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.o
  19127. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  19128. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  19129. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  19130. /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'?
  19131. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  19132. | ^~~~~~~~
  19133. /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'
  19134. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  19135. | ^~~~~~~~
  19136. /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'
  19137. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  19138. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  19139. /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'?
  19140. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  19141. | ^~~~~~~~
  19142. /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'
  19143. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  19144. | ^~~~~~~~
  19145. /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'
  19146. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  19147. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  19148. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  19149. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  19150. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  19151. /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]
  19152. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  19153. | ^~~~
  19154. | |
  19155. | int
  19156. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  19157. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  19158. | ^~~~
  19159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  19160. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  19161. | ^~~~~~~~~~~~~~~
  19162. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  19163. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  19164. | ^~~~~~~~~~
  19165. /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'
  19166. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  19167. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19168. /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'
  19169. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  19170. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  19171. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  19172. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  19173. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  19174. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  19175. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  19176. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  19177. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19178. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  19179. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  19180. /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'
  19181. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  19182. | ~~~~~~~~~~~~~~~~~~~~~^~~
  19183. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  19184. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  19185. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  19186. /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]
  19187. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  19188. | ^~~~
  19189. | |
  19190. | int
  19191. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  19192. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  19193. | ^~~~
  19194. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  19195. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  19196. | ^~~~~~~~~~~~~~~
  19197. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  19198. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  19199. | ^~~~~~~~~~
  19200. /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'
  19201. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  19202. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19203. /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'
  19204. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  19205. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  19206. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  19207. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module.c:24:
  19208. /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'
  19209. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  19210. | ~~~~~~^~~~
  19211. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19212. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19213. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19214. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  19215. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  19216. /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
  19217. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19218. | ^~~~~~~
  19219. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19220. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19221. 39 | *tv = (struct timeval) {
  19222. | ^~~
  19223. /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'
  19224. 40 | .tv_sec = now.tv_sec,
  19225. | ^~~~~~
  19226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19227. 40 | .tv_sec = now.tv_sec,
  19228. | ^~~
  19229. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19230. /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'
  19231. 41 | .tv_usec = now.tv_nsec/1000,
  19232. | ^~~~~~~
  19233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19234. 41 | .tv_usec = now.tv_nsec/1000,
  19235. | ^~~
  19236. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19238. 39 | *tv = (struct timeval) {
  19239. | ^
  19240. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19241. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19242. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  19243. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  19244. /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
  19245. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19246. | ^~~~~~~
  19247. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19248. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19249. 39 | *tv = (struct timeval) {
  19250. | ^~~
  19251. /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'
  19252. 40 | .tv_sec = now.tv_sec,
  19253. | ^~~~~~
  19254. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19255. 40 | .tv_sec = now.tv_sec,
  19256. | ^~~
  19257. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19258. /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'
  19259. 41 | .tv_usec = now.tv_nsec/1000,
  19260. | ^~~~~~~
  19261. cc1: some warnings being treated as errors
  19262. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19263. 41 | .tv_usec = now.tv_nsec/1000,
  19264. | ^~~
  19265. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19267. 39 | *tv = (struct timeval) {
  19268. | ^
  19269. 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
  19270. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.o
  19271. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19272. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  19273. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  19274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19275. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19276. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19277. | ^~~~~~~~~
  19278. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19279. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19280. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  19281. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  19282. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19283. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19284. | ^~~~~~~~~
  19285. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19286. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  19287. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  19288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19289. /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]
  19290. 578 | void *ptr = ioremap_nocache(phys, size);
  19291. | ^~~~~~~~~~~~~~~
  19292. | ioremap_cache
  19293. /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]
  19294. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  19295. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu.c:26:
  19296. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19297. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19298. 325 | struct timespec ts = {0};
  19299. | ^~~~~~~~
  19300. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19301. 325 | struct timespec ts = {0};
  19302. | ^
  19303. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19304. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19305. 325 | struct timespec ts = {0};
  19306. | ^~
  19307. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19308. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19309. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19310. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  19311. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  19312. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19313. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19314. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19315. | ^~~~~~~~~
  19316. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19317. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19318. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19319. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19320. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  19321. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  19322. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19323. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19324. | ^~~~~~~~~
  19325. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19326. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19327. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19328. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  19329. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  19330. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19331. /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]
  19332. 578 | void *ptr = ioremap_nocache(phys, size);
  19333. | ^~~~~~~~~~~~~~~
  19334. | ioremap_cache
  19335. /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]
  19336. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19337. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19338. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:28,
  19339. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.c:24:
  19340. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19341. /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]
  19342. 327 | getrawmonotonic(&ts);
  19343. | ^~~~~~~~~~~~~~~
  19344. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  19345. 325 | struct timespec ts = {0};
  19346. | ^~
  19347. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19348. 325 | struct timespec ts = {0};
  19349. | ^~~~~~~~
  19350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19351. 325 | struct timespec ts = {0};
  19352. | ^
  19353. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19355. 325 | struct timespec ts = {0};
  19356. | ^~
  19357. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19358. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  19359. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  19360. /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
  19361. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19362. | ^~~~~~~
  19363. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19364. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19365. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19366. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  19367. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  19368. /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
  19369. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19370. | ^~~~~~~
  19371. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19372. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19373. 39 | *tv = (struct timeval) {
  19374. | ^~~
  19375. /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'
  19376. 40 | .tv_sec = now.tv_sec,
  19377. | ^~~~~~
  19378. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19379. 40 | .tv_sec = now.tv_sec,
  19380. | ^~~
  19381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19382. /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'
  19383. 41 | .tv_usec = now.tv_nsec/1000,
  19384. | ^~~~~~~
  19385. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19386. 41 | .tv_usec = now.tv_nsec/1000,
  19387. | ^~~
  19388. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19389. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19390. 39 | *tv = (struct timeval) {
  19391. | ^
  19392. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19393. 39 | *tv = (struct timeval) {
  19394. | ^~~
  19395. /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'
  19396. 40 | .tv_sec = now.tv_sec,
  19397. | ^~~~~~
  19398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19399. 40 | .tv_sec = now.tv_sec,
  19400. | ^~~
  19401. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19402. /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'
  19403. 41 | .tv_usec = now.tv_nsec/1000,
  19404. | ^~~~~~~
  19405. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19406. 41 | .tv_usec = now.tv_nsec/1000,
  19407. | ^~~
  19408. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19409. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19410. 39 | *tv = (struct timeval) {
  19411. | ^
  19412. /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]
  19413. 327 | getrawmonotonic(&ts);
  19414. | ^~~~~~~~~~~~~~~
  19415. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  19416. 325 | struct timespec ts = {0};
  19417. | ^~
  19418. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19419. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19420. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19421. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  19422. /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
  19423. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19424. | ^~~~~~~
  19425. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19426. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19427. 39 | *tv = (struct timeval) {
  19428. | ^~~
  19429. /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'
  19430. 40 | .tv_sec = now.tv_sec,
  19431. | ^~~~~~
  19432. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19433. 40 | .tv_sec = now.tv_sec,
  19434. | ^~~
  19435. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19436. /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'
  19437. 41 | .tv_usec = now.tv_nsec/1000,
  19438. | ^~~~~~~
  19439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19440. 41 | .tv_usec = now.tv_nsec/1000,
  19441. | ^~~
  19442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19443. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19444. 39 | *tv = (struct timeval) {
  19445. | ^
  19446. cc1: some warnings being treated as errors
  19447. 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
  19448. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.o
  19449. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19450. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19451. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19452. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  19453. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  19454. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19455. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19456. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19457. | ^~~~~~~~~
  19458. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19459. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19460. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19461. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19462. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  19463. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  19464. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19465. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19466. | ^~~~~~~~~
  19467. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19468. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19469. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19470. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  19471. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  19472. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19473. /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]
  19474. 578 | void *ptr = ioremap_nocache(phys, size);
  19475. | ^~~~~~~~~~~~~~~
  19476. | ioremap_cache
  19477. /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]
  19478. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19479. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19480. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.h:28,
  19481. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tlb_batch.c:24:
  19482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19483. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19484. 325 | struct timespec ts = {0};
  19485. | ^~~~~~~~
  19486. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19487. 325 | struct timespec ts = {0};
  19488. | ^
  19489. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19490. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19491. 325 | struct timespec ts = {0};
  19492. | ^~
  19493. cc1: some warnings being treated as errors
  19494. 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
  19495. /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]
  19496. 327 | getrawmonotonic(&ts);
  19497. | ^~~~~~~~~~~~~~~
  19498. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  19499. 325 | struct timespec ts = {0};
  19500. | ^~
  19501. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.o
  19502. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19503. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19504. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19505. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  19506. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  19507. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19508. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19509. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19510. | ^~~~~~~~~
  19511. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19512. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19513. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19514. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19515. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  19516. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  19517. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19518. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19519. | ^~~~~~~~~
  19520. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19521. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19522. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19523. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  19524. /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
  19525. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19526. | ^~~~~~~
  19527. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19528. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19529. 39 | *tv = (struct timeval) {
  19530. | ^~~
  19531. /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'
  19532. 40 | .tv_sec = now.tv_sec,
  19533. | ^~~~~~
  19534. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19535. 40 | .tv_sec = now.tv_sec,
  19536. | ^~~
  19537. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19538. /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'
  19539. 41 | .tv_usec = now.tv_nsec/1000,
  19540. | ^~~~~~~
  19541. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19542. 41 | .tv_usec = now.tv_nsec/1000,
  19543. | ^~~
  19544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19545. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19546. 39 | *tv = (struct timeval) {
  19547. | ^
  19548. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19549. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19550. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19551. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  19552. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  19553. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19554. /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]
  19555. 578 | void *ptr = ioremap_nocache(phys, size);
  19556. | ^~~~~~~~~~~~~~~
  19557. | ioremap_cache
  19558. /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]
  19559. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19560. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19561. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  19562. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  19563. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19564. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19565. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19566. | ^~~~~~~~~
  19567. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19568. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19569. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19570. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  19571. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  19572. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19573. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19574. | ^~~~~~~~~
  19575. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19576. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal_types.h:27,
  19577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:28,
  19578. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.c:24:
  19579. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19580. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19581. 325 | struct timespec ts = {0};
  19582. | ^~~~~~~~
  19583. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19584. 325 | struct timespec ts = {0};
  19585. | ^
  19586. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19587. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19588. 325 | struct timespec ts = {0};
  19589. | ^~
  19590. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19591. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19592. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  19593. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  19594. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19595. /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]
  19596. 578 | void *ptr = ioremap_nocache(phys, size);
  19597. | ^~~~~~~~~~~~~~~
  19598. | ioremap_cache
  19599. /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]
  19600. cc1: some warnings being treated as errors
  19601. 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
  19602. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.o
  19603. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19604. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  19605. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  19606. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19607. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19608. 325 | struct timespec ts = {0};
  19609. | ^~~~~~~~
  19610. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19611. 325 | struct timespec ts = {0};
  19612. | ^
  19613. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19614. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19615. 325 | struct timespec ts = {0};
  19616. | ^~
  19617. /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]
  19618. 327 | getrawmonotonic(&ts);
  19619. | ^~~~~~~~~~~~~~~
  19620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  19621. 325 | struct timespec ts = {0};
  19622. | ^~
  19623. /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]
  19624. 327 | getrawmonotonic(&ts);
  19625. | ^~~~~~~~~~~~~~~
  19626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  19627. 325 | struct timespec ts = {0};
  19628. | ^~
  19629. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19630. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  19631. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  19632. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19633. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19634. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19635. | ^~~~~~~~~
  19636. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19637. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19638. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  19639. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  19640. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19641. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19642. | ^~~~~~~~~
  19643. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19644. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19645. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  19646. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  19647. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19648. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19649. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19650. | ^~~~~~~~~
  19651. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19652. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19653. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19654. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  19655. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  19656. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19657. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19658. | ^~~~~~~~~
  19659. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19660. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  19661. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  19662. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19663. /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]
  19664. 578 | void *ptr = ioremap_nocache(phys, size);
  19665. | ^~~~~~~~~~~~~~~
  19666. | ioremap_cache
  19667. /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]
  19668. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19669. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19670. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  19671. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  19672. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19673. /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]
  19674. 578 | void *ptr = ioremap_nocache(phys, size);
  19675. | ^~~~~~~~~~~~~~~
  19676. | ioremap_cache
  19677. /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]
  19678. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19679. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  19680. /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
  19681. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19682. | ^~~~~~~
  19683. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19684. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19685. 39 | *tv = (struct timeval) {
  19686. | ^~~
  19687. /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'
  19688. 40 | .tv_sec = now.tv_sec,
  19689. | ^~~~~~
  19690. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19691. 40 | .tv_sec = now.tv_sec,
  19692. | ^~~
  19693. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19694. /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'
  19695. 41 | .tv_usec = now.tv_nsec/1000,
  19696. | ^~~~~~~
  19697. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19698. 41 | .tv_usec = now.tv_nsec/1000,
  19699. | ^~~
  19700. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19702. 39 | *tv = (struct timeval) {
  19703. | ^
  19704. cc1: some warnings being treated as errors
  19705. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.h:29,
  19706. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker.c:24:
  19707. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19708. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19709. 325 | struct timespec ts = {0};
  19710. | ^~~~~~~~
  19711. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19712. 325 | struct timespec ts = {0};
  19713. | ^
  19714. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19715. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19716. 325 | struct timespec ts = {0};
  19717. | ^~
  19718. 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
  19719. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19720. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.h:38,
  19721. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_thread_context.c:25:
  19722. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19723. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19724. 325 | struct timespec ts = {0};
  19725. | ^~~~~~~~
  19726. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19727. 325 | struct timespec ts = {0};
  19728. | ^
  19729. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19730. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19731. 325 | struct timespec ts = {0};
  19732. | ^~
  19733. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.o
  19734. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  19735. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19737. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  19738. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  19739. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c: In function 'create_procfs':
  19740. /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]
  19741. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  19742. | ^~~~
  19743. | |
  19744. | const struct file_operations *
  19745. /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'
  19746. 39 | proc_create_data(name, mode, parent, fops, __data)
  19747. | ^~~~
  19748. /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'
  19749. 54 | pushbuffer->procfs.info_file = NV_CREATE_PROC_FILE("pushbuffer", gpu->procfs.dir, pushbuffer_info, (void *)pushbuffer);
  19750. | ^~~~~~~~~~~~~~~~~~~
  19751. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  19752. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  19753. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19754. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19755. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  19756. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  19757. /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 *'
  19758. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  19759. | ^~~~~~~~~~~~~~~~
  19760. /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]
  19761. 327 | getrawmonotonic(&ts);
  19762. | ^~~~~~~~~~~~~~~
  19763. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  19764. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.h:28,
  19765. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pushbuffer.c:24:
  19766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19767. /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]
  19768. 331 | }
  19769. | ^
  19770. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  19771. 325 | struct timespec ts = {0};
  19772. | ^~
  19773. cc1: some warnings being treated as errors
  19774. /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]
  19775. 327 | getrawmonotonic(&ts);
  19776. | ^~~~~~~~~~~~~~~
  19777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  19778. 325 | struct timespec ts = {0};
  19779. | ^~
  19780. 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
  19781. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19782. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19783. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19784. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  19785. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19786. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19787. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19788. | ^~~~~~~~~
  19789. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19790. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19791. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19792. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19793. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  19794. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19795. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19796. | ^~~~~~~~~
  19797. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.o
  19798. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19799. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19800. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19801. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  19802. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19803. /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]
  19804. 578 | void *ptr = ioremap_nocache(phys, size);
  19805. | ^~~~~~~~~~~~~~~
  19806. | ioremap_cache
  19807. /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]
  19808. cc1: some warnings being treated as errors
  19809. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19810. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  19811. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  19812. /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
  19813. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19814. | ^~~~~~~
  19815. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19816. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19817. 39 | *tv = (struct timeval) {
  19818. | ^~~
  19819. /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'
  19820. 40 | .tv_sec = now.tv_sec,
  19821. | ^~~~~~
  19822. 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
  19823. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19824. 40 | .tv_sec = now.tv_sec,
  19825. | ^~~
  19826. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19827. /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'
  19828. 41 | .tv_usec = now.tv_nsec/1000,
  19829. | ^~~~~~~
  19830. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19831. 41 | .tv_usec = now.tv_nsec/1000,
  19832. | ^~~
  19833. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19834. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19835. 39 | *tv = (struct timeval) {
  19836. | ^
  19837. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.o
  19838. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19839. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19840. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler.c:24:
  19841. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19842. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19843. 325 | struct timespec ts = {0};
  19844. | ^~~~~~~~
  19845. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19846. 325 | struct timespec ts = {0};
  19847. | ^
  19848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19849. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19850. 325 | struct timespec ts = {0};
  19851. | ^~
  19852. /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]
  19853. 331 | }
  19854. | ^
  19855. cc1: some warnings being treated as errors
  19856. 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
  19857. /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]
  19858. 327 | getrawmonotonic(&ts);
  19859. | ^~~~~~~~~~~~~~~
  19860. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  19861. 325 | struct timespec ts = {0};
  19862. | ^~
  19863. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.o
  19864. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19865. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19866. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19867. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  19868. /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
  19869. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19870. | ^~~~~~~
  19871. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19872. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19873. 39 | *tv = (struct timeval) {
  19874. | ^~~
  19875. /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'
  19876. 40 | .tv_sec = now.tv_sec,
  19877. | ^~~~~~
  19878. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19879. 40 | .tv_sec = now.tv_sec,
  19880. | ^~~
  19881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19882. /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'
  19883. 41 | .tv_usec = now.tv_nsec/1000,
  19884. | ^~~~~~~
  19885. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19886. 41 | .tv_usec = now.tv_nsec/1000,
  19887. | ^~~
  19888. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19889. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19890. 39 | *tv = (struct timeval) {
  19891. | ^
  19892. cc1: some warnings being treated as errors
  19893. 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
  19894. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.o
  19895. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19896. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  19897. /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
  19898. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19899. | ^~~~~~~
  19900. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19902. 39 | *tv = (struct timeval) {
  19903. | ^~~
  19904. /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'
  19905. 40 | .tv_sec = now.tv_sec,
  19906. | ^~~~~~
  19907. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19908. 40 | .tv_sec = now.tv_sec,
  19909. | ^~~
  19910. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19911. /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'
  19912. 41 | .tv_usec = now.tv_nsec/1000,
  19913. | ^~~~~~~
  19914. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19915. 41 | .tv_usec = now.tv_nsec/1000,
  19916. | ^~~
  19917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19918. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19919. 39 | *tv = (struct timeval) {
  19920. | ^
  19921. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19922. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19923. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19924. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  19925. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  19926. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  19927. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  19928. | ^~~~~~~~~
  19929. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  19930. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19931. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19932. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19933. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  19934. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  19935. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  19936. | ^~~~~~~~~
  19937. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  19938. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19939. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19940. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  19941. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  19942. /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]
  19943. 578 | void *ptr = ioremap_nocache(phys, size);
  19944. | ^~~~~~~~~~~~~~~
  19945. | ioremap_cache
  19946. /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]
  19947. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19948. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19949. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19950. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  19951. /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
  19952. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19953. | ^~~~~~~
  19954. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19955. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19956. 39 | *tv = (struct timeval) {
  19957. | ^~~
  19958. /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'
  19959. 40 | .tv_sec = now.tv_sec,
  19960. | ^~~~~~
  19961. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  19962. 40 | .tv_sec = now.tv_sec,
  19963. | ^~~
  19964. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  19965. /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'
  19966. 41 | .tv_usec = now.tv_nsec/1000,
  19967. | ^~~~~~~
  19968. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  19969. 41 | .tv_usec = now.tv_nsec/1000,
  19970. | ^~~
  19971. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  19972. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  19973. 39 | *tv = (struct timeval) {
  19974. | ^
  19975. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19976. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19977. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_ce.c:24:
  19978. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  19979. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  19980. 325 | struct timespec ts = {0};
  19981. | ^~~~~~~~
  19982. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  19983. 325 | struct timespec ts = {0};
  19984. | ^
  19985. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  19986. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  19987. 325 | struct timespec ts = {0};
  19988. | ^~
  19989. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  19990. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  19991. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  19992. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  19993. /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
  19994. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  19995. | ^~~~~~~
  19996. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  19997. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  19998. 39 | *tv = (struct timeval) {
  19999. | ^~~
  20000. /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'
  20001. 40 | .tv_sec = now.tv_sec,
  20002. | ^~~~~~
  20003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20004. 40 | .tv_sec = now.tv_sec,
  20005. | ^~~
  20006. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20007. /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'
  20008. 41 | .tv_usec = now.tv_nsec/1000,
  20009. | ^~~~~~~
  20010. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20011. 41 | .tv_usec = now.tv_nsec/1000,
  20012. | ^~~
  20013. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20015. 39 | *tv = (struct timeval) {
  20016. | ^
  20017. /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]
  20018. 327 | getrawmonotonic(&ts);
  20019. | ^~~~~~~~~~~~~~~
  20020. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20021. 325 | struct timespec ts = {0};
  20022. | ^~
  20023. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20024. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  20025. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20026. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20027. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20028. | ^~~~~~~~~
  20029. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20030. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20031. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  20032. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20033. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20034. | ^~~~~~~~~
  20035. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20036. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  20037. /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
  20038. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20039. | ^~~~~~~
  20040. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20041. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20042. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  20043. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20044. /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]
  20045. 578 | void *ptr = ioremap_nocache(phys, size);
  20046. | ^~~~~~~~~~~~~~~
  20047. | ioremap_cache
  20048. /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]
  20049. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20050. 39 | *tv = (struct timeval) {
  20051. | ^~~
  20052. /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'
  20053. 40 | .tv_sec = now.tv_sec,
  20054. | ^~~~~~
  20055. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20056. 40 | .tv_sec = now.tv_sec,
  20057. | ^~~
  20058. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20059. /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'
  20060. 41 | .tv_usec = now.tv_nsec/1000,
  20061. | ^~~~~~~
  20062. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20063. 41 | .tv_usec = now.tv_nsec/1000,
  20064. | ^~~
  20065. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20066. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20067. 39 | *tv = (struct timeval) {
  20068. | ^
  20069. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_host.c:24:
  20070. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20071. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20072. 325 | struct timespec ts = {0};
  20073. | ^~~~~~~~
  20074. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20075. 325 | struct timespec ts = {0};
  20076. | ^
  20077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20079. 325 | struct timespec ts = {0};
  20080. | ^~
  20081. cc1: some warnings being treated as errors
  20082. 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
  20083. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.o
  20084. /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]
  20085. 327 | getrawmonotonic(&ts);
  20086. | ^~~~~~~~~~~~~~~
  20087. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20088. 325 | struct timespec ts = {0};
  20089. | ^~
  20090. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20091. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20092. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  20093. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20094. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20095. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20096. | ^~~~~~~~~
  20097. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20098. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20099. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20100. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  20101. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20102. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20103. | ^~~~~~~~~
  20104. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20105. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20106. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  20107. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20108. /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]
  20109. 578 | void *ptr = ioremap_nocache(phys, size);
  20110. | ^~~~~~~~~~~~~~~
  20111. | ioremap_cache
  20112. /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]
  20113. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20114. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kepler_mmu.c:39:
  20115. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20116. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20117. 325 | struct timespec ts = {0};
  20118. | ^~~~~~~~
  20119. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20120. 325 | struct timespec ts = {0};
  20121. | ^
  20122. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20123. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20124. 325 | struct timespec ts = {0};
  20125. | ^~
  20126. cc1: some warnings being treated as errors
  20127. /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]
  20128. 327 | getrawmonotonic(&ts);
  20129. | ^~~~~~~~~~~~~~~
  20130. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20131. 325 | struct timespec ts = {0};
  20132. | ^~
  20133. 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
  20134. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o
  20135. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20136. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20137. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20138. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  20139. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20141. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20142. | ^~~~~~~~~
  20143. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20144. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20145. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20146. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20147. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  20148. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20149. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20150. | ^~~~~~~~~
  20151. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20152. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20153. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20154. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  20155. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20156. /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]
  20157. 578 | void *ptr = ioremap_nocache(phys, size);
  20158. | ^~~~~~~~~~~~~~~
  20159. | ioremap_cache
  20160. /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]
  20161. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20162. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20163. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  20164. /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
  20165. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20166. | ^~~~~~~
  20167. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20168. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20169. 39 | *tv = (struct timeval) {
  20170. | ^~~
  20171. /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'
  20172. 40 | .tv_sec = now.tv_sec,
  20173. | ^~~~~~
  20174. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20175. 40 | .tv_sec = now.tv_sec,
  20176. | ^~~
  20177. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20178. /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'
  20179. 41 | .tv_usec = now.tv_nsec/1000,
  20180. | ^~~~~~~
  20181. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20182. 41 | .tv_usec = now.tv_nsec/1000,
  20183. | ^~~
  20184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20185. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20186. 39 | *tv = (struct timeval) {
  20187. | ^
  20188. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20189. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20190. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell.c:24:
  20191. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20193. 325 | struct timespec ts = {0};
  20194. | ^~~~~~~~
  20195. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20196. 325 | struct timespec ts = {0};
  20197. | ^
  20198. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20199. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20200. 325 | struct timespec ts = {0};
  20201. | ^~
  20202. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20203. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  20204. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20205. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20206. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20207. | ^~~~~~~~~
  20208. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20209. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20210. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  20211. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20212. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20213. | ^~~~~~~~~
  20214. cc1: some warnings being treated as errors
  20215. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20216. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  20217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20218. /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]
  20219. 578 | void *ptr = ioremap_nocache(phys, size);
  20220. | ^~~~~~~~~~~~~~~
  20221. | ioremap_cache
  20222. /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]
  20223. 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
  20224. /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]
  20225. 327 | getrawmonotonic(&ts);
  20226. | ^~~~~~~~~~~~~~~
  20227. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.o
  20228. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20229. 325 | struct timespec ts = {0};
  20230. | ^~
  20231. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_maxwell_host.c:24:
  20232. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20233. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20234. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20235. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20236. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  20237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20238. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20239. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20240. | ^~~~~~~~~
  20241. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20242. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20243. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20244. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20245. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  20246. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20247. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20248. | ^~~~~~~~~
  20249. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20250. 325 | struct timespec ts = {0};
  20251. | ^~~~~~~~
  20252. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20253. 325 | struct timespec ts = {0};
  20254. | ^
  20255. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20256. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20257. 325 | struct timespec ts = {0};
  20258. | ^~
  20259. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20260. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20261. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20262. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  20263. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20264. /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]
  20265. 578 | void *ptr = ioremap_nocache(phys, size);
  20266. | ^~~~~~~~~~~~~~~
  20267. | ioremap_cache
  20268. /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]
  20269. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20270. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20271. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20272. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  20273. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20274. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20275. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20276. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal.c:24:
  20277. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20279. 325 | struct timespec ts = {0};
  20280. | ^~~~~~~~
  20281. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20282. 325 | struct timespec ts = {0};
  20283. | ^
  20284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20285. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20286. 325 | struct timespec ts = {0};
  20287. | ^~
  20288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20289. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20290. | ^~~~~~~~~
  20291. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20292. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20293. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20294. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20295. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  20296. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20297. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20298. | ^~~~~~~~~
  20299. /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]
  20300. 327 | getrawmonotonic(&ts);
  20301. | ^~~~~~~~~~~~~~~
  20302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20303. 325 | struct timespec ts = {0};
  20304. | ^~
  20305. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20306. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20307. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20308. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  20309. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20310. /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]
  20311. 578 | void *ptr = ioremap_nocache(phys, size);
  20312. | ^~~~~~~~~~~~~~~
  20313. | ioremap_cache
  20314. /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]
  20315. cc1: some warnings being treated as errors
  20316. 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
  20317. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20318. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  20319. /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
  20320. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20321. | ^~~~~~~
  20322. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20323. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20324. 39 | *tv = (struct timeval) {
  20325. | ^~~
  20326. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.o
  20327. /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'
  20328. 40 | .tv_sec = now.tv_sec,
  20329. | ^~~~~~
  20330. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20331. 40 | .tv_sec = now.tv_sec,
  20332. | ^~~
  20333. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20334. /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'
  20335. 41 | .tv_usec = now.tv_nsec/1000,
  20336. | ^~~~~~~
  20337. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20338. 41 | .tv_usec = now.tv_nsec/1000,
  20339. | ^~~
  20340. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20341. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20342. 39 | *tv = (struct timeval) {
  20343. | ^
  20344. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20345. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20346. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_ce.c:24:
  20347. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20348. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20349. 325 | struct timespec ts = {0};
  20350. | ^~~~~~~~
  20351. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20352. 325 | struct timespec ts = {0};
  20353. | ^
  20354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20355. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20356. 325 | struct timespec ts = {0};
  20357. | ^~
  20358. /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]
  20359. 327 | getrawmonotonic(&ts);
  20360. | ^~~~~~~~~~~~~~~
  20361. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20362. 325 | struct timespec ts = {0};
  20363. | ^~
  20364. /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]
  20365. 327 | getrawmonotonic(&ts);
  20366. | ^~~~~~~~~~~~~~~
  20367. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20368. 325 | struct timespec ts = {0};
  20369. | ^~
  20370. cc1: some warnings being treated as errors
  20371. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20372. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  20373. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20374. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20375. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20376. | ^~~~~~~~~
  20377. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20378. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20379. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  20380. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20381. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20382. | ^~~~~~~~~
  20383. 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
  20384. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.o
  20385. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20386. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  20387. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20388. /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]
  20389. 578 | void *ptr = ioremap_nocache(phys, size);
  20390. | ^~~~~~~~~~~~~~~
  20391. | ioremap_cache
  20392. /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]
  20393. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20394. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  20395. /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
  20396. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20397. | ^~~~~~~
  20398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20399. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20400. 39 | *tv = (struct timeval) {
  20401. | ^~~
  20402. /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'
  20403. 40 | .tv_sec = now.tv_sec,
  20404. | ^~~~~~
  20405. cc1: some warnings being treated as errors
  20406. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20407. 40 | .tv_sec = now.tv_sec,
  20408. | ^~~
  20409. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20410. /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'
  20411. 41 | .tv_usec = now.tv_nsec/1000,
  20412. | ^~~~~~~
  20413. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20414. 41 | .tv_usec = now.tv_nsec/1000,
  20415. | ^~~
  20416. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20417. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20418. 39 | *tv = (struct timeval) {
  20419. | ^
  20420. 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
  20421. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o
  20422. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_host.c:24:
  20423. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20424. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20425. 325 | struct timespec ts = {0};
  20426. | ^~~~~~~~
  20427. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20428. 325 | struct timespec ts = {0};
  20429. | ^
  20430. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20431. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20432. 325 | struct timespec ts = {0};
  20433. | ^~
  20434. cc1: some warnings being treated as errors
  20435. 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
  20436. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o
  20437. /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]
  20438. 327 | getrawmonotonic(&ts);
  20439. | ^~~~~~~~~~~~~~~
  20440. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20441. 325 | struct timespec ts = {0};
  20442. | ^~
  20443. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20444. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  20445. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  20446. /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
  20447. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20448. | ^~~~~~~
  20449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20450. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20451. 39 | *tv = (struct timeval) {
  20452. | ^~~
  20453. /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'
  20454. 40 | .tv_sec = now.tv_sec,
  20455. | ^~~~~~
  20456. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20457. 40 | .tv_sec = now.tv_sec,
  20458. | ^~~
  20459. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20460. /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'
  20461. 41 | .tv_usec = now.tv_nsec/1000,
  20462. | ^~~~~~~
  20463. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20464. 41 | .tv_usec = now.tv_nsec/1000,
  20465. | ^~~
  20466. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20467. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20468. 39 | *tv = (struct timeval) {
  20469. | ^
  20470. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20471. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20472. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20473. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  20474. /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
  20475. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20476. | ^~~~~~~
  20477. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20478. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20479. 39 | *tv = (struct timeval) {
  20480. | ^~~
  20481. /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'
  20482. 40 | .tv_sec = now.tv_sec,
  20483. | ^~~~~~
  20484. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20485. 40 | .tv_sec = now.tv_sec,
  20486. | ^~~
  20487. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20488. /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'
  20489. 41 | .tv_usec = now.tv_nsec/1000,
  20490. | ^~~~~~~
  20491. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20492. 41 | .tv_usec = now.tv_nsec/1000,
  20493. | ^~~
  20494. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20495. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20496. 39 | *tv = (struct timeval) {
  20497. | ^
  20498. cc1: some warnings being treated as errors
  20499. 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
  20500. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.o
  20501. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20502. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20503. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  20504. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20505. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20506. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20507. | ^~~~~~~~~
  20508. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20509. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20510. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20511. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  20512. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20513. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20514. | ^~~~~~~~~
  20515. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20516. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  20517. /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
  20518. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20519. | ^~~~~~~
  20520. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20521. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20522. 39 | *tv = (struct timeval) {
  20523. | ^~~
  20524. /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'
  20525. 40 | .tv_sec = now.tv_sec,
  20526. | ^~~~~~
  20527. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20528. 40 | .tv_sec = now.tv_sec,
  20529. | ^~~
  20530. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20531. /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'
  20532. 41 | .tv_usec = now.tv_nsec/1000,
  20533. | ^~~~~~~
  20534. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20535. 41 | .tv_usec = now.tv_nsec/1000,
  20536. | ^~~
  20537. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20538. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20539. 39 | *tv = (struct timeval) {
  20540. | ^
  20541. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20542. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20543. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  20544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20545. /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]
  20546. 578 | void *ptr = ioremap_nocache(phys, size);
  20547. | ^~~~~~~~~~~~~~~
  20548. | ioremap_cache
  20549. /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]
  20550. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20551. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  20552. /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
  20553. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20554. | ^~~~~~~
  20555. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20556. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20557. 39 | *tv = (struct timeval) {
  20558. | ^~~
  20559. /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'
  20560. 40 | .tv_sec = now.tv_sec,
  20561. | ^~~~~~
  20562. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20563. 40 | .tv_sec = now.tv_sec,
  20564. | ^~~
  20565. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20566. /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'
  20567. 41 | .tv_usec = now.tv_nsec/1000,
  20568. | ^~~~~~~
  20569. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20570. 41 | .tv_usec = now.tv_nsec/1000,
  20571. | ^~~
  20572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20573. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20574. 39 | *tv = (struct timeval) {
  20575. | ^
  20576. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  20577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_mmu.c:36:
  20578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20579. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20580. 325 | struct timespec ts = {0};
  20581. | ^~~~~~~~
  20582. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20583. 325 | struct timespec ts = {0};
  20584. | ^
  20585. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20586. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20587. 325 | struct timespec ts = {0};
  20588. | ^~
  20589. /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]
  20590. 327 | getrawmonotonic(&ts);
  20591. | ^~~~~~~~~~~~~~~
  20592. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20593. 325 | struct timespec ts = {0};
  20594. | ^~
  20595. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20596. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  20597. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20598. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20599. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20600. | ^~~~~~~~~
  20601. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20602. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20603. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  20604. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20605. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20606. | ^~~~~~~~~
  20607. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20608. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  20609. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20610. cc1: some warnings being treated as errors
  20611. /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]
  20612. 578 | void *ptr = ioremap_nocache(phys, size);
  20613. | ^~~~~~~~~~~~~~~
  20614. | ioremap_cache
  20615. /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]
  20616. 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
  20617. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.o
  20618. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20619. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20620. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20621. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  20622. /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
  20623. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20624. | ^~~~~~~
  20625. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20626. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20627. 39 | *tv = (struct timeval) {
  20628. | ^~~
  20629. /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'
  20630. 40 | .tv_sec = now.tv_sec,
  20631. | ^~~~~~
  20632. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20633. 40 | .tv_sec = now.tv_sec,
  20634. | ^~~
  20635. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20636. /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'
  20637. 41 | .tv_usec = now.tv_nsec/1000,
  20638. | ^~~~~~~
  20639. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20640. 41 | .tv_usec = now.tv_nsec/1000,
  20641. | ^~~
  20642. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20643. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20644. 39 | *tv = (struct timeval) {
  20645. | ^
  20646. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
  20647. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20648. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20649. 325 | struct timespec ts = {0};
  20650. | ^~~~~~~~
  20651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20652. 325 | struct timespec ts = {0};
  20653. | ^
  20654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20655. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20656. 325 | struct timespec ts = {0};
  20657. | ^~
  20658. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20659. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  20660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20662. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20663. | ^~~~~~~~~
  20664. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20665. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20666. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  20667. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20668. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20669. | ^~~~~~~~~
  20670. /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]
  20671. 327 | getrawmonotonic(&ts);
  20672. | ^~~~~~~~~~~~~~~
  20673. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20674. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  20675. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20676. /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]
  20677. 578 | void *ptr = ioremap_nocache(phys, size);
  20678. | ^~~~~~~~~~~~~~~
  20679. | ioremap_cache
  20680. /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]
  20681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20682. 325 | struct timespec ts = {0};
  20683. | ^~
  20684. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_host.c:24:
  20685. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20686. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20687. 325 | struct timespec ts = {0};
  20688. | ^~~~~~~~
  20689. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20690. 325 | struct timespec ts = {0};
  20691. | ^
  20692. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20693. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20694. 325 | struct timespec ts = {0};
  20695. | ^~
  20696. /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]
  20697. 327 | getrawmonotonic(&ts);
  20698. | ^~~~~~~~~~~~~~~
  20699. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20700. 325 | struct timespec ts = {0};
  20701. | ^~
  20702. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20703. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  20704. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  20705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20706. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20707. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20708. | ^~~~~~~~~
  20709. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20710. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20711. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  20712. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  20713. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20714. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20715. | ^~~~~~~~~
  20716. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20717. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  20718. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  20719. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20720. /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]
  20721. 578 | void *ptr = ioremap_nocache(phys, size);
  20722. | ^~~~~~~~~~~~~~~
  20723. | ioremap_cache
  20724. /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]
  20725. cc1: some warnings being treated as errors
  20726. 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
  20727. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.o
  20728. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20729. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  20730. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  20731. /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
  20732. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20733. | ^~~~~~~
  20734. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20735. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20736. 39 | *tv = (struct timeval) {
  20737. | ^~~
  20738. /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'
  20739. 40 | .tv_sec = now.tv_sec,
  20740. | ^~~~~~
  20741. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20742. 40 | .tv_sec = now.tv_sec,
  20743. | ^~~
  20744. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20745. /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'
  20746. 41 | .tv_usec = now.tv_nsec/1000,
  20747. | ^~~~~~~
  20748. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20749. 41 | .tv_usec = now.tv_nsec/1000,
  20750. | ^~~
  20751. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20752. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20753. 39 | *tv = (struct timeval) {
  20754. | ^
  20755. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  20756. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_mmu.c:26:
  20757. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20758. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20759. 325 | struct timespec ts = {0};
  20760. | ^~~~~~~~
  20761. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20762. 325 | struct timespec ts = {0};
  20763. | ^
  20764. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20765. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20766. 325 | struct timespec ts = {0};
  20767. | ^~
  20768. /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]
  20769. 327 | getrawmonotonic(&ts);
  20770. | ^~~~~~~~~~~~~~~
  20771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20772. 325 | struct timespec ts = {0};
  20773. | ^~
  20774. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20775. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20776. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20777. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  20778. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20779. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20780. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20781. | ^~~~~~~~~
  20782. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20783. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20784. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20785. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20786. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  20787. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20788. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20789. | ^~~~~~~~~
  20790. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20791. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20792. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20793. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  20794. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20795. /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]
  20796. 578 | void *ptr = ioremap_nocache(phys, size);
  20797. | ^~~~~~~~~~~~~~~
  20798. | ioremap_cache
  20799. /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]
  20800. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20801. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  20802. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20803. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20804. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20805. | ^~~~~~~~~
  20806. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20807. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20808. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  20809. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20810. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20811. | ^~~~~~~~~
  20812. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20813. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20814. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta.c:24:
  20815. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20816. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20817. 325 | struct timespec ts = {0};
  20818. | ^~~~~~~~
  20819. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20820. 325 | struct timespec ts = {0};
  20821. | ^
  20822. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20823. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20824. 325 | struct timespec ts = {0};
  20825. | ^~
  20826. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20827. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  20828. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20829. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20830. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20831. | ^~~~~~~~~
  20832. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20833. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20834. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  20835. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20836. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20837. | ^~~~~~~~~
  20838. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20839. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  20840. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20841. /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]
  20842. 578 | void *ptr = ioremap_nocache(phys, size);
  20843. | ^~~~~~~~~~~~~~~
  20844. | ioremap_cache
  20845. /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]
  20846. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20847. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  20848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20849. /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]
  20850. 578 | void *ptr = ioremap_nocache(phys, size);
  20851. | ^~~~~~~~~~~~~~~
  20852. | ioremap_cache
  20853. /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]
  20854. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
  20855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20857. 325 | struct timespec ts = {0};
  20858. | ^~~~~~~~
  20859. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20860. 325 | struct timespec ts = {0};
  20861. | ^
  20862. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20863. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20864. 325 | struct timespec ts = {0};
  20865. | ^~
  20866. cc1: some warnings being treated as errors
  20867. /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]
  20868. 327 | getrawmonotonic(&ts);
  20869. | ^~~~~~~~~~~~~~~
  20870. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20871. 325 | struct timespec ts = {0};
  20872. | ^~
  20873. 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
  20874. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
  20875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20876. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20877. 325 | struct timespec ts = {0};
  20878. | ^~~~~~~~
  20879. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20880. 325 | struct timespec ts = {0};
  20881. | ^
  20882. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20883. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20884. 325 | struct timespec ts = {0};
  20885. | ^~
  20886. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.o
  20887. /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]
  20888. 327 | getrawmonotonic(&ts);
  20889. | ^~~~~~~~~~~~~~~
  20890. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20891. 325 | struct timespec ts = {0};
  20892. | ^~
  20893. /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]
  20894. 327 | getrawmonotonic(&ts);
  20895. | ^~~~~~~~~~~~~~~
  20896. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20897. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20898. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20899. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  20900. /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
  20901. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20902. | ^~~~~~~
  20903. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20904. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20905. 39 | *tv = (struct timeval) {
  20906. | ^~~
  20907. /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'
  20908. 40 | .tv_sec = now.tv_sec,
  20909. | ^~~~~~
  20910. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20911. 40 | .tv_sec = now.tv_sec,
  20912. | ^~~
  20913. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20914. /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'
  20915. 41 | .tv_usec = now.tv_nsec/1000,
  20916. | ^~~~~~~
  20917. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  20918. 41 | .tv_usec = now.tv_nsec/1000,
  20919. | ^~~
  20920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  20921. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  20922. 39 | *tv = (struct timeval) {
  20923. | ^
  20924. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  20925. 325 | struct timespec ts = {0};
  20926. | ^~
  20927. cc1: some warnings being treated as errors
  20928. 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
  20929. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.o
  20930. cc1: some warnings being treated as errors
  20931. 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
  20932. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.o
  20933. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20934. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20935. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20936. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  20937. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  20938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  20939. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  20940. | ^~~~~~~~~
  20941. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  20942. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20943. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20944. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20945. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  20946. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  20947. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  20948. | ^~~~~~~~~
  20949. cc1: some warnings being treated as errors
  20950. cc1: some warnings being treated as errors
  20951. 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
  20952. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  20953. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20954. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20955. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  20956. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  20957. /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]
  20958. 578 | void *ptr = ioremap_nocache(phys, size);
  20959. | ^~~~~~~~~~~~~~~
  20960. | ioremap_cache
  20961. /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]
  20962. 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
  20963. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.o
  20964. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.o
  20965. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  20966. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  20967. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing.c:24:
  20968. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  20969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  20970. 325 | struct timespec ts = {0};
  20971. | ^~~~~~~~
  20972. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  20973. 325 | struct timespec ts = {0};
  20974. | ^
  20975. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  20976. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  20977. 325 | struct timespec ts = {0};
  20978. | ^~
  20979. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  20980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  20981. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  20982. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  20983. /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
  20984. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  20985. | ^~~~~~~
  20986. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  20987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  20988. 39 | *tv = (struct timeval) {
  20989. | ^~~
  20990. /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'
  20991. 40 | .tv_sec = now.tv_sec,
  20992. | ^~~~~~
  20993. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  20994. 40 | .tv_sec = now.tv_sec,
  20995. | ^~~
  20996. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  20997. /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'
  20998. 41 | .tv_usec = now.tv_nsec/1000,
  20999. | ^~~~~~~
  21000. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  21001. 41 | .tv_usec = now.tv_nsec/1000,
  21002. | ^~~
  21003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  21004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  21005. 39 | *tv = (struct timeval) {
  21006. | ^
  21007. /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]
  21008. 327 | getrawmonotonic(&ts);
  21009. | ^~~~~~~~~~~~~~~
  21010. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  21011. 325 | struct timespec ts = {0};
  21012. | ^~
  21013. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  21014. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21015. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  21016. /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
  21017. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  21018. | ^~~~~~~
  21019. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  21020. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  21021. 39 | *tv = (struct timeval) {
  21022. | ^~~
  21023. /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'
  21024. 40 | .tv_sec = now.tv_sec,
  21025. | ^~~~~~
  21026. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  21027. 40 | .tv_sec = now.tv_sec,
  21028. | ^~~
  21029. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  21030. /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'
  21031. 41 | .tv_usec = now.tv_nsec/1000,
  21032. | ^~~~~~~
  21033. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  21034. 41 | .tv_usec = now.tv_nsec/1000,
  21035. | ^~~
  21036. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  21037. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  21038. 39 | *tv = (struct timeval) {
  21039. | ^
  21040. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21041. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  21042. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  21043. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  21044. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  21045. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  21046. | ^~~~~~~~~
  21047. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  21048. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21049. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  21050. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  21051. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  21052. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  21053. | ^~~~~~~~~
  21054. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  21055. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21056. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  21057. /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
  21058. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  21059. | ^~~~~~~
  21060. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  21061. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  21062. 39 | *tv = (struct timeval) {
  21063. | ^~~
  21064. /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'
  21065. 40 | .tv_sec = now.tv_sec,
  21066. | ^~~~~~
  21067. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  21068. 40 | .tv_sec = now.tv_sec,
  21069. | ^~~
  21070. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  21071. /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'
  21072. 41 | .tv_usec = now.tv_nsec/1000,
  21073. | ^~~~~~~
  21074. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  21075. 41 | .tv_usec = now.tv_nsec/1000,
  21076. | ^~~
  21077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  21078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  21079. 39 | *tv = (struct timeval) {
  21080. | ^
  21081. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21082. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  21083. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  21084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  21085. /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]
  21086. 578 | void *ptr = ioremap_nocache(phys, size);
  21087. | ^~~~~~~~~~~~~~~
  21088. | ioremap_cache
  21089. /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]
  21090. cc1: some warnings being treated as errors
  21091. 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
  21092. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.o
  21093. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  21094. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_mmu.c:26:
  21095. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  21096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  21097. 325 | struct timespec ts = {0};
  21098. | ^~~~~~~~
  21099. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  21100. 325 | struct timespec ts = {0};
  21101. | ^
  21102. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  21103. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  21104. 325 | struct timespec ts = {0};
  21105. | ^~
  21106. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  21107. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  21108. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  21109. /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
  21110. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  21111. | ^~~~~~~
  21112. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  21113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  21114. 39 | *tv = (struct timeval) {
  21115. | ^~~
  21116. /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'
  21117. 40 | .tv_sec = now.tv_sec,
  21118. | ^~~~~~
  21119. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  21120. 40 | .tv_sec = now.tv_sec,
  21121. | ^~~
  21122. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  21123. /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'
  21124. 41 | .tv_usec = now.tv_nsec/1000,
  21125. | ^~~~~~~
  21126. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  21127. 41 | .tv_usec = now.tv_nsec/1000,
  21128. | ^~~
  21129. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  21130. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  21131. 39 | *tv = (struct timeval) {
  21132. | ^
  21133. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  21134. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21135. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  21136. /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
  21137. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  21138. | ^~~~~~~
  21139. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  21140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  21141. 39 | *tv = (struct timeval) {
  21142. | ^~~
  21143. /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'
  21144. 40 | .tv_sec = now.tv_sec,
  21145. | ^~~~~~
  21146. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  21147. 40 | .tv_sec = now.tv_sec,
  21148. | ^~~
  21149. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  21150. /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'
  21151. 41 | .tv_usec = now.tv_nsec/1000,
  21152. | ^~~~~~~
  21153. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  21154. 41 | .tv_usec = now.tv_nsec/1000,
  21155. | ^~~
  21156. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  21157. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  21158. 39 | *tv = (struct timeval) {
  21159. | ^
  21160. /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]
  21161. 327 | getrawmonotonic(&ts);
  21162. | ^~~~~~~~~~~~~~~
  21163. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  21164. 325 | struct timespec ts = {0};
  21165. | ^~
  21166. cc1: some warnings being treated as errors
  21167. 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
  21168. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.o
  21169. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21170. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21171. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  21172. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  21173. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  21174. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  21175. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  21176. | ^~~~~~~~~
  21177. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  21178. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21179. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21180. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  21181. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  21182. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  21183. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  21184. | ^~~~~~~~~
  21185. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21186. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21187. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  21188. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  21189. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  21190. /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]
  21191. 578 | void *ptr = ioremap_nocache(phys, size);
  21192. | ^~~~~~~~~~~~~~~
  21193. | ioremap_cache
  21194. /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]
  21195. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  21196. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21197. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  21198. /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
  21199. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  21200. | ^~~~~~~
  21201. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  21202. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  21203. 39 | *tv = (struct timeval) {
  21204. | ^~~
  21205. /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'
  21206. 40 | .tv_sec = now.tv_sec,
  21207. | ^~~~~~
  21208. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  21209. 40 | .tv_sec = now.tv_sec,
  21210. | ^~~
  21211. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  21212. /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'
  21213. 41 | .tv_usec = now.tv_nsec/1000,
  21214. | ^~~~~~~
  21215. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  21216. 41 | .tv_usec = now.tv_nsec/1000,
  21217. | ^~~
  21218. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  21219. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  21220. 39 | *tv = (struct timeval) {
  21221. | ^
  21222. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21223. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  21224. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_turing_host.c:24:
  21225. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  21226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  21227. 325 | struct timespec ts = {0};
  21228. | ^~~~~~~~
  21229. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  21230. 325 | struct timespec ts = {0};
  21231. | ^
  21232. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  21233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  21234. 325 | struct timespec ts = {0};
  21235. | ^~
  21236. /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]
  21237. 327 | getrawmonotonic(&ts);
  21238. | ^~~~~~~~~~~~~~~
  21239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  21240. 325 | struct timespec ts = {0};
  21241. | ^~
  21242. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21243. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21244. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21245. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21246. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  21247. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  21248. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  21249. | ^~~~~~~~~
  21250. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  21251. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21252. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21253. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21254. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21255. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  21256. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  21257. | ^~~~~~~~~
  21258. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21259. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21260. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21261. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21262. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  21263. /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]
  21264. 578 | void *ptr = ioremap_nocache(phys, size);
  21265. | ^~~~~~~~~~~~~~~
  21266. | ioremap_cache
  21267. /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]
  21268. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  21269. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21270. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  21271. /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
  21272. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  21273. | ^~~~~~~
  21274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  21275. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  21276. 39 | *tv = (struct timeval) {
  21277. | ^~~
  21278. /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'
  21279. 40 | .tv_sec = now.tv_sec,
  21280. | ^~~~~~
  21281. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  21282. 40 | .tv_sec = now.tv_sec,
  21283. | ^~~
  21284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  21285. /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'
  21286. 41 | .tv_usec = now.tv_nsec/1000,
  21287. | ^~~~~~~
  21288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  21289. 41 | .tv_usec = now.tv_nsec/1000,
  21290. | ^~~
  21291. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  21292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  21293. 39 | *tv = (struct timeval) {
  21294. | ^
  21295. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21296. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21297. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21298. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  21299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  21300. 325 | struct timespec ts = {0};
  21301. | ^~~~~~~~
  21302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  21303. 325 | struct timespec ts = {0};
  21304. | ^
  21305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  21306. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  21307. 325 | struct timespec ts = {0};
  21308. | ^~
  21309. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21310. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21311. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  21312. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  21313. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  21314. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  21315. | ^~~~~~~~~
  21316. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  21317. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21318. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21319. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  21320. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  21321. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  21322. | ^~~~~~~~~
  21323. /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]
  21324. 327 | getrawmonotonic(&ts);
  21325. | ^~~~~~~~~~~~~~~
  21326. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  21327. 325 | struct timespec ts = {0};
  21328. | ^~
  21329. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21330. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21331. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  21332. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  21333. /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]
  21334. 578 | void *ptr = ioremap_nocache(phys, size);
  21335. | ^~~~~~~~~~~~~~~
  21336. | ioremap_cache
  21337. /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]
  21338. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21339. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.c:24:
  21340. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  21341. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  21342. 325 | struct timespec ts = {0};
  21343. | ^~~~~~~~
  21344. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  21345. 325 | struct timespec ts = {0};
  21346. | ^
  21347. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  21348. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  21349. 325 | struct timespec ts = {0};
  21350. | ^~
  21351. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21352. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21353. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  21354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  21355. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  21356. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  21357. | ^~~~~~~~~
  21358. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  21359. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21360. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21361. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  21362. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  21363. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  21364. | ^~~~~~~~~
  21365. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21366. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21367. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  21368. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  21369. /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]
  21370. 578 | void *ptr = ioremap_nocache(phys, size);
  21371. | ^~~~~~~~~~~~~~~
  21372. | ioremap_cache
  21373. /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]
  21374. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21375. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  21376. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  21377. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  21378. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  21379. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  21380. | ^~~~~~~~~
  21381. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  21382. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21383. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  21384. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  21385. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  21386. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  21387. | ^~~~~~~~~
  21388. /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]
  21389. 327 | getrawmonotonic(&ts);
  21390. | ^~~~~~~~~~~~~~~
  21391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  21392. 325 | struct timespec ts = {0};
  21393. | ^~
  21394. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21395. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21396. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  21397. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  21398. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21399. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.c:24:
  21400. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  21401. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  21402. 325 | struct timespec ts = {0};
  21403. | ^~~~~~~~
  21404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  21405. 325 | struct timespec ts = {0};
  21406. | ^
  21407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  21408. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21409. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  21410. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  21411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  21412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  21413. 325 | struct timespec ts = {0};
  21414. | ^~
  21415. /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]
  21416. 578 | void *ptr = ioremap_nocache(phys, size);
  21417. | ^~~~~~~~~~~~~~~
  21418. | ioremap_cache
  21419. /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]
  21420. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  21421. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  21422. | ^~~~~~~~~
  21423. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  21424. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21425. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21426. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  21427. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  21428. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  21429. | ^~~~~~~~~
  21430. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21431. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21432. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  21433. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  21434. /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]
  21435. 578 | void *ptr = ioremap_nocache(phys, size);
  21436. | ^~~~~~~~~~~~~~~
  21437. | ioremap_cache
  21438. /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]
  21439. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  21440. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  21441. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  21442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  21443. 325 | struct timespec ts = {0};
  21444. | ^~~~~~~~
  21445. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  21446. 325 | struct timespec ts = {0};
  21447. | ^
  21448. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  21449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  21450. 325 | struct timespec ts = {0};
  21451. | ^~
  21452. cc1: some warnings being treated as errors
  21453. 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
  21454. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21455. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.c:162:
  21456. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  21457. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  21458. 325 | struct timespec ts = {0};
  21459. | ^~~~~~~~
  21460. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  21461. 325 | struct timespec ts = {0};
  21462. | ^
  21463. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  21464. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  21465. 325 | struct timespec ts = {0};
  21466. | ^~
  21467. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.o
  21468. /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]
  21469. 327 | getrawmonotonic(&ts);
  21470. | ^~~~~~~~~~~~~~~
  21471. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  21472. 325 | struct timespec ts = {0};
  21473. | ^~
  21474. /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]
  21475. 327 | getrawmonotonic(&ts);
  21476. | ^~~~~~~~~~~~~~~
  21477. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  21478. 325 | struct timespec ts = {0};
  21479. | ^~
  21480. cc1: some warnings being treated as errors
  21481. 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
  21482. /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]
  21483. 327 | getrawmonotonic(&ts);
  21484. | ^~~~~~~~~~~~~~~
  21485. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  21486. 325 | struct timespec ts = {0};
  21487. | ^~
  21488. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.o
  21489. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21490. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21491. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21492. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21493. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21494. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  21495. /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'?
  21496. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  21497. | ^~~~~~~~
  21498. /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'
  21499. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  21500. | ^~~~~~~~
  21501. /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'
  21502. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  21503. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  21504. /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'?
  21505. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  21506. | ^~~~~~~~
  21507. /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'
  21508. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  21509. | ^~~~~~~~
  21510. /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'
  21511. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  21512. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  21513. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  21514. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21515. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21516. /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]
  21517. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  21518. | ^~~~
  21519. | |
  21520. | int
  21521. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  21522. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  21523. | ^~~~
  21524. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  21525. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  21526. | ^~~~~~~~~~~~~~~
  21527. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  21528. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  21529. | ^~~~~~~~~~
  21530. /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'
  21531. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  21532. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21533. /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'
  21534. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  21535. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  21536. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21537. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21538. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21539. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21540. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21541. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21542. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21543. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21544. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21545. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21546. /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'
  21547. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  21548. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21549. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  21550. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21551. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21552. /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]
  21553. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  21554. | ^~~~
  21555. | |
  21556. | int
  21557. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  21558. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  21559. | ^~~~
  21560. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  21561. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  21562. | ^~~~~~~~~~~~~~~
  21563. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  21564. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  21565. | ^~~~~~~~~~
  21566. /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'
  21567. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  21568. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21569. /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'
  21570. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  21571. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  21572. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21573. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21574. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21575. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21576. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21577. /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'
  21578. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  21579. | ~~~~~~^~~~
  21580. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_is_valid_vma_range':
  21581. /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'?
  21582. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  21583. | ^~~~~~~~
  21584. /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'
  21585. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  21586. | ^~~~~~~~
  21587. /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'
  21588. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  21589. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  21590. /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'?
  21591. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  21592. | ^~~~~~~~
  21593. /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'
  21594. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  21595. | ^~~~~~~~
  21596. /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'
  21597. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  21598. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  21599. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  21600. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21601. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21602. /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]
  21603. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  21604. | ^~~~
  21605. | |
  21606. | int
  21607. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  21608. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  21609. | ^~~~
  21610. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  21611. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  21612. | ^~~~~~~~~~~~~~~
  21613. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  21614. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  21615. | ^~~~~~~~~~
  21616. /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'
  21617. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  21618. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21619. /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'
  21620. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  21621. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  21622. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21623. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21624. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21625. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21626. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21627. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21628. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21629. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21630. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21631. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21632. /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'
  21633. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  21634. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21635. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  21636. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21637. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21638. /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]
  21639. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  21640. | ^~~~
  21641. | |
  21642. | int
  21643. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  21644. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  21645. | ^~~~
  21646. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  21647. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  21648. | ^~~~~~~~~~~~~~~
  21649. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  21650. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  21651. | ^~~~~~~~~~
  21652. /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'
  21653. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  21654. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21655. /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'
  21656. 42 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  21657. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  21658. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21659. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21660. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21661. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21662. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21663. /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'
  21664. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  21665. | ~~~~~~^~~~
  21666. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_api_set_preferred_location':
  21667. /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'?
  21668. 235 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21669. | ^~~~~~~~
  21670. /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'
  21671. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  21672. | ^~~~~~~~
  21673. /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'?
  21674. 235 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21675. | ^~~~~~~~
  21676. /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'
  21677. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  21678. | ^~~~~~~~
  21679. /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]
  21680. 544 | down_read(_sem); \
  21681. | ^~~~
  21682. | |
  21683. | int
  21684. /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'
  21685. 235 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21686. | ^~~~~~~~~~~~~~~~~~~~~~
  21687. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21688. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21689. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21690. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21691. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21692. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21693. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21694. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21695. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21696. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21697. /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'
  21698. 125 | extern void down_read(struct rw_semaphore *sem);
  21699. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21700. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21701. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21702. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21703. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21704. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21705. /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'?
  21706. 308 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21707. | ^~~~~~~~
  21708. /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'
  21709. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  21710. | ^~~~~~~~
  21711. /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'?
  21712. 308 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21713. | ^~~~~~~~
  21714. /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'
  21715. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  21716. | ^~~~~~~~
  21717. /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]
  21718. 549 | up_read(_sem); \
  21719. | ^~~~
  21720. | |
  21721. | int
  21722. /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'
  21723. 308 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21724. | ^~~~~~~~~~~~~~~~~~~~
  21725. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21726. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21727. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21728. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21729. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21730. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21731. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21732. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21733. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21734. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21735. /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'
  21736. 147 | extern void up_read(struct rw_semaphore *sem);
  21737. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21738. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21739. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21740. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21741. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21742. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21743. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'uvm_api_unset_preferred_location':
  21744. /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'?
  21745. 320 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21746. | ^~~~~~~~
  21747. /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'
  21748. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  21749. | ^~~~~~~~
  21750. /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'?
  21751. 320 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21752. | ^~~~~~~~
  21753. /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'
  21754. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  21755. | ^~~~~~~~
  21756. /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]
  21757. 544 | down_read(_sem); \
  21758. | ^~~~
  21759. | |
  21760. | int
  21761. /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'
  21762. 320 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21763. | ^~~~~~~~~~~~~~~~~~~~~~
  21764. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21765. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21766. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21767. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21768. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21769. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21770. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21771. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21772. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21773. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21774. /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'
  21775. 125 | extern void down_read(struct rw_semaphore *sem);
  21776. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21777. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21778. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21779. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21780. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21781. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21782. /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'?
  21783. 331 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21784. | ^~~~~~~~
  21785. /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'
  21786. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  21787. | ^~~~~~~~
  21788. /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'?
  21789. 331 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21790. | ^~~~~~~~
  21791. /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'
  21792. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  21793. | ^~~~~~~~
  21794. /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]
  21795. 549 | up_read(_sem); \
  21796. | ^~~~
  21797. | |
  21798. | int
  21799. /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'
  21800. 331 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21801. | ^~~~~~~~~~~~~~~~~~~~
  21802. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21803. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21804. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21805. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21806. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21807. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21808. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21809. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21810. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21811. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21812. /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'
  21813. 147 | extern void up_read(struct rw_semaphore *sem);
  21814. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21815. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21816. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21817. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21818. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21819. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21820. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'accessed_by_set':
  21821. /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'?
  21822. 412 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21823. | ^~~~~~~~
  21824. /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'
  21825. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  21826. | ^~~~~~~~
  21827. /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'?
  21828. 412 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21829. | ^~~~~~~~
  21830. /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'
  21831. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  21832. | ^~~~~~~~
  21833. /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]
  21834. 544 | down_read(_sem); \
  21835. | ^~~~
  21836. | |
  21837. | int
  21838. /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'
  21839. 412 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21840. | ^~~~~~~~~~~~~~~~~~~~~~
  21841. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21842. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21843. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21844. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21845. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21846. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21847. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21848. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21849. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21850. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21851. /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'
  21852. 125 | extern void down_read(struct rw_semaphore *sem);
  21853. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21854. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21855. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21856. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21857. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21858. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21859. /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'?
  21860. 476 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21861. | ^~~~~~~~
  21862. /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'
  21863. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  21864. | ^~~~~~~~
  21865. /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'?
  21866. 476 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21867. | ^~~~~~~~
  21868. /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'
  21869. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  21870. | ^~~~~~~~
  21871. /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]
  21872. 549 | up_read(_sem); \
  21873. | ^~~~
  21874. | |
  21875. | int
  21876. /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'
  21877. 476 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21878. | ^~~~~~~~~~~~~~~~~~~~
  21879. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21880. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21881. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21882. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21883. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21884. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21885. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21886. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21887. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21888. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21889. /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'
  21890. 147 | extern void up_read(struct rw_semaphore *sem);
  21891. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21892. cc1: some warnings being treated as errors
  21893. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21894. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21895. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21896. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21897. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21898. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c: In function 'read_duplication_set':
  21899. /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'?
  21900. 659 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21901. | ^~~~~~~~
  21902. /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'
  21903. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  21904. | ^~~~~~~~
  21905. /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'?
  21906. 659 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21907. | ^~~~~~~~
  21908. /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'
  21909. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  21910. | ^~~~~~~~
  21911. /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]
  21912. 544 | down_read(_sem); \
  21913. | ^~~~
  21914. | |
  21915. | int
  21916. /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'
  21917. 659 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  21918. | ^~~~~~~~~~~~~~~~~~~~~~
  21919. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21920. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21921. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21922. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21923. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21924. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21925. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21926. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21927. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21928. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21929. /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'
  21930. 125 | extern void down_read(struct rw_semaphore *sem);
  21931. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21932. 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
  21933. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  21934. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  21935. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  21936. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  21937. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21938. /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'?
  21939. 713 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21940. | ^~~~~~~~
  21941. /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'
  21942. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  21943. | ^~~~~~~~
  21944. /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'?
  21945. 713 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21946. | ^~~~~~~~
  21947. /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'
  21948. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  21949. | ^~~~~~~~
  21950. /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]
  21951. 549 | up_read(_sem); \
  21952. | ^~~~
  21953. | |
  21954. | int
  21955. /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'
  21956. 713 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  21957. | ^~~~~~~~~~~~~~~~~~~~
  21958. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  21959. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  21960. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  21961. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  21962. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  21963. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  21964. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21965. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  21966. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:27,
  21967. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_policy.c:25:
  21968. /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'
  21969. 147 | extern void up_read(struct rw_semaphore *sem);
  21970. | ~~~~~~~~~~~~~~~~~~~~~^~~
  21971. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21972. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21973. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  21974. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  21975. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  21976. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  21977. | ^~~~~~~~~
  21978. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  21979. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21981. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  21982. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  21983. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  21984. | ^~~~~~~~~
  21985. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.o
  21986. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  21987. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21988. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  21989. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  21990. /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]
  21991. 578 | void *ptr = ioremap_nocache(phys, size);
  21992. | ^~~~~~~~~~~~~~~
  21993. | ioremap_cache
  21994. /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]
  21995. cc1: some warnings being treated as errors
  21996. 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
  21997. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  21998. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  21999. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  22000. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  22001. 325 | struct timespec ts = {0};
  22002. | ^~~~~~~~
  22003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  22004. 325 | struct timespec ts = {0};
  22005. | ^
  22006. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  22007. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  22008. 325 | struct timespec ts = {0};
  22009. | ^~
  22010. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.o
  22011. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  22012. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22013. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  22014. /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
  22015. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  22016. | ^~~~~~~
  22017. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  22018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  22019. 39 | *tv = (struct timeval) {
  22020. | ^~~
  22021. /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'
  22022. 40 | .tv_sec = now.tv_sec,
  22023. | ^~~~~~
  22024. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  22025. 40 | .tv_sec = now.tv_sec,
  22026. | ^~~
  22027. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  22028. /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'
  22029. 41 | .tv_usec = now.tv_nsec/1000,
  22030. | ^~~~~~~
  22031. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  22032. 41 | .tv_usec = now.tv_nsec/1000,
  22033. | ^~~
  22034. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  22035. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  22036. 39 | *tv = (struct timeval) {
  22037. | ^
  22038. /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]
  22039. 327 | getrawmonotonic(&ts);
  22040. | ^~~~~~~~~~~~~~~
  22041. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  22042. 325 | struct timespec ts = {0};
  22043. | ^~
  22044. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  22045. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  22046. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  22047. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  22048. /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'?
  22049. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22050. | ^~~~~~~~
  22051. /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'
  22052. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22053. | ^~~~~~~~
  22054. /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'
  22055. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22056. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22057. /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'?
  22058. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22059. | ^~~~~~~~
  22060. /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'
  22061. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22062. | ^~~~~~~~
  22063. /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'
  22064. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22065. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22066. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:33,
  22067. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  22068. /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]
  22069. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22070. | ^~~~
  22071. | |
  22072. | int
  22073. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22074. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22075. | ^~~~
  22076. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22077. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22078. | ^~~~~~~~~~~~~~~
  22079. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22080. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22081. | ^~~~~~~~~~
  22082. /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'
  22083. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22084. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22085. /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'
  22086. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22087. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22088. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  22089. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22090. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  22091. /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
  22092. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  22093. | ^~~~~~~
  22094. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  22095. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  22096. 39 | *tv = (struct timeval) {
  22097. | ^~~
  22098. /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'
  22099. 40 | .tv_sec = now.tv_sec,
  22100. | ^~~~~~
  22101. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  22102. 40 | .tv_sec = now.tv_sec,
  22103. | ^~~
  22104. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  22105. /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'
  22106. 41 | .tv_usec = now.tv_nsec/1000,
  22107. | ^~~~~~~
  22108. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  22109. 41 | .tv_usec = now.tv_nsec/1000,
  22110. | ^~~
  22111. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  22112. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  22113. 39 | *tv = (struct timeval) {
  22114. | ^
  22115. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22116. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22117. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22118. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22119. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22120. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22121. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22122. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  22123. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  22124. /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'
  22125. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  22126. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22127. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:33,
  22128. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  22129. /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]
  22130. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22131. | ^~~~
  22132. | |
  22133. | int
  22134. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22135. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22136. | ^~~~
  22137. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22138. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22139. | ^~~~~~~~~~~~~~~
  22140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22141. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22142. | ^~~~~~~~~~
  22143. /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'
  22144. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22145. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22146. /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'
  22147. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22148. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22149. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  22150. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  22151. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem.c:24:
  22152. /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'
  22153. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  22154. | ~~~~~~^~~~
  22155. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22156. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22157. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  22159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  22160. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  22161. | ^~~~~~~~~
  22162. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  22163. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22164. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22165. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22166. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  22167. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  22168. | ^~~~~~~~~
  22169. cc1: some warnings being treated as errors
  22170. 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
  22171. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22172. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22173. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22174. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  22175. /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]
  22176. 578 | void *ptr = ioremap_nocache(phys, size);
  22177. | ^~~~~~~~~~~~~~~
  22178. | ioremap_cache
  22179. /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]
  22180. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.o
  22181. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22182. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22183. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  22184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  22185. 325 | struct timespec ts = {0};
  22186. | ^~~~~~~~
  22187. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  22188. 325 | struct timespec ts = {0};
  22189. | ^
  22190. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  22191. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  22192. 325 | struct timespec ts = {0};
  22193. | ^~
  22194. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  22195. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22196. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  22197. /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
  22198. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  22199. | ^~~~~~~
  22200. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  22201. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  22202. 39 | *tv = (struct timeval) {
  22203. | ^~~
  22204. /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'
  22205. 40 | .tv_sec = now.tv_sec,
  22206. | ^~~~~~
  22207. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  22208. 40 | .tv_sec = now.tv_sec,
  22209. | ^~~
  22210. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  22211. /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'
  22212. 41 | .tv_usec = now.tv_nsec/1000,
  22213. | ^~~~~~~
  22214. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  22215. 41 | .tv_usec = now.tv_nsec/1000,
  22216. | ^~~
  22217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  22218. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  22219. 39 | *tv = (struct timeval) {
  22220. | ^
  22221. /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]
  22222. 327 | getrawmonotonic(&ts);
  22223. | ^~~~~~~~~~~~~~~
  22224. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  22225. 325 | struct timespec ts = {0};
  22226. | ^~
  22227. /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]
  22228. 331 | }
  22229. | ^
  22230. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  22231. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  22232. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  22233. /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
  22234. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  22235. | ^~~~~~~
  22236. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  22237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  22238. 39 | *tv = (struct timeval) {
  22239. | ^~~
  22240. /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'
  22241. 40 | .tv_sec = now.tv_sec,
  22242. | ^~~~~~
  22243. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  22244. 40 | .tv_sec = now.tv_sec,
  22245. | ^~~
  22246. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  22247. /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'
  22248. 41 | .tv_usec = now.tv_nsec/1000,
  22249. | ^~~~~~~
  22250. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  22251. 41 | .tv_usec = now.tv_nsec/1000,
  22252. | ^~~
  22253. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  22254. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  22255. 39 | *tv = (struct timeval) {
  22256. | ^
  22257. cc1: some warnings being treated as errors
  22258. 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
  22259. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.o
  22260. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  22261. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  22262. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  22263. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  22264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  22265. /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'?
  22266. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22267. | ^~~~~~~~
  22268. /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'
  22269. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22270. | ^~~~~~~~
  22271. /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'
  22272. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22273. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22274. /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'?
  22275. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22276. | ^~~~~~~~
  22277. /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'
  22278. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22279. | ^~~~~~~~
  22280. /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'
  22281. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22282. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22283. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22284. /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]
  22285. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22286. | ^~~~
  22287. | |
  22288. | int
  22289. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22290. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22291. | ^~~~
  22292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22293. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22294. | ^~~~~~~~~~~~~~~
  22295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22296. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22297. | ^~~~~~~~~~
  22298. /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'
  22299. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22300. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22301. /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'
  22302. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22303. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22304. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22305. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22306. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22307. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22308. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22309. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22310. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22311. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22312. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22313. /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'
  22314. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  22315. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22316. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22317. /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]
  22318. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22319. | ^~~~
  22320. | |
  22321. | int
  22322. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22323. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22324. | ^~~~
  22325. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22326. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22327. | ^~~~~~~~~~~~~~~
  22328. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22329. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22330. | ^~~~~~~~~~
  22331. /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'
  22332. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22333. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22334. /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'
  22335. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22336. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22337. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  22338. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  22339. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  22340. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  22341. /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'
  22342. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  22343. | ~~~~~~^~~~
  22344. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_migrate':
  22345. /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'?
  22346. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  22347. | ^~~~~~~~
  22348. /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'
  22349. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22350. | ^~~~~~~~
  22351. /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'
  22352. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  22353. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22354. /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'?
  22355. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  22356. | ^~~~~~~~
  22357. /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'
  22358. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22359. | ^~~~~~~~
  22360. /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'
  22361. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  22362. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22363. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22364. /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]
  22365. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22366. | ^~~~
  22367. | |
  22368. | int
  22369. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22370. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22371. | ^~~~
  22372. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22373. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22374. | ^~~~~~~~~~~~~~~
  22375. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22376. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22377. | ^~~~~~~~~~
  22378. /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'
  22379. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22380. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22381. /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'
  22382. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  22383. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22384. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  22385. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  22386. /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
  22387. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  22388. | ^~~~~~~
  22389. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  22390. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  22391. 39 | *tv = (struct timeval) {
  22392. | ^~~
  22393. /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'
  22394. 40 | .tv_sec = now.tv_sec,
  22395. | ^~~~~~
  22396. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  22397. 40 | .tv_sec = now.tv_sec,
  22398. | ^~~
  22399. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  22400. /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'
  22401. 41 | .tv_usec = now.tv_nsec/1000,
  22402. | ^~~~~~~
  22403. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  22404. 41 | .tv_usec = now.tv_nsec/1000,
  22405. | ^~~
  22406. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  22407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  22408. 39 | *tv = (struct timeval) {
  22409. | ^
  22410. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22411. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22412. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22413. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22414. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22415. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22416. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22417. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22418. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22419. /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'
  22420. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  22421. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22422. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22423. /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]
  22424. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22425. | ^~~~
  22426. | |
  22427. | int
  22428. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22429. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22430. | ^~~~
  22431. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22432. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22433. | ^~~~~~~~~~~~~~~
  22434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22435. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22436. | ^~~~~~~~~~
  22437. /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'
  22438. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22439. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22440. /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'
  22441. 600 | uvm_assert_mmap_sem_locked(&current->mm->mmap_sem);
  22442. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22443. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  22444. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  22445. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  22446. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  22447. /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'
  22448. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  22449. | ~~~~~~^~~~
  22450. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate':
  22451. /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'?
  22452. 857 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22453. | ^~~~~~~~
  22454. /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'
  22455. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  22456. | ^~~~~~~~
  22457. /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'?
  22458. 857 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22459. | ^~~~~~~~
  22460. /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'
  22461. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  22462. | ^~~~~~~~
  22463. /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]
  22464. 544 | down_read(_sem); \
  22465. | ^~~~
  22466. | |
  22467. | int
  22468. /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'
  22469. 857 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22470. | ^~~~~~~~~~~~~~~~~~~~~~
  22471. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22472. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22473. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22474. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22475. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22476. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22477. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22478. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22479. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22480. /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'
  22481. 125 | extern void down_read(struct rw_semaphore *sem);
  22482. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22483. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  22484. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  22485. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  22486. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  22487. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:939:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22488. 939 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  22489. | ^~~~~~~~
  22490. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:554:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order'
  22491. 554 | typeof(mmap_sem) _sem = (mmap_sem); \
  22492. | ^~~~~~~~
  22493. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:939:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22494. 939 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  22495. | ^~~~~~~~
  22496. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:554:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order'
  22497. 554 | typeof(mmap_sem) _sem = (mmap_sem); \
  22498. | ^~~~~~~~
  22499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:555:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  22500. 555 | up_read(_sem); \
  22501. | ^~~~
  22502. | |
  22503. | int
  22504. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:939:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order'
  22505. 939 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  22506. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22507. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22508. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22509. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22510. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22511. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22512. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22513. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22514. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22515. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22516. /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'
  22517. 147 | extern void up_read(struct rw_semaphore *sem);
  22518. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22519. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  22520. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  22521. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  22522. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  22523. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c: In function 'uvm_api_migrate_range_group':
  22524. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:985:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22525. 985 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22526. | ^~~~~~~~
  22527. /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'
  22528. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  22529. | ^~~~~~~~
  22530. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:985:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22531. 985 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22532. | ^~~~~~~~
  22533. /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'
  22534. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  22535. | ^~~~~~~~
  22536. /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]
  22537. 544 | down_read(_sem); \
  22538. | ^~~~
  22539. | |
  22540. | int
  22541. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:985:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  22542. 985 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22543. | ^~~~~~~~~~~~~~~~~~~~~~
  22544. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22545. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22546. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22547. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22548. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22549. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22550. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22551. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22552. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22553. /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'
  22554. 125 | extern void down_read(struct rw_semaphore *sem);
  22555. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22556. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  22557. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  22558. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  22559. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:27:
  22560. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:1030:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22561. 1030 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  22562. | ^~~~~~~~
  22563. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:554:16: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order'
  22564. 554 | typeof(mmap_sem) _sem = (mmap_sem); \
  22565. | ^~~~~~~~
  22566. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:1030:53: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22567. 1030 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  22568. | ^~~~~~~~
  22569. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:554:34: note: in definition of macro 'uvm_up_read_mmap_sem_out_of_order'
  22570. 554 | typeof(mmap_sem) _sem = (mmap_sem); \
  22571. | ^~~~~~~~
  22572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:555:17: warning: passing argument 1 of 'up_read' makes pointer from integer without a cast [-Wint-conversion]
  22573. 555 | up_read(_sem); \
  22574. | ^~~~
  22575. | |
  22576. | int
  22577. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:1030:5: note: in expansion of macro 'uvm_up_read_mmap_sem_out_of_order'
  22578. 1030 | uvm_up_read_mmap_sem_out_of_order(&current->mm->mmap_sem);
  22579. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22580. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22581. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22582. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22583. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22584. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22585. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22586. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22587. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate.c:24:
  22589. /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'
  22590. 147 | extern void up_read(struct rw_semaphore *sem);
  22591. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22592. cc1: some warnings being treated as errors
  22593. 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_migrate.o] Error 1
  22594. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.o
  22595. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  22596. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  22597. /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'?
  22598. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22599. | ^~~~~~~~
  22600. /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'
  22601. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22602. | ^~~~~~~~
  22603. /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'
  22604. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22605. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22606. /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'?
  22607. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22608. | ^~~~~~~~
  22609. /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'
  22610. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22611. | ^~~~~~~~
  22612. /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'
  22613. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22614. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22615. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22616. /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]
  22617. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22618. | ^~~~
  22619. | |
  22620. | int
  22621. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22622. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22623. | ^~~~
  22624. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22625. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22626. | ^~~~~~~~~~~~~~~
  22627. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22628. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22629. | ^~~~~~~~~~
  22630. /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'
  22631. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22632. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22633. /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'
  22634. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22635. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22636. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22637. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22638. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22639. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22640. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22641. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22642. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22643. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22644. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22645. /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'
  22646. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  22647. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22648. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22649. /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]
  22650. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22651. | ^~~~
  22652. | |
  22653. | int
  22654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22655. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22656. | ^~~~
  22657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22658. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22659. | ^~~~~~~~~~~~~~~
  22660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22661. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22662. | ^~~~~~~~~~
  22663. /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'
  22664. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22665. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22666. /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'
  22667. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  22668. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22669. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  22670. /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'
  22671. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  22672. | ~~~~~~^~~~
  22673. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_populate_pageable_vma':
  22674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22675. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22676. | ^~~~~~~~
  22677. /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'
  22678. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22679. | ^~~~~~~~
  22680. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  22681. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22682. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22683. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22684. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22685. | ^~~~~~~~
  22686. /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'
  22687. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22688. | ^~~~~~~~
  22689. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  22690. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22691. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22692. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22693. /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]
  22694. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22695. | ^~~~
  22696. | |
  22697. | int
  22698. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22699. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22700. | ^~~~
  22701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22702. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22703. | ^~~~~~~~~~~~~~~
  22704. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22705. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22706. | ^~~~~~~~~~
  22707. /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'
  22708. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22709. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22710. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  22711. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22712. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22713. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22714. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22715. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22716. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22717. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22718. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22719. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22720. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22721. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22722. /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'
  22723. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  22724. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22725. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22726. /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]
  22727. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22728. | ^~~~
  22729. | |
  22730. | int
  22731. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22732. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22733. | ^~~~
  22734. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22735. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22736. | ^~~~~~~~~~~~~~~
  22737. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22738. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22739. | ^~~~~~~~~~
  22740. /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'
  22741. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22742. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22743. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:52:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  22744. 52 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22745. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22746. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  22747. /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'
  22748. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  22749. | ~~~~~~^~~~
  22750. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22751. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:70:46: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22752. 70 | uvm_record_unlock_mmap_sem_read(&mm->mmap_sem);
  22753. | ^~~~~~~~
  22754. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22755. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22756. | ^~~~
  22757. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:70:9: note: in expansion of macro 'uvm_record_unlock_mmap_sem_read'
  22758. 70 | uvm_record_unlock_mmap_sem_read(&mm->mmap_sem);
  22759. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22760. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:75:44: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22761. 75 | uvm_record_lock_mmap_sem_read(&mm->mmap_sem);
  22762. | ^~~~~~~~
  22763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22764. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22765. | ^~~~
  22766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:75:9: note: in expansion of macro 'uvm_record_lock_mmap_sem_read'
  22767. 75 | uvm_record_lock_mmap_sem_read(&mm->mmap_sem);
  22768. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22769. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  22770. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_populate_pageable':
  22771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22772. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22773. | ^~~~~~~~
  22774. /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'
  22775. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22776. | ^~~~~~~~
  22777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  22778. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22779. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22780. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:37: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22781. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22782. | ^~~~~~~~
  22783. /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'
  22784. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  22785. | ^~~~~~~~
  22786. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  22787. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22788. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22789. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22790. /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]
  22791. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22792. | ^~~~
  22793. | |
  22794. | int
  22795. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22796. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22797. | ^~~~
  22798. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22799. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22800. | ^~~~~~~~~~~~~~~
  22801. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22802. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22803. | ^~~~~~~~~~
  22804. /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'
  22805. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22806. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22807. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  22808. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22809. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22810. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22811. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22812. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22813. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22814. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22815. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22816. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22817. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22818. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22819. /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'
  22820. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  22821. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22822. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22823. /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]
  22824. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22825. | ^~~~
  22826. | |
  22827. | int
  22828. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  22829. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  22830. | ^~~~
  22831. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  22832. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  22833. | ^~~~~~~~~~~~~~~
  22834. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  22835. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  22836. | ^~~~~~~~~~
  22837. /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'
  22838. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  22839. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22840. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:98:5: note: in expansion of macro 'uvm_assert_mmap_sem_locked'
  22841. 98 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  22842. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  22843. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  22844. /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'
  22845. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  22846. | ~~~~~~^~~~
  22847. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c: In function 'uvm_api_populate_pageable':
  22848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:159:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22849. 159 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22850. | ^~~~~~~~
  22851. /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'
  22852. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  22853. | ^~~~~~~~
  22854. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:159:42: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22855. 159 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22856. | ^~~~~~~~
  22857. /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'
  22858. 542 | typeof(mmap_sem) _sem = (mmap_sem); \
  22859. | ^~~~~~~~
  22860. /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]
  22861. 544 | down_read(_sem); \
  22862. | ^~~~
  22863. | |
  22864. | int
  22865. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:159:5: note: in expansion of macro 'uvm_down_read_mmap_sem'
  22866. 159 | uvm_down_read_mmap_sem(&current->mm->mmap_sem);
  22867. | ^~~~~~~~~~~~~~~~~~~~~~
  22868. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22869. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22870. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22871. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22872. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22873. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22874. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22875. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22876. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22877. /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'
  22878. 125 | extern void down_read(struct rw_semaphore *sem);
  22879. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22880. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:28:
  22881. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:166:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22882. 166 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  22883. | ^~~~~~~~
  22884. /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'
  22885. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  22886. | ^~~~~~~~
  22887. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:166:40: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
  22888. 166 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  22889. | ^~~~~~~~
  22890. /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'
  22891. 548 | typeof(mmap_sem) _sem = (mmap_sem); \
  22892. | ^~~~~~~~
  22893. /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]
  22894. 549 | up_read(_sem); \
  22895. | ^~~~
  22896. | |
  22897. | int
  22898. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:166:5: note: in expansion of macro 'uvm_up_read_mmap_sem'
  22899. 166 | uvm_up_read_mmap_sem(&current->mm->mmap_sem);
  22900. | ^~~~~~~~~~~~~~~~~~~~
  22901. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  22902. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  22903. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  22904. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  22905. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  22906. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  22907. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22908. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22909. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_populate_pageable.c:24:
  22910. /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'
  22911. 147 | extern void up_read(struct rw_semaphore *sem);
  22912. | ~~~~~~~~~~~~~~~~~~~~~^~~
  22913. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  22914. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  22915. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  22916. /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
  22917. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  22918. | ^~~~~~~
  22919. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  22920. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  22921. 39 | *tv = (struct timeval) {
  22922. | ^~~
  22923. /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'
  22924. 40 | .tv_sec = now.tv_sec,
  22925. | ^~~~~~
  22926. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  22927. 40 | .tv_sec = now.tv_sec,
  22928. | ^~~
  22929. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  22930. /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'
  22931. 41 | .tv_usec = now.tv_nsec/1000,
  22932. | ^~~~~~~
  22933. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  22934. 41 | .tv_usec = now.tv_nsec/1000,
  22935. | ^~~
  22936. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  22937. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  22938. 39 | *tv = (struct timeval) {
  22939. | ^
  22940. cc1: some warnings being treated as errors
  22941. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22942. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22943. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  22944. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  22945. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  22946. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  22947. | ^~~~~~~~~
  22948. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  22949. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22950. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22951. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  22952. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  22953. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  22954. | ^~~~~~~~~
  22955. 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_populate_pageable.o] Error 1
  22956. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.o
  22957. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22958. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22959. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  22960. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  22961. /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]
  22962. 578 | void *ptr = ioremap_nocache(phys, size);
  22963. | ^~~~~~~~~~~~~~~
  22964. | ioremap_cache
  22965. /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]
  22966. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22967. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  22968. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  22969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  22970. 325 | struct timespec ts = {0};
  22971. | ^~~~~~~~
  22972. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  22973. 325 | struct timespec ts = {0};
  22974. | ^
  22975. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  22976. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  22977. 325 | struct timespec ts = {0};
  22978. | ^~
  22979. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22981. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  22982. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  22983. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  22984. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  22985. | ^~~~~~~~~
  22986. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  22987. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22988. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22989. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  22990. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  22991. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  22992. | ^~~~~~~~~
  22993. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  22994. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  22995. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  22996. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  22997. /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]
  22998. 578 | void *ptr = ioremap_nocache(phys, size);
  22999. | ^~~~~~~~~~~~~~~
  23000. | ioremap_cache
  23001. /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]
  23002. /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]
  23003. 327 | getrawmonotonic(&ts);
  23004. | ^~~~~~~~~~~~~~~
  23005. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23006. 325 | struct timespec ts = {0};
  23007. | ^~
  23008. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  23009. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  23010. /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
  23011. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  23012. | ^~~~~~~
  23013. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  23014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  23015. 39 | *tv = (struct timeval) {
  23016. | ^~~
  23017. /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'
  23018. 40 | .tv_sec = now.tv_sec,
  23019. | ^~~~~~
  23020. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  23021. 40 | .tv_sec = now.tv_sec,
  23022. | ^~~
  23023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  23024. /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'
  23025. 41 | .tv_usec = now.tv_nsec/1000,
  23026. | ^~~~~~~
  23027. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  23028. 41 | .tv_usec = now.tv_nsec/1000,
  23029. | ^~~
  23030. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  23031. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  23032. 39 | *tv = (struct timeval) {
  23033. | ^
  23034. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23035. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  23036. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23037. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  23038. 325 | struct timespec ts = {0};
  23039. | ^~~~~~~~
  23040. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  23041. 325 | struct timespec ts = {0};
  23042. | ^
  23043. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  23044. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  23045. 325 | struct timespec ts = {0};
  23046. | ^~
  23047. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23048. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23049. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  23050. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  23051. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  23052. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  23053. | ^~~~~~~~~
  23054. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  23055. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23056. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23057. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  23058. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  23059. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  23060. | ^~~~~~~~~
  23061. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23062. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23063. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  23064. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  23065. /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]
  23066. 578 | void *ptr = ioremap_nocache(phys, size);
  23067. | ^~~~~~~~~~~~~~~
  23068. | ioremap_cache
  23069. /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]
  23070. /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]
  23071. 327 | getrawmonotonic(&ts);
  23072. | ^~~~~~~~~~~~~~~
  23073. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23074. 325 | struct timespec ts = {0};
  23075. | ^~
  23076. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23077. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  23078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23079. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  23080. 325 | struct timespec ts = {0};
  23081. | ^~~~~~~~
  23082. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  23083. 325 | struct timespec ts = {0};
  23084. | ^
  23085. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  23086. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  23087. 325 | struct timespec ts = {0};
  23088. | ^~
  23089. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  23090. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  23091. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  23092. /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
  23093. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  23094. | ^~~~~~~
  23095. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  23096. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  23097. 39 | *tv = (struct timeval) {
  23098. | ^~~
  23099. /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'
  23100. 40 | .tv_sec = now.tv_sec,
  23101. | ^~~~~~
  23102. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  23103. 40 | .tv_sec = now.tv_sec,
  23104. | ^~~
  23105. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  23106. /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'
  23107. 41 | .tv_usec = now.tv_nsec/1000,
  23108. | ^~~~~~~
  23109. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  23110. 41 | .tv_usec = now.tv_nsec/1000,
  23111. | ^~~
  23112. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  23113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  23114. 39 | *tv = (struct timeval) {
  23115. | ^
  23116. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23117. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  23118. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  23119. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  23120. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  23121. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  23122. | ^~~~~~~~~
  23123. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  23124. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23125. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  23126. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  23127. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  23128. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  23129. | ^~~~~~~~~
  23130. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23131. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  23132. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  23133. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  23134. /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]
  23135. 578 | void *ptr = ioremap_nocache(phys, size);
  23136. | ^~~~~~~~~~~~~~~
  23137. | ioremap_cache
  23138. /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]
  23139. /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]
  23140. 327 | getrawmonotonic(&ts);
  23141. | ^~~~~~~~~~~~~~~
  23142. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23143. 325 | struct timespec ts = {0};
  23144. | ^~
  23145. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.h:29,
  23146. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hmm.c:24:
  23147. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23148. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  23149. 325 | struct timespec ts = {0};
  23150. | ^~~~~~~~
  23151. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  23152. 325 | struct timespec ts = {0};
  23153. | ^
  23154. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  23155. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  23156. 325 | struct timespec ts = {0};
  23157. | ^~
  23158. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23159. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  23160. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  23161. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  23162. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  23163. | ^~~~~~~~~
  23164. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  23165. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23166. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  23167. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  23168. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  23169. | ^~~~~~~~~
  23170. /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]
  23171. 327 | getrawmonotonic(&ts);
  23172. | ^~~~~~~~~~~~~~~
  23173. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23174. 325 | struct timespec ts = {0};
  23175. | ^~
  23176. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23177. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  23178. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  23179. /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]
  23180. 578 | void *ptr = ioremap_nocache(phys, size);
  23181. | ^~~~~~~~~~~~~~~
  23182. | ioremap_cache
  23183. /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]
  23184. cc1: some warnings being treated as errors
  23185. 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_hmm.o] Error 1
  23186. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.o
  23187. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_heuristics.c:24:
  23188. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23189. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  23190. 325 | struct timespec ts = {0};
  23191. | ^~~~~~~~
  23192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  23193. 325 | struct timespec ts = {0};
  23194. | ^
  23195. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  23196. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  23197. 325 | struct timespec ts = {0};
  23198. | ^~
  23199. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  23200. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  23201. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:27:
  23202. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  23203. /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'?
  23204. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23205. | ^~~~~~~~
  23206. /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'
  23207. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23208. | ^~~~~~~~
  23209. /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'
  23210. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23211. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23212. /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'?
  23213. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23214. | ^~~~~~~~
  23215. /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'
  23216. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23217. | ^~~~~~~~
  23218. /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'
  23219. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23220. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23221. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  23222. /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]
  23223. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23224. | ^~~~
  23225. | |
  23226. | int
  23227. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23228. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23229. | ^~~~
  23230. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23231. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23232. | ^~~~~~~~~~~~~~~
  23233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23234. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23235. | ^~~~~~~~~~
  23236. /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'
  23237. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23238. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23239. /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'
  23240. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23241. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23242. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  23243. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  23244. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  23245. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  23246. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  23247. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  23248. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23249. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23250. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  23251. /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'
  23252. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  23253. | ~~~~~~~~~~~~~~~~~~~~~^~~
  23254. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:24:
  23255. /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]
  23256. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23257. | ^~~~
  23258. | |
  23259. | int
  23260. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23261. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23262. | ^~~~
  23263. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23264. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23265. | ^~~~~~~~~~~~~~~
  23266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23267. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23268. | ^~~~~~~~~~
  23269. /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'
  23270. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23271. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23272. /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'
  23273. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23274. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23275. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  23276. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  23277. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_migrate_pageable.c:27:
  23278. /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'
  23279. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  23280. | ~~~~~~^~~~
  23281. /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]
  23282. 327 | getrawmonotonic(&ts);
  23283. | ^~~~~~~~~~~~~~~
  23284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23285. 325 | struct timespec ts = {0};
  23286. | ^~
  23287. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:27:
  23288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  23289. /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'?
  23290. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23291. | ^~~~~~~~
  23292. /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'
  23293. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23294. | ^~~~~~~~
  23295. /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'
  23296. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23297. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23298. /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'?
  23299. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23300. | ^~~~~~~~
  23301. /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'
  23302. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23303. | ^~~~~~~~
  23304. /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'
  23305. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23306. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23307. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  23308. /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]
  23309. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23310. | ^~~~
  23311. | |
  23312. | int
  23313. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23314. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23315. | ^~~~
  23316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23317. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23318. | ^~~~~~~~~~~~~~~
  23319. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23320. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23321. | ^~~~~~~~~~
  23322. /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'
  23323. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23324. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23325. /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'
  23326. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23327. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23328. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  23329. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  23330. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  23331. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  23332. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  23333. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  23334. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23335. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23336. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  23337. /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'
  23338. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  23339. | ~~~~~~~~~~~~~~~~~~~~~^~~
  23340. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:24:
  23341. /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]
  23342. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23343. | ^~~~
  23344. | |
  23345. | int
  23346. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23347. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23348. | ^~~~
  23349. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23350. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23351. | ^~~~~~~~~~~~~~~
  23352. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23353. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23354. | ^~~~~~~~~~
  23355. /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'
  23356. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23357. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23358. /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'
  23359. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23360. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23361. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_map_external.c:27:
  23362. /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'
  23363. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  23364. | ~~~~~~^~~~
  23365. cc1: some warnings being treated as errors
  23366. 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_migrate_pageable.o] Error 1
  23367. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23368. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23369. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23370. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  23371. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  23372. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  23373. | ^~~~~~~~~
  23374. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  23375. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23376. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23377. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23378. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  23379. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  23380. | ^~~~~~~~~
  23381. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.o
  23382. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23383. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23384. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23385. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  23386. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  23387. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  23388. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  23389. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  23390. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:26:
  23391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  23392. /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'?
  23393. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23394. | ^~~~~~~~
  23395. /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'
  23396. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23397. | ^~~~~~~~
  23398. /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'
  23399. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23400. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23401. /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'?
  23402. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23403. | ^~~~~~~~
  23404. /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'
  23405. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23406. | ^~~~~~~~
  23407. /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'
  23408. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23409. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23410. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  23411. /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]
  23412. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23413. | ^~~~
  23414. | |
  23415. | int
  23416. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23417. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23418. | ^~~~
  23419. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23420. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23421. | ^~~~~~~~~~~~~~~
  23422. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23423. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23424. | ^~~~~~~~~~
  23425. /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'
  23426. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23427. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23428. /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'
  23429. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23430. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23431. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  23432. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  23433. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  23434. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  23435. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  23436. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  23437. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23438. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23439. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  23440. /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'
  23441. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  23442. | ~~~~~~~~~~~~~~~~~~~~~^~~
  23443. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:24:
  23444. /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]
  23445. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23446. | ^~~~
  23447. | |
  23448. | int
  23449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23450. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23451. | ^~~~
  23452. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23453. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23454. | ^~~~~~~~~~~~~~~
  23455. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23456. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23457. | ^~~~~~~~~~
  23458. /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'
  23459. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23460. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23461. /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'
  23462. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23463. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23464. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  23465. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  23466. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  23467. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_space.h:28,
  23468. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_user_channel.c:26:
  23469. /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'
  23470. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  23471. | ~~~~~~^~~~
  23472. cc1: some warnings being treated as errors
  23473. /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]
  23474. 578 | void *ptr = ioremap_nocache(phys, size);
  23475. | ^~~~~~~~~~~~~~~
  23476. | ioremap_cache
  23477. /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]
  23478. 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_map_external.o] Error 1
  23479. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.o
  23480. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23481. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23483. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  23484. 325 | struct timespec ts = {0};
  23485. | ^~~~~~~~
  23486. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  23487. 325 | struct timespec ts = {0};
  23488. | ^
  23489. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  23490. cc1: some warnings being treated as errors
  23491. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  23492. 325 | struct timespec ts = {0};
  23493. | ^~
  23494. 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_user_channel.o] Error 1
  23495. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.o
  23496. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  23497. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  23498. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  23499. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  23500. /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
  23501. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  23502. | ^~~~~~~
  23503. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  23504. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  23505. 39 | *tv = (struct timeval) {
  23506. | ^~~
  23507. /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'
  23508. 40 | .tv_sec = now.tv_sec,
  23509. | ^~~~~~
  23510. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  23511. 40 | .tv_sec = now.tv_sec,
  23512. | ^~~
  23513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  23514. /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'
  23515. 41 | .tv_usec = now.tv_nsec/1000,
  23516. | ^~~~~~~
  23517. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  23518. 41 | .tv_usec = now.tv_nsec/1000,
  23519. | ^~~
  23520. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  23521. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  23522. 39 | *tv = (struct timeval) {
  23523. | ^
  23524. /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]
  23525. 327 | getrawmonotonic(&ts);
  23526. | ^~~~~~~~~~~~~~~
  23527. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23528. 325 | struct timespec ts = {0};
  23529. | ^~
  23530. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23531. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  23532. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  23533. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  23534. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  23535. | ^~~~~~~~~
  23536. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  23537. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23538. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  23539. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  23540. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  23541. | ^~~~~~~~~
  23542. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23543. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  23544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  23545. /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]
  23546. 578 | void *ptr = ioremap_nocache(phys, size);
  23547. | ^~~~~~~~~~~~~~~
  23548. | ioremap_cache
  23549. /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]
  23550. cc1: some warnings being treated as errors
  23551. 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_heuristics.o] Error 1
  23552. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.o
  23553. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  23554. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23555. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  23556. 325 | struct timespec ts = {0};
  23557. | ^~~~~~~~
  23558. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  23559. 325 | struct timespec ts = {0};
  23560. | ^
  23561. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  23562. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  23563. 325 | struct timespec ts = {0};
  23564. | ^~
  23565. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  23566. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  23567. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  23568. /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
  23569. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  23570. | ^~~~~~~
  23571. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  23572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  23573. 39 | *tv = (struct timeval) {
  23574. | ^~~
  23575. /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'
  23576. 40 | .tv_sec = now.tv_sec,
  23577. | ^~~~~~
  23578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  23579. 40 | .tv_sec = now.tv_sec,
  23580. | ^~~
  23581. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  23582. /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'
  23583. 41 | .tv_usec = now.tv_nsec/1000,
  23584. | ^~~~~~~
  23585. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  23586. 41 | .tv_usec = now.tv_nsec/1000,
  23587. | ^~~
  23588. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  23589. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  23590. 39 | *tv = (struct timeval) {
  23591. | ^
  23592. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23593. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  23594. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  23595. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  23596. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  23597. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  23598. | ^~~~~~~~~
  23599. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  23600. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23601. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  23602. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  23603. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  23604. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  23605. | ^~~~~~~~~
  23606. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23607. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  23608. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  23609. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  23610. /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]
  23611. 578 | void *ptr = ioremap_nocache(phys, size);
  23612. | ^~~~~~~~~~~~~~~
  23613. | ioremap_cache
  23614. /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]
  23615. /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]
  23616. 327 | getrawmonotonic(&ts);
  23617. | ^~~~~~~~~~~~~~~
  23618. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23619. 325 | struct timespec ts = {0};
  23620. | ^~
  23621. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  23622. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  23623. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  23624. /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
  23625. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  23626. | ^~~~~~~
  23627. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  23628. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  23629. 39 | *tv = (struct timeval) {
  23630. | ^~~
  23631. /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'
  23632. 40 | .tv_sec = now.tv_sec,
  23633. | ^~~~~~
  23634. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  23635. 40 | .tv_sec = now.tv_sec,
  23636. | ^~~
  23637. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  23638. /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'
  23639. 41 | .tv_usec = now.tv_nsec/1000,
  23640. | ^~~~~~~
  23641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  23642. 41 | .tv_usec = now.tv_nsec/1000,
  23643. | ^~~
  23644. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  23645. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  23646. 39 | *tv = (struct timeval) {
  23647. | ^
  23648. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  23649. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_ibm.c:24:
  23650. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  23652. 325 | struct timespec ts = {0};
  23653. | ^~~~~~~~
  23654. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  23655. 325 | struct timespec ts = {0};
  23656. | ^
  23657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  23658. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  23659. 325 | struct timespec ts = {0};
  23660. | ^~
  23661. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  23662. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23663. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  23664. /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
  23665. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  23666. | ^~~~~~~
  23667. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  23668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  23669. 39 | *tv = (struct timeval) {
  23670. | ^~~
  23671. /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'
  23672. 40 | .tv_sec = now.tv_sec,
  23673. | ^~~~~~
  23674. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  23675. 40 | .tv_sec = now.tv_sec,
  23676. | ^~~
  23677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  23678. /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'
  23679. 41 | .tv_usec = now.tv_nsec/1000,
  23680. | ^~~~~~~
  23681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  23682. 41 | .tv_usec = now.tv_nsec/1000,
  23683. | ^~~
  23684. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  23685. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  23686. 39 | *tv = (struct timeval) {
  23687. | ^
  23688. /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]
  23689. 327 | getrawmonotonic(&ts);
  23690. | ^~~~~~~~~~~~~~~
  23691. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23692. 325 | struct timespec ts = {0};
  23693. | ^~
  23694. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  23695. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23696. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  23697. /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'?
  23698. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23699. | ^~~~~~~~
  23700. /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'
  23701. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23702. | ^~~~~~~~
  23703. /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'
  23704. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23705. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23706. /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'?
  23707. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23708. | ^~~~~~~~
  23709. /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'
  23710. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23711. | ^~~~~~~~
  23712. /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'
  23713. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23714. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23715. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  23716. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  23717. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23718. /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]
  23719. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23720. | ^~~~
  23721. | |
  23722. | int
  23723. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23724. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23725. | ^~~~
  23726. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23727. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23728. | ^~~~~~~~~~~~~~~
  23729. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23730. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23731. | ^~~~~~~~~~
  23732. /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'
  23733. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23734. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23735. /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'
  23736. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23737. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23738. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  23739. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  23740. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  23741. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  23742. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  23743. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  23744. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23745. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23746. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23747. /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'
  23748. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  23749. | ~~~~~~~~~~~~~~~~~~~~~^~~
  23750. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  23751. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  23752. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23753. /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]
  23754. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23755. | ^~~~
  23756. | |
  23757. | int
  23758. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23759. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23760. | ^~~~
  23761. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23762. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23763. | ^~~~~~~~~~~~~~~
  23764. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23765. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23766. | ^~~~~~~~~~
  23767. /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'
  23768. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23769. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23770. /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'
  23771. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23772. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23773. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  23774. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23775. /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'
  23776. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  23777. | ~~~~~~^~~~
  23778. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  23779. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23780. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23781. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23782. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c: In function 'cpu_thrashing_stats_init':
  23783. /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]
  23784. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  23785. | ^~~~
  23786. | |
  23787. | const struct file_operations *
  23788. /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'
  23789. 39 | proc_create_data(name, mode, parent, fops, __data)
  23790. | ^~~~
  23791. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:427:45: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  23792. 427 | g_cpu_thrashing_stats.procfs_file = NV_CREATE_PROC_FILE(THRASHING_STATS_FILE_NAME,
  23793. | ^~~~~~~~~~~~~~~~~~~
  23794. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  23795. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  23796. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23797. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23798. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23799. /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 *'
  23800. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  23801. | ^~~~~~~~~~~~~~~~
  23802. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  23803. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23804. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23805. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23806. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c: In function 'gpu_thrashing_stats_create':
  23807. /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]
  23808. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  23809. | ^~~~
  23810. | |
  23811. | const struct file_operations *
  23812. /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'
  23813. 39 | proc_create_data(name, mode, parent, fops, __data)
  23814. | ^~~~
  23815. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:482:34: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  23816. 482 | gpu_thrashing->procfs_file = NV_CREATE_PROC_FILE(THRASHING_STATS_FILE_NAME,
  23817. | ^~~~~~~~~~~~~~~~~~~
  23818. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  23819. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  23820. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23821. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23822. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23823. /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 *'
  23824. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  23825. | ^~~~~~~~~~~~~~~~
  23826. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  23827. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  23828. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  23829. /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
  23830. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  23831. | ^~~~~~~
  23832. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  23833. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  23834. 39 | *tv = (struct timeval) {
  23835. | ^~~
  23836. /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'
  23837. 40 | .tv_sec = now.tv_sec,
  23838. | ^~~~~~
  23839. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  23840. 40 | .tv_sec = now.tv_sec,
  23841. | ^~~
  23842. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  23843. /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'
  23844. 41 | .tv_usec = now.tv_nsec/1000,
  23845. | ^~~~~~~
  23846. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  23847. 41 | .tv_usec = now.tv_nsec/1000,
  23848. | ^~~
  23849. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  23850. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  23851. 39 | *tv = (struct timeval) {
  23852. | ^
  23853. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  23854. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_thrashing.c:24:
  23855. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23856. /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]
  23857. 331 | }
  23858. | ^
  23859. cc1: some warnings being treated as errors
  23860. 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_thrashing.o] Error 1
  23861. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o
  23862. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  23863. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25:
  23864. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  23865. /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'?
  23866. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23867. | ^~~~~~~~
  23868. /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'
  23869. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23870. | ^~~~~~~~
  23871. /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'
  23872. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23873. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23874. /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'?
  23875. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23876. | ^~~~~~~~
  23877. /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'
  23878. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  23879. | ^~~~~~~~
  23880. /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'
  23881. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23882. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23883. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  23884. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  23885. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25:
  23886. /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]
  23887. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23888. | ^~~~
  23889. | |
  23890. | int
  23891. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23892. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23893. | ^~~~
  23894. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23895. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23896. | ^~~~~~~~~~~~~~~
  23897. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23898. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23899. | ^~~~~~~~~~
  23900. /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'
  23901. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23902. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23903. /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'
  23904. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23905. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23906. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  23907. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  23908. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  23909. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  23910. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  23911. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  23912. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23913. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:24:
  23914. /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'
  23915. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  23916. | ~~~~~~~~~~~~~~~~~~~~~^~~
  23917. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  23918. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  23919. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25:
  23920. /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]
  23921. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23922. | ^~~~
  23923. | |
  23924. | int
  23925. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  23926. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  23927. | ^~~~
  23928. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  23929. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  23930. | ^~~~~~~~~~~~~~~
  23931. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  23932. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  23933. | ^~~~~~~~~~
  23934. /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'
  23935. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  23936. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23937. /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'
  23938. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  23939. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  23940. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  23941. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_prefetch.c:25:
  23942. /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'
  23943. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  23944. | ~~~~~~^~~~
  23945. cc1: some warnings being treated as errors
  23946. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23947. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  23948. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  23949. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  23950. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  23951. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  23952. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  23953. | ^~~~~~~~~
  23954. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  23955. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23956. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  23957. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  23958. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  23959. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  23960. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  23961. | ^~~~~~~~~
  23962. 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_prefetch.o] Error 1
  23963. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.o
  23964. cc1: some warnings being treated as errors
  23965. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  23966. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  23967. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  23968. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  23969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  23970. /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]
  23971. 578 | void *ptr = ioremap_nocache(phys, size);
  23972. | ^~~~~~~~~~~~~~~
  23973. | ioremap_cache
  23974. /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]
  23975. 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_ats_ibm.o] Error 1
  23976. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.o
  23977. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  23978. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  23979. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  23980. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  23981. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  23982. 325 | struct timespec ts = {0};
  23983. | ^~~~~~~~
  23984. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  23985. 325 | struct timespec ts = {0};
  23986. | ^
  23987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  23988. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  23989. 325 | struct timespec ts = {0};
  23990. | ^~
  23991. /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]
  23992. 327 | getrawmonotonic(&ts);
  23993. | ^~~~~~~~~~~~~~~
  23994. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  23995. 325 | struct timespec ts = {0};
  23996. | ^~
  23997. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  23998. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  23999. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  24000. /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
  24001. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24002. | ^~~~~~~
  24003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24005. 39 | *tv = (struct timeval) {
  24006. | ^~~
  24007. /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'
  24008. 40 | .tv_sec = now.tv_sec,
  24009. | ^~~~~~
  24010. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24011. 40 | .tv_sec = now.tv_sec,
  24012. | ^~~
  24013. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24014. /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'
  24015. 41 | .tv_usec = now.tv_nsec/1000,
  24016. | ^~~~~~~
  24017. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24018. 41 | .tv_usec = now.tv_nsec/1000,
  24019. | ^~~
  24020. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24021. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24022. 39 | *tv = (struct timeval) {
  24023. | ^
  24024. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24025. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  24026. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24027. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24028. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24029. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24030. | ^~~~~~~~~
  24031. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24032. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24033. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  24034. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24035. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24036. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24037. | ^~~~~~~~~
  24038. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24039. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  24040. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24041. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24042. /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]
  24043. 578 | void *ptr = ioremap_nocache(phys, size);
  24044. | ^~~~~~~~~~~~~~~
  24045. | ioremap_cache
  24046. /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]
  24047. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  24048. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24049. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24050. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24051. 325 | struct timespec ts = {0};
  24052. | ^~~~~~~~
  24053. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24054. 325 | struct timespec ts = {0};
  24055. | ^
  24056. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24057. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24058. 325 | struct timespec ts = {0};
  24059. | ^~
  24060. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24061. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  24062. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  24063. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24064. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24065. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24066. | ^~~~~~~~~
  24067. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24068. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24069. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  24070. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  24071. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24072. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24073. | ^~~~~~~~~
  24074. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24075. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24076. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  24077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24078. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24079. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24080. | ^~~~~~~~~
  24081. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24082. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24083. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24084. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  24085. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24086. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24087. | ^~~~~~~~~
  24088. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24089. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  24090. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  24091. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24092. /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]
  24093. 578 | void *ptr = ioremap_nocache(phys, size);
  24094. | ^~~~~~~~~~~~~~~
  24095. | ioremap_cache
  24096. /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]
  24097. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24098. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24099. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  24100. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24101. /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]
  24102. 578 | void *ptr = ioremap_nocache(phys, size);
  24103. | ^~~~~~~~~~~~~~~
  24104. | ioremap_cache
  24105. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  24106. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24107. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  24108. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  24109. /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
  24110. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24111. | ^~~~~~~
  24112. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24113. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24114. 39 | *tv = (struct timeval) {
  24115. | ^~~
  24116. /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'
  24117. 40 | .tv_sec = now.tv_sec,
  24118. | ^~~~~~
  24119. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24120. 40 | .tv_sec = now.tv_sec,
  24121. | ^~~
  24122. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24123. /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'
  24124. 41 | .tv_usec = now.tv_nsec/1000,
  24125. | ^~~~~~~
  24126. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24127. 41 | .tv_usec = now.tv_nsec/1000,
  24128. | ^~~
  24129. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24130. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24131. 39 | *tv = (struct timeval) {
  24132. | ^
  24133. /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]
  24134. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  24135. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  24136. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  24137. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  24138. /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
  24139. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24140. | ^~~~~~~
  24141. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24142. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24143. 39 | *tv = (struct timeval) {
  24144. | ^~~
  24145. /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'
  24146. 40 | .tv_sec = now.tv_sec,
  24147. | ^~~~~~
  24148. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24149. 40 | .tv_sec = now.tv_sec,
  24150. | ^~~
  24151. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24152. /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'
  24153. 41 | .tv_usec = now.tv_nsec/1000,
  24154. | ^~~~~~~
  24155. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24156. 41 | .tv_usec = now.tv_nsec/1000,
  24157. | ^~~
  24158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24160. 39 | *tv = (struct timeval) {
  24161. | ^
  24162. /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]
  24163. 327 | getrawmonotonic(&ts);
  24164. | ^~~~~~~~~~~~~~~
  24165. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24166. 325 | struct timespec ts = {0};
  24167. | ^~
  24168. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.h:28,
  24169. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test_rng.c:24:
  24170. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24171. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24172. 325 | struct timespec ts = {0};
  24173. | ^~~~~~~~
  24174. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24175. 325 | struct timespec ts = {0};
  24176. | ^
  24177. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24178. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24179. 325 | struct timespec ts = {0};
  24180. | ^~
  24181. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24182. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_tree_test.c:24:
  24183. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24185. 325 | struct timespec ts = {0};
  24186. | ^~~~~~~~
  24187. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24188. 325 | struct timespec ts = {0};
  24189. | ^
  24190. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24191. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24192. 325 | struct timespec ts = {0};
  24193. | ^~
  24194. /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]
  24195. 327 | getrawmonotonic(&ts);
  24196. | ^~~~~~~~~~~~~~~
  24197. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24198. 325 | struct timespec ts = {0};
  24199. | ^~
  24200. /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]
  24201. 327 | getrawmonotonic(&ts);
  24202. | ^~~~~~~~~~~~~~~
  24203. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24204. 325 | struct timespec ts = {0};
  24205. | ^~
  24206. cc1: some warnings being treated as errors
  24207. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24208. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24209. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  24210. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24211. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24212. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24213. | ^~~~~~~~~
  24214. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24215. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24216. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24217. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  24218. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24219. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24220. | ^~~~~~~~~
  24221. 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_test_rng.o] Error 1
  24222. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.o
  24223. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24224. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24225. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  24226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24227. /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]
  24228. 578 | void *ptr = ioremap_nocache(phys, size);
  24229. | ^~~~~~~~~~~~~~~
  24230. | ioremap_cache
  24231. /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]
  24232. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24233. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24234. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:29,
  24235. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:29,
  24236. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_types.h:28,
  24237. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:32,
  24238. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24239. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  24240. /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'?
  24241. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24242. | ^~~~~~~~
  24243. /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'
  24244. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  24245. | ^~~~~~~~
  24246. /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'
  24247. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24248. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24249. /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'?
  24250. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24251. | ^~~~~~~~
  24252. /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'
  24253. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  24254. | ^~~~~~~~
  24255. /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'
  24256. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24257. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24258. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  24259. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  24260. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24261. /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]
  24262. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24263. | ^~~~
  24264. | |
  24265. | int
  24266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  24267. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  24268. | ^~~~
  24269. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  24270. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  24271. | ^~~~~~~~~~~~~~~
  24272. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  24273. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24274. | ^~~~~~~~~~
  24275. /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'
  24276. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  24277. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24278. /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'
  24279. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24280. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24281. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  24282. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  24283. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  24284. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  24285. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  24286. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  24287. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24288. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  24289. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  24290. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24291. /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'
  24292. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  24293. | ~~~~~~~~~~~~~~~~~~~~~^~~
  24294. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  24295. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  24296. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24297. /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]
  24298. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24299. | ^~~~
  24300. | |
  24301. | int
  24302. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  24303. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  24304. | ^~~~
  24305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  24306. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  24307. | ^~~~~~~~~~~~~~~
  24308. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  24309. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24310. | ^~~~~~~~~~
  24311. /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'
  24312. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  24313. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24314. /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'
  24315. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24316. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24317. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24318. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24319. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:29,
  24320. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:29,
  24321. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_types.h:28,
  24322. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:32,
  24323. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24324. /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'
  24325. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  24326. | ~~~~~~^~~~
  24327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.h: In function 'uvm_can_ats_service_faults':
  24328. /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'?
  24329. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  24330. | ^~~~~~~~
  24331. /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'
  24332. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  24333. | ^~~~~~~~
  24334. /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'
  24335. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  24336. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24337. /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'?
  24338. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  24339. | ^~~~~~~~
  24340. /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'
  24341. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  24342. | ^~~~~~~~
  24343. /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'
  24344. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  24345. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24346. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  24347. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  24348. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24349. /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]
  24350. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24351. | ^~~~
  24352. | |
  24353. | int
  24354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  24355. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  24356. | ^~~~
  24357. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  24358. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  24359. | ^~~~~~~~~~~~~~~
  24360. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  24361. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24362. | ^~~~~~~~~~
  24363. /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'
  24364. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  24365. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24366. /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'
  24367. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  24368. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24369. cc1: some warnings being treated as errors
  24370. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24371. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_allocator_test.c:25:
  24372. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24373. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24374. 325 | struct timespec ts = {0};
  24375. | ^~~~~~~~
  24376. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24377. 325 | struct timespec ts = {0};
  24378. | ^
  24379. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24380. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24381. 325 | struct timespec ts = {0};
  24382. | ^~
  24383. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  24384. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  24385. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  24386. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  24387. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  24388. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  24389. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24390. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  24391. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  24392. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24393. /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'
  24394. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  24395. | ~~~~~~~~~~~~~~~~~~~~~^~~
  24396. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  24397. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:28,
  24398. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24399. /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]
  24400. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24401. | ^~~~
  24402. | |
  24403. | int
  24404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  24405. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  24406. | ^~~~
  24407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  24408. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  24409. | ^~~~~~~~~~~~~~~
  24410. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  24411. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24412. | ^~~~~~~~~~
  24413. /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'
  24414. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  24415. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24416. /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'
  24417. 42 | uvm_assert_mmap_sem_locked(&mm->mmap_sem);
  24418. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24419. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24420. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24421. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push.h:29,
  24422. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pte_batch.h:29,
  24423. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_types.h:28,
  24424. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tools.h:32,
  24425. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ats_faults.c:23:
  24426. /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'
  24427. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  24428. | ~~~~~~^~~~
  24429. 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_test.o] Error 1
  24430. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.o
  24431. cc1: some warnings being treated as errors
  24432. 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_ats_faults.o] Error 1
  24433. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.o
  24434. /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]
  24435. 327 | getrawmonotonic(&ts);
  24436. | ^~~~~~~~~~~~~~~
  24437. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24438. 325 | struct timespec ts = {0};
  24439. | ^~
  24440. cc1: some warnings being treated as errors
  24441. 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_test.o] Error 1
  24442. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.o
  24443. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  24444. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24445. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  24446. /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'?
  24447. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24448. | ^~~~~~~~
  24449. /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'
  24450. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  24451. | ^~~~~~~~
  24452. /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'
  24453. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24454. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24455. /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'?
  24456. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24457. | ^~~~~~~~
  24458. /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'
  24459. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  24460. | ^~~~~~~~
  24461. /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'
  24462. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24463. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24464. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  24465. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  24466. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24467. /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]
  24468. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24469. | ^~~~
  24470. | |
  24471. | int
  24472. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  24473. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  24474. | ^~~~
  24475. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  24476. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  24477. | ^~~~~~~~~~~~~~~
  24478. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  24479. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24480. | ^~~~~~~~~~
  24481. /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'
  24482. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  24483. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24484. /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'
  24485. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24486. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24487. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  24488. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  24489. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  24490. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  24491. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  24492. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  24493. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24494. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:29,
  24495. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24496. /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'
  24497. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  24498. | ~~~~~~~~~~~~~~~~~~~~~^~~
  24499. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:29,
  24500. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  24501. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24502. /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]
  24503. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24504. | ^~~~
  24505. | |
  24506. | int
  24507. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  24508. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  24509. | ^~~~
  24510. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  24511. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  24512. | ^~~~~~~~~~~~~~~
  24513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  24514. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  24515. | ^~~~~~~~~~
  24516. /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'
  24517. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  24518. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24519. /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'
  24520. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  24521. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  24522. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_api.h:30,
  24523. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.c:24:
  24524. /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'
  24525. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  24526. | ~~~~~~^~~~
  24527. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  24528. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  24529. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  24530. /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
  24531. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24532. | ^~~~~~~
  24533. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24534. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24535. 39 | *tv = (struct timeval) {
  24536. | ^~~
  24537. /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'
  24538. 40 | .tv_sec = now.tv_sec,
  24539. | ^~~~~~
  24540. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24541. 40 | .tv_sec = now.tv_sec,
  24542. | ^~~
  24543. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24544. /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'
  24545. 41 | .tv_usec = now.tv_nsec/1000,
  24546. | ^~~~~~~
  24547. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24548. 41 | .tv_usec = now.tv_nsec/1000,
  24549. | ^~~
  24550. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24551. cc1: some warnings being treated as errors
  24552. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24553. 39 | *tv = (struct timeval) {
  24554. | ^
  24555. 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_test.o] Error 1
  24556. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.o
  24557. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  24558. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  24559. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24560. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24561. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  24562. /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
  24563. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24564. | ^~~~~~~
  24565. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24566. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24567. 39 | *tv = (struct timeval) {
  24568. | ^~~
  24569. /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'
  24570. 40 | .tv_sec = now.tv_sec,
  24571. | ^~~~~~
  24572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24573. 40 | .tv_sec = now.tv_sec,
  24574. | ^~~
  24575. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24576. /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'
  24577. 41 | .tv_usec = now.tv_nsec/1000,
  24578. | ^~~~~~~
  24579. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24580. 41 | .tv_usec = now.tv_nsec/1000,
  24581. | ^~~
  24582. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24583. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24584. 39 | *tv = (struct timeval) {
  24585. | ^
  24586. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24587. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  24589. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24590. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24591. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24592. | ^~~~~~~~~
  24593. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24594. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24595. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24596. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  24597. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24598. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24599. | ^~~~~~~~~
  24600. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  24601. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24602. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  24603. /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
  24604. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24605. | ^~~~~~~
  24606. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24607. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24608. 39 | *tv = (struct timeval) {
  24609. | ^~~
  24610. /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'
  24611. 40 | .tv_sec = now.tv_sec,
  24612. | ^~~~~~
  24613. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24614. 40 | .tv_sec = now.tv_sec,
  24615. | ^~~
  24616. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24617. /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'
  24618. 41 | .tv_usec = now.tv_nsec/1000,
  24619. | ^~~~~~~
  24620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24621. 41 | .tv_usec = now.tv_nsec/1000,
  24622. | ^~~
  24623. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24624. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24625. 39 | *tv = (struct timeval) {
  24626. | ^
  24627. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24628. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24629. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  24630. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24631. /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]
  24632. 578 | void *ptr = ioremap_nocache(phys, size);
  24633. | ^~~~~~~~~~~~~~~
  24634. | ioremap_cache
  24635. /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]
  24636. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24637. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
  24638. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24639. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24640. 325 | struct timespec ts = {0};
  24641. | ^~~~~~~~
  24642. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24643. 325 | struct timespec ts = {0};
  24644. | ^
  24645. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24646. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24647. 325 | struct timespec ts = {0};
  24648. | ^~
  24649. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  24650. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24651. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  24652. /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
  24653. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24654. | ^~~~~~~
  24655. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24656. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24657. 39 | *tv = (struct timeval) {
  24658. | ^~~
  24659. /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'
  24660. 40 | .tv_sec = now.tv_sec,
  24661. | ^~~~~~
  24662. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24663. 40 | .tv_sec = now.tv_sec,
  24664. | ^~~
  24665. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24666. /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'
  24667. 41 | .tv_usec = now.tv_nsec/1000,
  24668. | ^~~~~~~
  24669. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24670. 41 | .tv_usec = now.tv_nsec/1000,
  24671. | ^~~
  24672. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24673. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24674. 39 | *tv = (struct timeval) {
  24675. | ^
  24676. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24677. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  24678. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  24679. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  24680. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24682. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24683. | ^~~~~~~~~
  24684. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24685. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24686. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  24687. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  24688. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  24689. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24690. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24691. | ^~~~~~~~~
  24692. /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]
  24693. 327 | getrawmonotonic(&ts);
  24694. | ^~~~~~~~~~~~~~~
  24695. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24696. 325 | struct timespec ts = {0};
  24697. | ^~
  24698. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24699. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  24700. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  24701. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  24702. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24703. /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]
  24704. 578 | void *ptr = ioremap_nocache(phys, size);
  24705. | ^~~~~~~~~~~~~~~
  24706. | ioremap_cache
  24707. /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]
  24708. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24709. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24710. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  24711. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  24712. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24713. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24714. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24715. | ^~~~~~~~~
  24716. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24717. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24718. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24719. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  24720. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  24721. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24722. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24723. | ^~~~~~~~~
  24724. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24725. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24726. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  24727. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  24728. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24729. /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]
  24730. 578 | void *ptr = ioremap_nocache(phys, size);
  24731. | ^~~~~~~~~~~~~~~
  24732. | ioremap_cache
  24733. /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]
  24734. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:27,
  24735. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem.h:28,
  24736. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_rm_mem_test.c:24:
  24737. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24738. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24739. 325 | struct timespec ts = {0};
  24740. | ^~~~~~~~
  24741. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24742. 325 | struct timespec ts = {0};
  24743. | ^
  24744. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24745. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24746. 325 | struct timespec ts = {0};
  24747. | ^~
  24748. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  24749. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_hal.h:28,
  24750. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mem_test.c:24:
  24751. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24752. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24753. 325 | struct timespec ts = {0};
  24754. | ^~~~~~~~
  24755. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24756. 325 | struct timespec ts = {0};
  24757. | ^
  24758. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24759. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24760. 325 | struct timespec ts = {0};
  24761. | ^~
  24762. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  24763. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  24764. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24765. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24766. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  24767. /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
  24768. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24769. | ^~~~~~~
  24770. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24772. 39 | *tv = (struct timeval) {
  24773. | ^~~
  24774. /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'
  24775. 40 | .tv_sec = now.tv_sec,
  24776. | ^~~~~~
  24777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24778. 40 | .tv_sec = now.tv_sec,
  24779. | ^~~
  24780. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24781. /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'
  24782. 41 | .tv_usec = now.tv_nsec/1000,
  24783. | ^~~~~~~
  24784. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24785. 41 | .tv_usec = now.tv_nsec/1000,
  24786. | ^~~
  24787. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24788. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24789. 39 | *tv = (struct timeval) {
  24790. | ^
  24791. /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]
  24792. 327 | getrawmonotonic(&ts);
  24793. | ^~~~~~~~~~~~~~~
  24794. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24795. 325 | struct timespec ts = {0};
  24796. | ^~
  24797. /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]
  24798. 327 | getrawmonotonic(&ts);
  24799. | ^~~~~~~~~~~~~~~
  24800. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24801. 325 | struct timespec ts = {0};
  24802. | ^~
  24803. cc1: some warnings being treated as errors
  24804. 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_test.o] Error 1
  24805. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.o
  24806. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24807. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  24808. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  24809. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24810. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24811. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24812. | ^~~~~~~~~
  24813. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24814. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24815. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  24816. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  24817. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24818. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24819. | ^~~~~~~~~
  24820. cc1: some warnings being treated as errors
  24821. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24822. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  24823. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  24824. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24825. /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]
  24826. 578 | void *ptr = ioremap_nocache(phys, size);
  24827. | ^~~~~~~~~~~~~~~
  24828. | ioremap_cache
  24829. /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]
  24830. 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_test.o] Error 1
  24831. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.o
  24832. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24833. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  24834. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24835. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24836. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  24837. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24839. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24840. | ^~~~~~~~~
  24841. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24842. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24843. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  24844. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24845. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24846. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  24847. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24848. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24849. | ^~~~~~~~~
  24850. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  24851. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_page_tree_test.c:24:
  24852. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24853. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24854. 325 | struct timespec ts = {0};
  24855. | ^~~~~~~~
  24856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24857. 325 | struct timespec ts = {0};
  24858. | ^
  24859. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24860. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24861. 325 | struct timespec ts = {0};
  24862. | ^~
  24863. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24864. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24865. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  24866. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24867. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24868. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24869. | ^~~~~~~~~
  24870. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24871. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24872. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24873. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  24874. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24875. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24876. | ^~~~~~~~~
  24877. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24878. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  24879. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24880. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24881. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  24882. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24883. /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]
  24884. 578 | void *ptr = ioremap_nocache(phys, size);
  24885. | ^~~~~~~~~~~~~~~
  24886. | ioremap_cache
  24887. /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]
  24888. cc1: some warnings being treated as errors
  24889. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24890. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24891. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  24892. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24893. /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]
  24894. 578 | void *ptr = ioremap_nocache(phys, size);
  24895. | ^~~~~~~~~~~~~~~
  24896. | ioremap_cache
  24897. 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_test.o] Error 1
  24898. /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]
  24899. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.o
  24900. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  24901. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  24902. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  24903. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_tracker_test.c:24:
  24904. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24905. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24906. 325 | struct timespec ts = {0};
  24907. | ^~~~~~~~
  24908. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24909. 325 | struct timespec ts = {0};
  24910. | ^
  24911. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24912. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24913. 325 | struct timespec ts = {0};
  24914. | ^~
  24915. /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]
  24916. 327 | getrawmonotonic(&ts);
  24917. | ^~~~~~~~~~~~~~~
  24918. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24919. 325 | struct timespec ts = {0};
  24920. | ^~
  24921. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24922. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_push_test.c:26:
  24923. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24924. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  24925. 325 | struct timespec ts = {0};
  24926. | ^~~~~~~~
  24927. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  24928. 325 | struct timespec ts = {0};
  24929. | ^
  24930. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  24931. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  24932. 325 | struct timespec ts = {0};
  24933. | ^~
  24934. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24935. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24936. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  24937. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  24938. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  24939. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  24940. | ^~~~~~~~~
  24941. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  24942. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24943. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24944. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  24945. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  24946. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  24947. | ^~~~~~~~~
  24948. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  24949. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24950. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  24951. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  24952. /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]
  24953. 578 | void *ptr = ioremap_nocache(phys, size);
  24954. | ^~~~~~~~~~~~~~~
  24955. | ioremap_cache
  24956. /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]
  24957. /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]
  24958. 327 | getrawmonotonic(&ts);
  24959. | ^~~~~~~~~~~~~~~
  24960. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24961. 325 | struct timespec ts = {0};
  24962. | ^~
  24963. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  24964. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  24965. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  24966. /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
  24967. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  24968. | ^~~~~~~
  24969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  24970. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  24971. 39 | *tv = (struct timeval) {
  24972. | ^~~
  24973. /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'
  24974. 40 | .tv_sec = now.tv_sec,
  24975. | ^~~~~~
  24976. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  24977. 40 | .tv_sec = now.tv_sec,
  24978. | ^~~
  24979. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  24980. /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'
  24981. 41 | .tv_usec = now.tv_nsec/1000,
  24982. | ^~~~~~~
  24983. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  24984. 41 | .tv_usec = now.tv_nsec/1000,
  24985. | ^~~
  24986. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  24987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  24988. 39 | *tv = (struct timeval) {
  24989. | ^
  24990. /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]
  24991. 327 | getrawmonotonic(&ts);
  24992. | ^~~~~~~~~~~~~~~
  24993. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  24994. 325 | struct timespec ts = {0};
  24995. | ^~
  24996. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:28,
  24997. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel_test.c:24:
  24998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  24999. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25000. 325 | struct timespec ts = {0};
  25001. | ^~~~~~~~
  25002. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25003. 325 | struct timespec ts = {0};
  25004. | ^
  25005. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25006. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25007. 325 | struct timespec ts = {0};
  25008. | ^~
  25009. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25010. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  25011. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  25012. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  25013. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  25014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25015. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25016. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25017. | ^~~~~~~~~
  25018. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25019. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25020. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  25021. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  25022. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  25023. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  25024. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25025. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25026. | ^~~~~~~~~
  25027. /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]
  25028. 327 | getrawmonotonic(&ts);
  25029. | ^~~~~~~~~~~~~~~
  25030. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25031. 325 | struct timespec ts = {0};
  25032. | ^~
  25033. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25034. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  25035. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  25036. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  25037. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  25038. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25039. /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]
  25040. 578 | void *ptr = ioremap_nocache(phys, size);
  25041. | ^~~~~~~~~~~~~~~
  25042. | ioremap_cache
  25043. /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]
  25044. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25045. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25046. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  25047. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  25048. /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
  25049. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25050. | ^~~~~~~
  25051. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25052. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25053. 39 | *tv = (struct timeval) {
  25054. | ^~~
  25055. /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'
  25056. 40 | .tv_sec = now.tv_sec,
  25057. | ^~~~~~
  25058. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25059. 40 | .tv_sec = now.tv_sec,
  25060. | ^~~
  25061. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25062. /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'
  25063. 41 | .tv_usec = now.tv_nsec/1000,
  25064. | ^~~~~~~
  25065. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25066. 41 | .tv_usec = now.tv_nsec/1000,
  25067. | ^~~
  25068. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25069. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25070. 39 | *tv = (struct timeval) {
  25071. | ^
  25072. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:28,
  25073. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu_semaphore.h:28,
  25074. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_channel.h:29,
  25075. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_ce_test.c:24:
  25076. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25077. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25078. 325 | struct timespec ts = {0};
  25079. | ^~~~~~~~
  25080. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25081. 325 | struct timespec ts = {0};
  25082. | ^
  25083. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25085. 325 | struct timespec ts = {0};
  25086. | ^~
  25087. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25088. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25089. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  25090. /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
  25091. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25092. | ^~~~~~~
  25093. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25094. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25095. 39 | *tv = (struct timeval) {
  25096. | ^~~
  25097. /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'
  25098. 40 | .tv_sec = now.tv_sec,
  25099. | ^~~~~~
  25100. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25101. 40 | .tv_sec = now.tv_sec,
  25102. | ^~~
  25103. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25104. /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'
  25105. 41 | .tv_usec = now.tv_nsec/1000,
  25106. | ^~~~~~~
  25107. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25108. 41 | .tv_usec = now.tv_nsec/1000,
  25109. | ^~~
  25110. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25111. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25112. 39 | *tv = (struct timeval) {
  25113. | ^
  25114. cc1: some warnings being treated as errors
  25115. /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]
  25116. 327 | getrawmonotonic(&ts);
  25117. | ^~~~~~~~~~~~~~~
  25118. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25119. 325 | struct timespec ts = {0};
  25120. | ^~
  25121. 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_page_tree_test.o] Error 1
  25122. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.o
  25123. /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]
  25124. 331 | }
  25125. | ^
  25126. cc1: some warnings being treated as errors
  25127. 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_test.o] Error 1
  25128. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.o
  25129. cc1: some warnings being treated as errors
  25130. 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_test.o] Error 1
  25131. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.o
  25132. cc1: some warnings being treated as errors
  25133. 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_test.o] Error 1
  25134. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.o
  25135. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25136. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25137. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  25138. /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
  25139. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25140. | ^~~~~~~
  25141. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25142. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25143. 39 | *tv = (struct timeval) {
  25144. | ^~~
  25145. /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'
  25146. 40 | .tv_sec = now.tv_sec,
  25147. | ^~~~~~
  25148. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25149. 40 | .tv_sec = now.tv_sec,
  25150. | ^~~
  25151. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25152. /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'
  25153. 41 | .tv_usec = now.tv_nsec/1000,
  25154. | ^~~~~~~
  25155. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25156. 41 | .tv_usec = now.tv_nsec/1000,
  25157. | ^~~
  25158. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25159. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25160. 39 | *tv = (struct timeval) {
  25161. | ^
  25162. cc1: some warnings being treated as errors
  25163. 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_ce_test.o] Error 1
  25164. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o
  25165. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25166. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25167. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  25168. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25169. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25170. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25171. | ^~~~~~~~~
  25172. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25173. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25174. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25175. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  25176. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25177. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25178. | ^~~~~~~~~
  25179. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25180. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25181. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  25182. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25183. /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]
  25184. 578 | void *ptr = ioremap_nocache(phys, size);
  25185. | ^~~~~~~~~~~~~~~
  25186. | ioremap_cache
  25187. /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]
  25188. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25189. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25190. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  25191. /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
  25192. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25193. | ^~~~~~~
  25194. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25195. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25196. 39 | *tv = (struct timeval) {
  25197. | ^~~
  25198. /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'
  25199. 40 | .tv_sec = now.tv_sec,
  25200. | ^~~~~~
  25201. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25202. 40 | .tv_sec = now.tv_sec,
  25203. | ^~~
  25204. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25205. /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'
  25206. 41 | .tv_usec = now.tv_nsec/1000,
  25207. | ^~~~~~~
  25208. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25209. 41 | .tv_usec = now.tv_nsec/1000,
  25210. | ^~~
  25211. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25212. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25213. 39 | *tv = (struct timeval) {
  25214. | ^
  25215. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25216. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock_test.c:24:
  25217. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25218. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25219. 325 | struct timespec ts = {0};
  25220. | ^~~~~~~~
  25221. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25222. 325 | struct timespec ts = {0};
  25223. | ^
  25224. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25225. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25226. 325 | struct timespec ts = {0};
  25227. | ^~
  25228. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25229. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  25230. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25231. /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
  25232. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25233. | ^~~~~~~
  25234. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25235. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25236. 39 | *tv = (struct timeval) {
  25237. | ^~~
  25238. /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'
  25239. 40 | .tv_sec = now.tv_sec,
  25240. | ^~~~~~
  25241. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25242. 40 | .tv_sec = now.tv_sec,
  25243. | ^~~
  25244. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25245. /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'
  25246. 41 | .tv_usec = now.tv_nsec/1000,
  25247. | ^~~~~~~
  25248. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25249. 41 | .tv_usec = now.tv_nsec/1000,
  25250. | ^~~
  25251. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25252. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25253. 39 | *tv = (struct timeval) {
  25254. | ^
  25255. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25256. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  25257. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  25258. /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
  25259. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25260. | ^~~~~~~
  25261. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25262. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25263. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  25264. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  25265. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25267. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25268. | ^~~~~~~~~
  25269. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25270. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25271. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25272. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  25273. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  25274. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25275. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25276. | ^~~~~~~~~
  25277. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25279. 39 | *tv = (struct timeval) {
  25280. | ^~~
  25281. /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'
  25282. 40 | .tv_sec = now.tv_sec,
  25283. | ^~~~~~
  25284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25285. 40 | .tv_sec = now.tv_sec,
  25286. | ^~~
  25287. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25288. /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'
  25289. 41 | .tv_usec = now.tv_nsec/1000,
  25290. | ^~~~~~~
  25291. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25292. 41 | .tv_usec = now.tv_nsec/1000,
  25293. | ^~~
  25294. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25296. 39 | *tv = (struct timeval) {
  25297. | ^
  25298. /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]
  25299. 327 | getrawmonotonic(&ts);
  25300. | ^~~~~~~~~~~~~~~
  25301. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25302. 325 | struct timespec ts = {0};
  25303. | ^~
  25304. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25305. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25306. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  25307. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  25308. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25309. /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]
  25310. 578 | void *ptr = ioremap_nocache(phys, size);
  25311. | ^~~~~~~~~~~~~~~
  25312. | ioremap_cache
  25313. /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]
  25314. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25315. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25316. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  25317. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25318. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25319. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25320. | ^~~~~~~~~
  25321. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25322. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25323. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25324. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  25325. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25326. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25327. | ^~~~~~~~~
  25328. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25329. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils.h:27,
  25330. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_utils_test.c:24:
  25331. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25332. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25333. 325 | struct timespec ts = {0};
  25334. | ^~~~~~~~
  25335. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25336. 325 | struct timespec ts = {0};
  25337. | ^
  25338. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25339. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25340. 325 | struct timespec ts = {0};
  25341. | ^~
  25342. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25343. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25344. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  25345. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25346. /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]
  25347. 578 | void *ptr = ioremap_nocache(phys, size);
  25348. | ^~~~~~~~~~~~~~~
  25349. | ioremap_cache
  25350. /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]
  25351. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25352. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25353. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  25354. /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
  25355. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25356. | ^~~~~~~
  25357. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25358. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25359. 39 | *tv = (struct timeval) {
  25360. | ^~~
  25361. /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'
  25362. 40 | .tv_sec = now.tv_sec,
  25363. | ^~~~~~
  25364. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25365. 40 | .tv_sec = now.tv_sec,
  25366. | ^~~
  25367. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25368. /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'
  25369. 41 | .tv_usec = now.tv_nsec/1000,
  25370. | ^~~~~~~
  25371. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25372. 41 | .tv_usec = now.tv_nsec/1000,
  25373. | ^~~
  25374. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25375. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25376. 39 | *tv = (struct timeval) {
  25377. | ^
  25378. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25379. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc_test.c:24:
  25380. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25382. 325 | struct timespec ts = {0};
  25383. | ^~~~~~~~
  25384. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25385. 325 | struct timespec ts = {0};
  25386. | ^
  25387. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25388. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25389. 325 | struct timespec ts = {0};
  25390. | ^~
  25391. /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]
  25392. 327 | getrawmonotonic(&ts);
  25393. | ^~~~~~~~~~~~~~~
  25394. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25395. 325 | struct timespec ts = {0};
  25396. | ^~
  25397. cc1: some warnings being treated as errors
  25398. 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_test.o] Error 1
  25399. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o
  25400. /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]
  25401. 327 | getrawmonotonic(&ts);
  25402. | ^~~~~~~~~~~~~~~
  25403. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25404. 325 | struct timespec ts = {0};
  25405. | ^~
  25406. cc1: some warnings being treated as errors
  25407. 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_test.o] Error 1
  25408. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.o
  25409. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25410. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25411. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  25412. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25413. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25414. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25415. | ^~~~~~~~~
  25416. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25417. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25418. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25419. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  25420. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25421. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25422. | ^~~~~~~~~
  25423. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25424. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25425. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  25426. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25427. /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]
  25428. 578 | void *ptr = ioremap_nocache(phys, size);
  25429. | ^~~~~~~~~~~~~~~
  25430. | ioremap_cache
  25431. /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]
  25432. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25433. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  25434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25435. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25436. 325 | struct timespec ts = {0};
  25437. | ^~~~~~~~
  25438. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25439. 325 | struct timespec ts = {0};
  25440. | ^
  25441. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25443. 325 | struct timespec ts = {0};
  25444. | ^~
  25445. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25446. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25447. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  25448. /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
  25449. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25450. | ^~~~~~~
  25451. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25452. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25453. 39 | *tv = (struct timeval) {
  25454. | ^~~
  25455. /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'
  25456. 40 | .tv_sec = now.tv_sec,
  25457. | ^~~~~~
  25458. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25459. 40 | .tv_sec = now.tv_sec,
  25460. | ^~~
  25461. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25462. /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'
  25463. 41 | .tv_usec = now.tv_nsec/1000,
  25464. | ^~~~~~~
  25465. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25466. 41 | .tv_usec = now.tv_nsec/1000,
  25467. | ^~~
  25468. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25469. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25470. 39 | *tv = (struct timeval) {
  25471. | ^
  25472. /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]
  25473. 327 | getrawmonotonic(&ts);
  25474. | ^~~~~~~~~~~~~~~
  25475. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25476. 325 | struct timespec ts = {0};
  25477. | ^~
  25478. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25479. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25480. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  25481. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25482. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25483. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25484. | ^~~~~~~~~
  25485. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25486. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25487. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25488. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  25489. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25490. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25491. | ^~~~~~~~~
  25492. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25493. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  25494. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  25495. /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
  25496. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25497. | ^~~~~~~
  25498. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25500. 39 | *tv = (struct timeval) {
  25501. | ^~~
  25502. /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'
  25503. 40 | .tv_sec = now.tv_sec,
  25504. | ^~~~~~
  25505. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25506. 40 | .tv_sec = now.tv_sec,
  25507. | ^~~
  25508. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25509. /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'
  25510. 41 | .tv_usec = now.tv_nsec/1000,
  25511. | ^~~~~~~
  25512. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25513. 41 | .tv_usec = now.tv_nsec/1000,
  25514. | ^~~
  25515. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25516. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25517. 39 | *tv = (struct timeval) {
  25518. | ^
  25519. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25520. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25521. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  25522. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25523. /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]
  25524. 578 | void *ptr = ioremap_nocache(phys, size);
  25525. | ^~~~~~~~~~~~~~~
  25526. | ioremap_cache
  25527. /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]
  25528. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25529. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  25530. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25531. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25532. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25533. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25534. | ^~~~~~~~~
  25535. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25536. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25537. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  25538. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25539. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25540. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25541. | ^~~~~~~~~
  25542. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25543. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  25544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25545. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25546. 325 | struct timespec ts = {0};
  25547. | ^~~~~~~~
  25548. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25549. 325 | struct timespec ts = {0};
  25550. | ^
  25551. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25552. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25553. 325 | struct timespec ts = {0};
  25554. | ^~
  25555. cc1: some warnings being treated as errors
  25556. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25557. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  25558. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25559. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25560. /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]
  25561. 578 | void *ptr = ioremap_nocache(phys, size);
  25562. | ^~~~~~~~~~~~~~~
  25563. | ioremap_cache
  25564. /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]
  25565. 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_test.o] Error 1
  25566. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o
  25567. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25568. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  25569. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  25570. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25571. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25572. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25573. | ^~~~~~~~~
  25574. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25575. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25576. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  25577. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  25578. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25579. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25580. | ^~~~~~~~~
  25581. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  25582. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25583. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25584. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25585. 325 | struct timespec ts = {0};
  25586. | ^~~~~~~~
  25587. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25588. 325 | struct timespec ts = {0};
  25589. | ^
  25590. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25591. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25592. 325 | struct timespec ts = {0};
  25593. | ^~
  25594. /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]
  25595. 327 | getrawmonotonic(&ts);
  25596. | ^~~~~~~~~~~~~~~
  25597. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25598. 325 | struct timespec ts = {0};
  25599. | ^~
  25600. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25601. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  25602. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  25603. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25604. /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]
  25605. 578 | void *ptr = ioremap_nocache(phys, size);
  25606. | ^~~~~~~~~~~~~~~
  25607. | ioremap_cache
  25608. /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]
  25609. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_kvmalloc.h:27,
  25610. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_module_test.c:24:
  25611. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25612. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25613. 325 | struct timespec ts = {0};
  25614. | ^~~~~~~~
  25615. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25616. 325 | struct timespec ts = {0};
  25617. | ^
  25618. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25619. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25620. 325 | struct timespec ts = {0};
  25621. | ^~
  25622. /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]
  25623. 327 | getrawmonotonic(&ts);
  25624. | ^~~~~~~~~~~~~~~
  25625. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25626. 325 | struct timespec ts = {0};
  25627. | ^~
  25628. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25629. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25630. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  25631. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25632. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25633. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25634. | ^~~~~~~~~
  25635. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25636. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25637. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25638. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  25639. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25640. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25641. | ^~~~~~~~~
  25642. /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]
  25643. 327 | getrawmonotonic(&ts);
  25644. | ^~~~~~~~~~~~~~~
  25645. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25646. 325 | struct timespec ts = {0};
  25647. | ^~
  25648. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25649. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25650. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  25651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25652. /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]
  25653. 578 | void *ptr = ioremap_nocache(phys, size);
  25654. | ^~~~~~~~~~~~~~~
  25655. | ioremap_cache
  25656. /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]
  25657. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25658. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
  25659. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25661. 325 | struct timespec ts = {0};
  25662. | ^~~~~~~~
  25663. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25664. 325 | struct timespec ts = {0};
  25665. | ^
  25666. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25667. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25668. 325 | struct timespec ts = {0};
  25669. | ^~
  25670. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  25671. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:25:
  25672. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  25673. /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'?
  25674. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25675. | ^~~~~~~~
  25676. /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'
  25677. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  25678. | ^~~~~~~~
  25679. /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'
  25680. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25681. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25682. /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'?
  25683. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25684. | ^~~~~~~~
  25685. /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'
  25686. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  25687. | ^~~~~~~~
  25688. /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'
  25689. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25690. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25691. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  25692. /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]
  25693. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25694. | ^~~~
  25695. | |
  25696. | int
  25697. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  25698. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  25699. | ^~~~
  25700. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  25701. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  25702. | ^~~~~~~~~~~~~~~
  25703. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  25704. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25705. | ^~~~~~~~~~
  25706. /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'
  25707. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  25708. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25709. /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'
  25710. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25711. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25712. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  25713. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  25714. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  25715. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  25716. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  25717. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  25718. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25719. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25720. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  25721. /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'
  25722. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  25723. | ~~~~~~~~~~~~~~~~~~~~~^~~
  25724. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:24:
  25725. /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]
  25726. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25727. | ^~~~
  25728. | |
  25729. | int
  25730. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  25731. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  25732. | ^~~~
  25733. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  25734. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  25735. | ^~~~~~~~~~~~~~~
  25736. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  25737. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25738. | ^~~~~~~~~~
  25739. /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'
  25740. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  25741. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25742. /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'
  25743. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25744. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25745. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  25746. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_test.c:25:
  25747. /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'
  25748. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  25749. | ~~~~~~^~~~
  25750. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  25751. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25752. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  25753. /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
  25754. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  25755. | ^~~~~~~
  25756. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  25757. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  25758. 39 | *tv = (struct timeval) {
  25759. | ^~~
  25760. /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'
  25761. 40 | .tv_sec = now.tv_sec,
  25762. | ^~~~~~
  25763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  25764. 40 | .tv_sec = now.tv_sec,
  25765. | ^~~
  25766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  25767. /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'
  25768. 41 | .tv_usec = now.tv_nsec/1000,
  25769. | ^~~~~~~
  25770. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  25771. 41 | .tv_usec = now.tv_nsec/1000,
  25772. | ^~~
  25773. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  25774. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  25775. 39 | *tv = (struct timeval) {
  25776. | ^
  25777. /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]
  25778. 327 | getrawmonotonic(&ts);
  25779. | ^~~~~~~~~~~~~~~
  25780. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  25781. 325 | struct timespec ts = {0};
  25782. | ^~
  25783. cc1: some warnings being treated as errors
  25784. 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_test.o] Error 1
  25785. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.o
  25786. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  25787. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  25788. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  25789. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27:
  25790. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  25791. /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'?
  25792. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25793. | ^~~~~~~~
  25794. /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'
  25795. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  25796. | ^~~~~~~~
  25797. /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'
  25798. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25799. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25800. /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'?
  25801. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25802. | ^~~~~~~~
  25803. /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'
  25804. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  25805. | ^~~~~~~~
  25806. /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'
  25807. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25808. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25809. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:28,
  25810. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  25811. /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]
  25812. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25813. | ^~~~
  25814. | |
  25815. | int
  25816. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  25817. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  25818. | ^~~~
  25819. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  25820. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  25821. | ^~~~~~~~~~~~~~~
  25822. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  25823. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25824. | ^~~~~~~~~~
  25825. /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'
  25826. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  25827. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25828. /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'
  25829. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25830. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25831. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  25832. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  25833. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  25834. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  25835. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  25836. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  25837. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25838. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  25839. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  25840. /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'
  25841. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  25842. | ~~~~~~~~~~~~~~~~~~~~~^~~
  25843. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:28,
  25844. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
  25845. /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]
  25846. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25847. | ^~~~
  25848. | |
  25849. | int
  25850. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  25851. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  25852. | ^~~~
  25853. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  25854. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  25855. | ^~~~~~~~~~~~~~~
  25856. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  25857. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25858. | ^~~~~~~~~~
  25859. /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'
  25860. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  25861. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25862. /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'
  25863. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25864. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25865. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_gpu.h:55,
  25866. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:37,
  25867. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_global.h:31,
  25868. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_pmm_sysmem_test.c:27:
  25869. /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'
  25870. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  25871. | ~~~~~~^~~~
  25872. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  25873. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25874. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_range.h: In function 'uvm_va_range_vma_check':
  25875. /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'?
  25876. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25877. | ^~~~~~~~
  25878. /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'
  25879. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  25880. | ^~~~~~~~
  25881. /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'
  25882. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25883. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25884. /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'?
  25885. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25886. | ^~~~~~~~
  25887. /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'
  25888. 533 | typeof(mmap_sem) _sem = (mmap_sem); \
  25889. | ^~~~~~~~
  25890. /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'
  25891. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25892. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25893. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  25894. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  25895. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25896. /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]
  25897. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25898. | ^~~~
  25899. | |
  25900. | int
  25901. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  25902. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  25903. | ^~~~
  25904. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  25905. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  25906. | ^~~~~~~~~~~~~~~
  25907. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  25908. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25909. | ^~~~~~~~~~
  25910. /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'
  25911. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  25912. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25913. /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'
  25914. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25915. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25916. cc1: some warnings being treated as errors
  25917. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm_types.h:11,
  25918. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmzone.h:21,
  25919. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/gfp.h:6,
  25920. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:10,
  25921. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-pgprot.h:17,
  25922. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:20,
  25923. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25924. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:27,
  25925. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25926. /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'
  25927. 57 | static inline int rwsem_is_locked(struct rw_semaphore *sem)
  25928. | ~~~~~~~~~~~~~~~~~~~~~^~~
  25929. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_processors.h:28,
  25930. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:29,
  25931. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25932. /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]
  25933. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25934. | ^~~~
  25935. | |
  25936. | int
  25937. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:126:47: note: in definition of macro 'UVM_IGNORE_EXPR'
  25938. 126 | #define UVM_IGNORE_EXPR(expr) ((void)sizeof(!(expr)))
  25939. | ^~~~
  25940. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:156:26: note: in expansion of macro '_UVM_ASSERT_MSG'
  25941. 156 | #define UVM_ASSERT(expr) _UVM_ASSERT_MSG(expr, #expr, "\n")
  25942. | ^~~~~~~~~~~~~~~
  25943. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_lock.h:534:7: note: in expansion of macro 'UVM_ASSERT'
  25944. 534 | UVM_ASSERT(rwsem_is_locked(_sem) && uvm_check_locked_mmap_sem(_sem, (mode))); \
  25945. | ^~~~~~~~~~
  25946. /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'
  25947. 537 | #define uvm_assert_mmap_sem_locked(mmap_sem) uvm_assert_mmap_sem_locked_mode((mmap_sem), UVM_LOCK_MODE_ANY)
  25948. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25949. /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'
  25950. 679 | uvm_assert_mmap_sem_locked(&vma->vm_mm->mmap_sem);
  25951. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  25952. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events.h:31,
  25953. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_perf_events_test.c:24:
  25954. /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'
  25955. 502 | static bool uvm_check_locked(void *lock, uvm_lock_mode_t mode)
  25956. | ~~~~~~^~~~
  25957. 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_test.o] Error 1
  25958. cc1: some warnings being treated as errors
  25959. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.o
  25960. 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_test.o] Error 1
  25961. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.o
  25962. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25963. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25964. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  25965. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  25966. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  25967. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  25968. | ^~~~~~~~~
  25969. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  25970. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25971. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25972. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  25973. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  25974. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  25975. | ^~~~~~~~~
  25976. cc1: some warnings being treated as errors
  25977. 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_test.o] Error 1
  25978. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  25979. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25980. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  25981. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  25982. /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]
  25983. 578 | void *ptr = ioremap_nocache(phys, size);
  25984. | ^~~~~~~~~~~~~~~
  25985. | ioremap_cache
  25986. /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]
  25987. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm.o
  25988. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  25989. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
  25990. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  25991. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  25992. 325 | struct timespec ts = {0};
  25993. | ^~~~~~~~
  25994. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  25995. 325 | struct timespec ts = {0};
  25996. | ^
  25997. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  25998. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  25999. 325 | struct timespec ts = {0};
  26000. | ^~
  26001. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26002. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  26003. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  26004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26005. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26006. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26007. | ^~~~~~~~~
  26008. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26009. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26010. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  26011. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  26012. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26013. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26014. | ^~~~~~~~~
  26015. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26016. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  26017. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  26018. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26019. /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]
  26020. 578 | void *ptr = ioremap_nocache(phys, size);
  26021. | ^~~~~~~~~~~~~~~
  26022. | ioremap_cache
  26023. /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]
  26024. /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]
  26025. 327 | getrawmonotonic(&ts);
  26026. | ^~~~~~~~~~~~~~~
  26027. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  26028. 325 | struct timespec ts = {0};
  26029. | ^~
  26030. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_gpu.h:31,
  26031. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_mmu_test.c:24:
  26032. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  26033. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  26034. 325 | struct timespec ts = {0};
  26035. | ^~~~~~~~
  26036. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  26037. 325 | struct timespec ts = {0};
  26038. | ^
  26039. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  26040. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  26041. 325 | struct timespec ts = {0};
  26042. | ^~
  26043. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  26044. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  26045. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  26046. /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
  26047. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  26048. | ^~~~~~~
  26049. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  26050. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-drv.o
  26051. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  26052. 39 | *tv = (struct timeval) {
  26053. | ^~~
  26054. /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'
  26055. 40 | .tv_sec = now.tv_sec,
  26056. | ^~~~~~
  26057. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  26058. 40 | .tv_sec = now.tv_sec,
  26059. | ^~~
  26060. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  26061. /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'
  26062. 41 | .tv_usec = now.tv_nsec/1000,
  26063. | ^~~~~~~
  26064. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  26065. 41 | .tv_usec = now.tv_nsec/1000,
  26066. | ^~~
  26067. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  26068. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  26069. 39 | *tv = (struct timeval) {
  26070. | ^
  26071. cc1: some warnings being treated as errors
  26072. 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_get_rm_ptes_test.o] Error 1
  26073. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-utils.o
  26074. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-drv.c:27:
  26075. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-fb.h:30:10: fatal error: drm/drmP.h: No such file or directory
  26076. 30 | #include <drm/drmP.h>
  26077. | ^~~~~~~~~~~~
  26078. compilation terminated.
  26079. 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-drm/nvidia-drm-drv.o] Error 1
  26080. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-crtc.o
  26081. /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]
  26082. 327 | getrawmonotonic(&ts);
  26083. | ^~~~~~~~~~~~~~~
  26084. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  26085. 325 | struct timespec ts = {0};
  26086. | ^~
  26087. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-utils.c:28:
  26088. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-utils.h:30:10: fatal error: drm/drmP.h: No such file or directory
  26089. 30 | #include <drm/drmP.h>
  26090. | ^~~~~~~~~~~~
  26091. compilation terminated.
  26092. 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-drm/nvidia-drm-utils.o] Error 1
  26093. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-crtc.c:29:
  26094. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-crtc.h:32:10: fatal error: drm/drmP.h: No such file or directory
  26095. 32 | #include <drm/drmP.h>
  26096. | ^~~~~~~~~~~~
  26097. compilation terminated.
  26098. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.o
  26099. 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-drm/nvidia-drm-crtc.o] Error 1
  26100. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:38,
  26101. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26102. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  26103. /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
  26104. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  26105. | ^~~~~~~
  26106. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  26107. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  26108. 39 | *tv = (struct timeval) {
  26109. | ^~~
  26110. /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'
  26111. 40 | .tv_sec = now.tv_sec,
  26112. | ^~~~~~
  26113. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-connector.o
  26114. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  26115. 40 | .tv_sec = now.tv_sec,
  26116. | ^~~
  26117. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  26118. /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'
  26119. 41 | .tv_usec = now.tv_nsec/1000,
  26120. | ^~~~~~~
  26121. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  26122. 41 | .tv_usec = now.tv_nsec/1000,
  26123. | ^~~
  26124. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  26125. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  26126. 39 | *tv = (struct timeval) {
  26127. | ^
  26128. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-connector.c:29:
  26129. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-connector.h:30:10: fatal error: drm/drmP.h: No such file or directory
  26130. 30 | #include <drm/drmP.h>
  26131. | ^~~~~~~~~~~~
  26132. compilation terminated.
  26133. 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-drm/nvidia-drm-connector.o] Error 1
  26134. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem.o
  26135. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-fb.o
  26136. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26137. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26138. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  26139. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26140. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26141. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26142. | ^~~~~~~~~
  26143. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26144. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26145. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26146. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  26147. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26148. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26149. | ^~~~~~~~~
  26150. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-fb.c:29:
  26151. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-fb.h:30:10: fatal error: drm/drmP.h: No such file or directory
  26152. 30 | #include <drm/drmP.h>
  26153. | ^~~~~~~~~~~~
  26154. compilation terminated.
  26155. 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-drm/nvidia-drm-fb.o] Error 1
  26156. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-modeset.o
  26157. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26158. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26159. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  26160. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26161. /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]
  26162. 578 | void *ptr = ioremap_nocache(phys, size);
  26163. | ^~~~~~~~~~~~~~~
  26164. | ioremap_cache
  26165. /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]
  26166. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-modeset.c:28:
  26167. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-modeset.h:30:10: fatal error: drm/drmP.h: No such file or directory
  26168. 30 | #include <drm/drmP.h>
  26169. | ^~~~~~~~~~~~
  26170. compilation terminated.
  26171. 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-drm/nvidia-drm-modeset.o] Error 1
  26172. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-prime-fence.o
  26173. cc1: some warnings being treated as errors
  26174. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26175. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
  26176. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  26177. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  26178. 325 | struct timespec ts = {0};
  26179. | ^~~~~~~~
  26180. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  26181. 325 | struct timespec ts = {0};
  26182. | ^
  26183. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  26184. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  26185. 325 | struct timespec ts = {0};
  26186. | ^~
  26187. 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_fault_buffer_flush_test.o] Error 1
  26188. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-linux.o
  26189. /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]
  26190. 327 | getrawmonotonic(&ts);
  26191. | ^~~~~~~~~~~~~~~
  26192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  26193. 325 | struct timespec ts = {0};
  26194. | ^~
  26195. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-helper.o
  26196. cc1: some warnings being treated as errors
  26197. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-helper.c:34:10: fatal error: drm/drmP.h: No such file or directory
  26198. 34 | #include <drm/drmP.h>
  26199. | ^~~~~~~~~~~~
  26200. compilation terminated.
  26201. 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-drm/nvidia-drm-helper.o] Error 1
  26202. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nv-pci-table.o
  26203. 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_test.o] Error 1
  26204. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o
  26205. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  26206. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:33:30: error: field 'base' has incomplete type
  26207. 33 | struct nv_drm_gem_object base;
  26208. | ^~~~
  26209. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:37:5: error: unknown type name 'bool'
  26210. 37 | bool dumb_buffer;
  26211. | ^~~~
  26212. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h: In function 'to_nv_nvkms_memory':
  26213. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:46:19: error: 'NULL' undeclared (first use in this function)
  26214. 46 | if (nv_gem != NULL) {
  26215. | ^~~~
  26216. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:31:1: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
  26217. 30 | #include "nvidia-drm-gem.h"
  26218. +++ |+#include <stddef.h>
  26219. 31 |
  26220. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:46:19: note: each undeclared identifier is reported only once for each function it appears in
  26221. 46 | if (nv_gem != NULL) {
  26222. | ^~~~
  26223. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:47:16: error: implicit declaration of function 'container_of' [-Werror=implicit-function-declaration]
  26224. 47 | return container_of(nv_gem, struct nv_drm_gem_nvkms_memory, base);
  26225. | ^~~~~~~~~~~~
  26226. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:47:37: error: expected expression before 'struct'
  26227. 47 | return container_of(nv_gem, struct nv_drm_gem_nvkms_memory, base);
  26228. | ^~~~~~
  26229. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h: In function 'to_nv_nvkms_memory_const':
  26230. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:56:19: error: 'NULL' undeclared (first use in this function)
  26231. 56 | if (nv_gem != NULL) {
  26232. | ^~~~
  26233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:56:19: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
  26234. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:57:37: error: expected expression before 'struct'
  26235. 57 | return container_of(nv_gem, struct nv_drm_gem_nvkms_memory, base);
  26236. | ^~~~~~
  26237. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h: At top level:
  26238. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:67:5: error: unknown type name 'u32'
  26239. 67 | u32 handle)
  26240. | ^~~
  26241. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:83:36: warning: 'struct drm_mode_create_dumb' declared inside parameter list will not be visible outside of this definition or declaration
  26242. 83 | struct drm_device *dev, struct drm_mode_create_dumb *args);
  26243. | ^~~~~~~~~~~~~~~~~~~~
  26244. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:83:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26245. 83 | struct drm_device *dev, struct drm_mode_create_dumb *args);
  26246. | ^~~~~~~~~~
  26247. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:82:12: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  26248. 82 | struct drm_file *file_priv,
  26249. | ^~~~~~~~
  26250. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:86:61: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  26251. 86 | void *data, struct drm_file *filep);
  26252. | ^~~~~~~~
  26253. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:85:49: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26254. 85 | int nv_drm_gem_import_nvkms_memory_ioctl(struct drm_device *dev,
  26255. | ^~~~~~~~~~
  26256. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:89:61: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  26257. 89 | void *data, struct drm_file *filep);
  26258. | ^~~~~~~~
  26259. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:88:49: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26260. 88 | int nv_drm_gem_export_nvkms_memory_ioctl(struct drm_device *dev,
  26261. | ^~~~~~~~~~
  26262. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:38:
  26263. /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
  26264. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  26265. | ^~~~~~~
  26266. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  26267. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  26268. 39 | *tv = (struct timeval) {
  26269. | ^~~
  26270. /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'
  26271. 40 | .tv_sec = now.tv_sec,
  26272. | ^~~~~~
  26273. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  26274. 40 | .tv_sec = now.tv_sec,
  26275. | ^~~
  26276. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  26277. /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'
  26278. 41 | .tv_usec = now.tv_nsec/1000,
  26279. | ^~~~~~~
  26280. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  26281. 41 | .tv_usec = now.tv_nsec/1000,
  26282. | ^~~
  26283. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  26284. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  26285. 39 | *tv = (struct timeval) {
  26286. | ^
  26287. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c: In function 'nvkms_get_usec':
  26288. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:219:20: error: storage size of 'tv' isn't known
  26289. 219 | struct timeval tv;
  26290. | ^~
  26291. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:219:20: warning: unused variable 'tv' [-Wunused-variable]
  26292. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:92:52: error: unknown type name 'uint32_t'
  26293. 92 | struct drm_device *dev, uint32_t handle,
  26294. | ^~~~~~~~
  26295. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:93:28: error: unknown type name 'uint64_t'
  26296. 93 | uint64_t *offset);
  26297. | ^~~~~~~~
  26298. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:35:
  26299. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c: In function 'nvkms_add_proc_file':
  26300. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:1006:41: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  26301. 1006 | &nv_procfs_nvkms_proc_fops,
  26302. | ^~~~~~~~~~~~~~~~~~~~~~~~~~
  26303. | |
  26304. | const struct file_operations *
  26305. /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'
  26306. 39 | proc_create_data(name, mode, parent, fops, __data)
  26307. | ^~~~
  26308. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:16,
  26309. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:35:
  26310. /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 *'
  26311. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  26312. | ^~~~~~~~~~~~~~~~
  26313. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:96:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26314. 96 | struct drm_device *dev,
  26315. | ^~~~~~~~~~
  26316. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c: In function 'nvkms_get_usec':
  26317. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-modeset/nvidia-modeset-linux.c:224:1: warning: control reaches end of non-void function [-Wreturn-type]
  26318. 224 | }
  26319. | ^
  26320. cc1: some warnings being treated as errors
  26321. 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-modeset/nvidia-modeset-linux.o] Error 1
  26322. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o
  26323. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26324. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  26325. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  26326. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26328. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26329. | ^~~~~~~~~
  26330. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26331. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26332. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  26333. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  26334. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26335. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26336. | ^~~~~~~~~
  26337. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26338. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  26339. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  26340. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26341. /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]
  26342. 578 | void *ptr = ioremap_nocache(phys, size);
  26343. | ^~~~~~~~~~~~~~~
  26344. | ioremap_cache
  26345. /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]
  26346. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26347. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26348. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  26349. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26351. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26352. | ^~~~~~~~~
  26353. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26354. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26355. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26356. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  26357. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26358. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26359. | ^~~~~~~~~
  26360. cc1: some warnings being treated as errors
  26361. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_common.h:48,
  26362. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_va_block_test.c:24:
  26363. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  26364. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  26365. 325 | struct timespec ts = {0};
  26366. | ^~~~~~~~
  26367. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  26368. 325 | struct timespec ts = {0};
  26369. | ^
  26370. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  26371. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  26372. 325 | struct timespec ts = {0};
  26373. | ^~
  26374. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:41,
  26375. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26376. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  26377. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26378. /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]
  26379. 578 | void *ptr = ioremap_nocache(phys, size);
  26380. | ^~~~~~~~~~~~~~~
  26381. | ioremap_cache
  26382. /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]
  26383. 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_peer_identity_mappings_test.o] Error 1
  26384. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_test.h:27,
  26385. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm8_range_group_tree_test.c:24:
  26386. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h: In function 'NV_GETTIME':
  26387. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:12: error: variable 'ts' has initializer but incomplete type
  26388. 325 | struct timespec ts = {0};
  26389. | ^~~~~~~~
  26390. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: warning: excess elements in struct initializer
  26391. 325 | struct timespec ts = {0};
  26392. | ^
  26393. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:27: note: (near initialization for 'ts')
  26394. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: error: storage size of 'ts' isn't known
  26395. 325 | struct timespec ts = {0};
  26396. | ^~
  26397. /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]
  26398. 327 | getrawmonotonic(&ts);
  26399. | ^~~~~~~~~~~~~~~
  26400. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  26401. 325 | struct timespec ts = {0};
  26402. | ^~
  26403. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.c:28:
  26404. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.h:60:42: warning: 'struct nv_drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26405. 60 | void nv_drm_handle_display_change(struct nv_drm_device *nv_dev,
  26406. | ^~~~~~~~~~~~~
  26407. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.h:63:53: warning: 'struct nv_drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26408. 63 | void nv_drm_handle_dynamic_display_connected(struct nv_drm_device *nv_dev,
  26409. | ^~~~~~~~~~~~~
  26410. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-encoder.c:29:
  26411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-utils.h:30:10: fatal error: drm/drmP.h: No such file or directory
  26412. 30 | #include <drm/drmP.h>
  26413. | ^~~~~~~~~~~~
  26414. compilation terminated.
  26415. 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-drm/nvidia-drm-encoder.o] Error 1
  26416. /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]
  26417. 327 | getrawmonotonic(&ts);
  26418. | ^~~~~~~~~~~~~~~
  26419. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-uvm/uvm_linux.h:325:21: warning: unused variable 'ts' [-Wunused-variable]
  26420. 325 | struct timespec ts = {0};
  26421. | ^~
  26422. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function '__nv_drm_gem_nvkms_memory_free':
  26423. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:34:42: error: dereferencing pointer to incomplete type 'struct nv_drm_gem_object'
  26424. 34 | struct nv_drm_device *nv_dev = nv_gem->nv_dev;
  26425. | ^~
  26426. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:40:13: error: implicit declaration of function 'iounmap'; did you mean 'do_munmap'? [-Werror=implicit-function-declaration]
  26427. 40 | iounmap(nv_nvkms_memory->pWriteCombinedIORemapAddress);
  26428. | ^~~~~~~
  26429. | do_munmap
  26430. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:43:9: error: 'nvKms' undeclared (first use in this function)
  26431. 43 | nvKms->unmapMemory(nv_dev->pDevice,
  26432. | ^~~~~
  26433. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:43:34: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  26434. 43 | nvKms->unmapMemory(nv_dev->pDevice,
  26435. | ^~
  26436. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:45:28: error: 'NVKMS_KAPI_MAPPING_TYPE_USER' undeclared (first use in this function)
  26437. 45 | NVKMS_KAPI_MAPPING_TYPE_USER,
  26438. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:53:5: error: implicit declaration of function 'nv_drm_free' [-Werror=implicit-function-declaration]
  26440. 53 | nv_drm_free(nv_nvkms_memory);
  26441. | ^~~~~~~~~~~
  26442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  26443. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:57:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26444. 57 | struct drm_device *dev,
  26445. | ^~~~~~~~~~
  26446. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:60:14: error: variable 'nv_gem_nvkms_memory_ops' has initializer but incomplete type
  26447. 60 | const struct nv_drm_gem_object_funcs nv_gem_nvkms_memory_ops = {
  26448. | ^~~~~~~~~~~~~~~~~~~~~~~
  26449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:61:6: error: 'const struct nv_drm_gem_object_funcs' has no member named 'free'
  26450. 61 | .free = __nv_drm_gem_nvkms_memory_free,
  26451. | ^~~~
  26452. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:61:13: warning: excess elements in struct initializer
  26453. 61 | .free = __nv_drm_gem_nvkms_memory_free,
  26454. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26455. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:61:13: note: (near initialization for 'nv_gem_nvkms_memory_ops')
  26456. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:62:6: error: 'const struct nv_drm_gem_object_funcs' has no member named 'prime_dup'
  26457. 62 | .prime_dup = __nv_drm_gem_nvkms_prime_dup,
  26458. | ^~~~~~~~~
  26459. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:62:18: warning: excess elements in struct initializer
  26460. 62 | .prime_dup = __nv_drm_gem_nvkms_prime_dup,
  26461. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26462. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:62:18: note: (near initialization for 'nv_gem_nvkms_memory_ops')
  26463. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:67:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26464. 67 | struct drm_device *dev, struct drm_mode_create_dumb *args)
  26465. | ^~~~~~~~~~
  26466. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:66:12: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  26467. 66 | struct drm_file *file_priv,
  26468. | ^~~~~~~~
  26469. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:65:5: error: conflicting types for 'nv_drm_dumb_create'
  26470. 65 | int nv_drm_dumb_create(
  26471. | ^~~~~~~~~~~~~~~~~~
  26472. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  26473. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:81:5: note: previous declaration of 'nv_drm_dumb_create' was here
  26474. 81 | int nv_drm_dumb_create(
  26475. | ^~~~~~~~~~~~~~~~~~
  26476. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function 'nv_drm_dumb_create':
  26477. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:69:36: error: implicit declaration of function 'to_nv_device' [-Werror=implicit-function-declaration]
  26478. 69 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  26479. | ^~~~~~~~~~~~
  26480. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:69:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26481. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/asm-generic/bug.h:19,
  26482. from /usr/src/linux-headers-5.8.0-kali3-common/arch/x86/include/asm/bug.h:92,
  26483. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/bug.h:5,
  26484. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmdebug.h:5,
  26485. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:9,
  26486. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-mm.h:80,
  26487. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:30:
  26488. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:74:33: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  26489. 74 | nv_dev->pitchAlignment);
  26490. | ^~
  26491. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/kernel.h:108:9: note: in definition of macro 'roundup'
  26492. 108 | typeof(y) __y = y; \
  26493. | ^
  26494. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:83:13: error: implicit declaration of function 'nv_drm_calloc' [-Werror=implicit-function-declaration]
  26495. 83 | nv_drm_calloc(1, sizeof(*nv_nvkms_memory))) == NULL) {
  26496. | ^~~~~~~~~~~~~
  26497. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:82:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26498. 82 | if ((nv_nvkms_memory =
  26499. | ^
  26500. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:89:13: error: 'nvKms' undeclared (first use in this function)
  26501. 89 | nvKms->allocateMemory(nv_dev->pDevice, args->size)) == NULL) {
  26502. | ^~~~~
  26503. cc1: some warnings being treated as errors
  26504. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:91:9: error: implicit declaration of function 'NV_DRM_DEV_LOG_ERR' [-Werror=implicit-function-declaration]
  26505. 91 | NV_DRM_DEV_LOG_ERR(
  26506. | ^~~~~~~~~~~~~~~~~~
  26507. 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_test.o] Error 1
  26508. cc1: some warnings being treated as errors
  26509. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:100:27: error: 'NVKMS_KAPI_MAPPING_TYPE_USER' undeclared (first use in this function)
  26510. 100 | NVKMS_KAPI_MAPPING_TYPE_USER,
  26511. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26512. 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_range_group_tree_test.o] Error 1
  26513. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:111:53: error: implicit declaration of function 'ioremap_wc' [-Werror=implicit-function-declaration]
  26514. 111 | nv_nvkms_memory->pWriteCombinedIORemapAddress = ioremap_wc(
  26515. | ^~~~~~~~~~
  26516. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:111:51: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26517. 111 | nv_nvkms_memory->pWriteCombinedIORemapAddress = ioremap_wc(
  26518. | ^
  26519. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:117:5: error: implicit declaration of function 'nv_drm_gem_object_init'; did you mean 'debug_object_init'? [-Werror=implicit-function-declaration]
  26520. 117 | nv_drm_gem_object_init(nv_dev,
  26521. | ^~~~~~~~~~~~~~~~~~~~~~
  26522. | debug_object_init
  26523. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:122:12: error: implicit declaration of function 'nv_drm_gem_handle_create_drop_reference' [-Werror=implicit-function-declaration]
  26524. 122 | return nv_drm_gem_handle_create_drop_reference(file_priv,
  26525. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26526. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  26527. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:138:12: warning: 'struct nv_drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26528. 138 | struct nv_drm_device *nv_dev,
  26529. | ^~~~~~~~~~~~~
  26530. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:155:61: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  26531. 155 | void *data, struct drm_file *filep)
  26532. | ^~~~~~~~
  26533. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:154:49: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26534. 154 | int nv_drm_gem_import_nvkms_memory_ioctl(struct drm_device *dev,
  26535. | ^~~~~~~~~~
  26536. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:154:5: error: conflicting types for 'nv_drm_gem_import_nvkms_memory_ioctl'
  26537. 154 | int nv_drm_gem_import_nvkms_memory_ioctl(struct drm_device *dev,
  26538. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26539. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  26540. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:85:5: note: previous declaration of 'nv_drm_gem_import_nvkms_memory_ioctl' was here
  26541. 85 | int nv_drm_gem_import_nvkms_memory_ioctl(struct drm_device *dev,
  26542. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26543. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function 'nv_drm_gem_import_nvkms_memory_ioctl':
  26544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:157:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26545. 157 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  26546. | ^~~~~~~~~~~~
  26547. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:163:10: error: implicit declaration of function 'drm_core_check_feature' [-Werror=implicit-function-declaration]
  26548. 163 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) {
  26549. | ^~~~~~~~~~~~~~~~~~~~~~
  26550. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:163:38: error: 'DRIVER_MODESET' undeclared (first use in this function); did you mean 'HRTIMER_MODE_SOFT'?
  26551. 163 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) {
  26552. | ^~~~~~~~~~~~~~
  26553. | HRTIMER_MODE_SOFT
  26554. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:168:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26555. 168 | if ((nv_nvkms_memory =
  26556. | ^
  26557. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:174:15: error: 'nvKms' undeclared (first use in this function)
  26558. 174 | pMemory = nvKms->importMemory(nv_dev->pDevice,
  26559. | ^~~~~
  26560. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:174:41: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  26561. 174 | pMemory = nvKms->importMemory(nv_dev->pDevice,
  26562. | ^~
  26563. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:187:33: error: passing argument 1 of '__nv_drm_nvkms_gem_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
  26564. 187 | __nv_drm_nvkms_gem_obj_init(nv_dev, nv_nvkms_memory, pMemory, p->mem_size);
  26565. | ^~~~~~
  26566. | |
  26567. | struct nv_drm_device *
  26568. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:138:27: note: expected 'struct nv_drm_device *' but argument is of type 'struct nv_drm_device *'
  26569. 138 | struct nv_drm_device *nv_dev,
  26570. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  26571. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  26572. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:201:61: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  26573. 201 | void *data, struct drm_file *filep)
  26574. | ^~~~~~~~
  26575. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:200:49: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26576. 200 | int nv_drm_gem_export_nvkms_memory_ioctl(struct drm_device *dev,
  26577. | ^~~~~~~~~~
  26578. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:200:5: error: conflicting types for 'nv_drm_gem_export_nvkms_memory_ioctl'
  26579. 200 | int nv_drm_gem_export_nvkms_memory_ioctl(struct drm_device *dev,
  26580. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26581. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  26582. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:88:5: note: previous declaration of 'nv_drm_gem_export_nvkms_memory_ioctl' was here
  26583. 88 | int nv_drm_gem_export_nvkms_memory_ioctl(struct drm_device *dev,
  26584. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26585. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function 'nv_drm_gem_export_nvkms_memory_ioctl':
  26586. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:203:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26587. 203 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  26588. | ^~~~~~~~~~~~
  26589. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:208:38: error: 'DRIVER_MODESET' undeclared (first use in this function); did you mean 'HRTIMER_MODE_SOFT'?
  26590. 208 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) {
  26591. | ^~~~~~~~~~~~~~
  26592. | HRTIMER_MODE_SOFT
  26593. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:219:28: error: implicit declaration of function 'nv_drm_gem_object_nvkms_memory_lookup'; did you mean 'nv_drm_gem_export_nvkms_memory_ioctl'? [-Werror=implicit-function-declaration]
  26594. 219 | if ((nv_nvkms_memory = nv_drm_gem_object_nvkms_memory_lookup(
  26595. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26596. | nv_drm_gem_export_nvkms_memory_ioctl
  26597. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:219:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26598. 219 | if ((nv_nvkms_memory = nv_drm_gem_object_nvkms_memory_lookup(
  26599. | ^
  26600. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:231:10: error: 'nvKms' undeclared (first use in this function)
  26601. 231 | if (!nvKms->exportMemory(nv_dev->pDevice,
  26602. | ^~~~~
  26603. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:231:36: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  26604. 231 | if (!nvKms->exportMemory(nv_dev->pDevice,
  26605. | ^~
  26606. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:244:9: error: implicit declaration of function 'nv_drm_gem_object_unreference_unlocked' [-Werror=implicit-function-declaration]
  26607. 244 | nv_drm_gem_object_unreference_unlocked(&nv_nvkms_memory->base);
  26608. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26609. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  26610. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:251:12: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26611. 251 | struct drm_device *dev,
  26612. | ^~~~~~~~~~
  26613. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:250:31: error: conflicting types for '__nv_drm_gem_nvkms_prime_dup'
  26614. 250 | static struct drm_gem_object *__nv_drm_gem_nvkms_prime_dup(
  26615. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26616. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:56:31: note: previous declaration of '__nv_drm_gem_nvkms_prime_dup' was here
  26617. 56 | static struct drm_gem_object *__nv_drm_gem_nvkms_prime_dup(
  26618. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26619. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function '__nv_drm_gem_nvkms_prime_dup':
  26620. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:254:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26621. 254 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  26622. | ^~~~~~~~~~~~
  26623. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/asm-generic/bug.h:5,
  26624. from /usr/src/linux-headers-5.8.0-kali3-common/arch/x86/include/asm/bug.h:92,
  26625. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/bug.h:5,
  26626. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mmdebug.h:5,
  26627. from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/mm.h:9,
  26628. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-mm.h:80,
  26629. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:30:
  26630. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:260:44: error: dereferencing pointer to incomplete type 'const struct nv_drm_gem_object'
  26631. 260 | BUG_ON(nv_gem_src == NULL || nv_gem_src->ops != &nv_gem_nvkms_memory_ops);
  26632. | ^~
  26633. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
  26634. 78 | # define unlikely(x) __builtin_expect(!!(x), 0)
  26635. | ^
  26636. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:260:5: note: in expansion of macro 'BUG_ON'
  26637. 260 | BUG_ON(nv_gem_src == NULL || nv_gem_src->ops != &nv_gem_nvkms_memory_ops);
  26638. | ^~~~~~
  26639. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:265:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26640. 265 | if ((nv_nvkms_memory =
  26641. | ^
  26642. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:270:15: error: 'nvKms' undeclared (first use in this function)
  26643. 270 | pMemory = nvKms->dupMemory(nv_dev->pDevice,
  26644. | ^~~~~
  26645. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:270:38: error: dereferencing pointer to incomplete type 'struct nv_drm_device'
  26646. 270 | pMemory = nvKms->dupMemory(nv_dev->pDevice,
  26647. | ^~
  26648. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:271:42: error: dereferencing pointer to incomplete type 'const struct nv_drm_device'
  26649. 271 | nv_dev_src->pDevice,
  26650. | ^~
  26651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:281:33: error: passing argument 1 of '__nv_drm_nvkms_gem_obj_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
  26652. 281 | __nv_drm_nvkms_gem_obj_init(nv_dev,
  26653. | ^~~~~~
  26654. | |
  26655. | struct nv_drm_device *
  26656. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:138:27: note: expected 'struct nv_drm_device *' but argument is of type 'struct nv_drm_device *'
  26657. 138 | struct nv_drm_device *nv_dev,
  26658. | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  26659. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  26660. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:295:35: warning: 'struct drm_device' declared inside parameter list will not be visible outside of this definition or declaration
  26661. 295 | struct drm_device *dev, uint32_t handle,
  26662. | ^~~~~~~~~~
  26663. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:294:35: warning: 'struct drm_file' declared inside parameter list will not be visible outside of this definition or declaration
  26664. 294 | int nv_drm_dumb_map_offset(struct drm_file *file,
  26665. | ^~~~~~~~
  26666. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function 'nv_drm_dumb_map_offset':
  26667. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:298:36: warning: initialization of 'struct nv_drm_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26668. 298 | struct nv_drm_device *nv_dev = to_nv_device(dev);
  26669. | ^~~~~~~~~~~~
  26670. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:302:26: warning: assignment to 'struct nv_drm_gem_nvkms_memory *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  26671. 302 | if ((nv_nvkms_memory = nv_drm_gem_object_nvkms_memory_lookup(
  26672. | ^
  26673. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:321:11: error: implicit declaration of function 'nv_drm_gem_create_mmap_offset'; did you mean 'nv_drm_dumb_map_offset'? [-Werror=implicit-function-declaration]
  26674. 321 | ret = nv_drm_gem_create_mmap_offset(&nv_nvkms_memory->base, offset);
  26675. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26676. | nv_drm_dumb_map_offset
  26677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: In function '__nv_drm_vma_fault':
  26678. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:339:9: error: implicit declaration of function 'to_nv_gem_object' [-Werror=implicit-function-declaration]
  26679. 339 | to_nv_gem_object(gem));
  26680. | ^~~~~~~~~~~~~~~~
  26681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:339:9: warning: passing argument 1 of 'to_nv_nvkms_memory' makes pointer from integer without a cast [-Wint-conversion]
  26682. 339 | to_nv_gem_object(gem));
  26683. | ^~~~~~~~~~~~~~~~~~~~~
  26684. | |
  26685. | int
  26686. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:27:
  26687. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.h:44:31: note: expected 'struct nv_drm_gem_object *' but argument is of type 'int'
  26688. 44 | struct nv_drm_gem_object *nv_gem)
  26689. | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  26690. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:346:32: error: implicit declaration of function 'drm_vma_node_start' [-Werror=implicit-function-declaration]
  26691. 346 | page_offset = vmf->pgoff - drm_vma_node_start(&gem->vma_node);
  26692. | ^~~~~~~~~~~~~~~~~~
  26693. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:346:55: error: dereferencing pointer to incomplete type 'struct drm_gem_object'
  26694. 346 | page_offset = vmf->pgoff - drm_vma_node_start(&gem->vma_node);
  26695. | ^~
  26696. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c: At top level:
  26697. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:393:14: error: 'drm_gem_vm_open' undeclared here (not in a function); did you mean 'drm_gem_open'?
  26698. 393 | .open = drm_gem_vm_open,
  26699. | ^~~~~~~~~~~~~~~
  26700. | drm_gem_open
  26701. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:395:14: error: 'drm_gem_vm_close' undeclared here (not in a function); did you mean 'drm_gem_close'?
  26702. 395 | .close = drm_gem_vm_close,
  26703. | ^~~~~~~~~~~~~~~~
  26704. | drm_gem_close
  26705. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:60:38: error: storage size of 'nv_gem_nvkms_memory_ops' isn't known
  26706. 60 | const struct nv_drm_gem_object_funcs nv_gem_nvkms_memory_ops = {
  26707. | ^~~~~~~~~~~~~~~~~~~~~~~
  26708. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.c:56:31: warning: '__nv_drm_gem_nvkms_prime_dup' used but never defined
  26709. 56 | static struct drm_gem_object *__nv_drm_gem_nvkms_prime_dup(
  26710. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26711. cc1: some warnings being treated as errors
  26712. 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-drm/nvidia-drm-gem-nvkms-memory.o] Error 1
  26713. make[3]: Target '__build' not remade because of errors.
  26714. make[2]: *** [/usr/src/linux-headers-5.8.0-kali3-common/Makefile:1764: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel] Error 2
  26715. make[2]: Target 'modules' not remade because of errors.
  26716. make[2]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  26717. make[1]: *** [Makefile:185: __sub-make] Error 2
  26718. make[1]: Target 'modules' not remade because of errors.
  26719. make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-common'
  26720. make: *** [Makefile:81: modules] Error 2
  26721. -> Checking to see whether the nvidia kernel module was successfully built
  26722. executing: 'cd ./kernel; /usr/bin/make -k -j8 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.0-kali3-amd64/source" SYSOUT="/lib/modules/5.8.0-kali3-amd64/build"'...
  26723. make[1]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-common'
  26724. make[2]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  26725. scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
  26726. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.o
  26727. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.o
  26728. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.o
  26729. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.o
  26730. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.o
  26731. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.o
  26732. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.o
  26733. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.o
  26734. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  26735. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26736. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26737. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26738. | ^~~~~~~~~
  26739. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26740. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  26741. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26742. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26743. | ^~~~~~~~~
  26744. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  26745. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26746. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  26747. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26748. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26749. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26750. | ^~~~~~~~~
  26751. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26752. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26753. | ^~~~~~~~~
  26754. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26755. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  26756. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26757. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26758. | ^~~~~~~~~
  26759. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26760. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  26761. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26762. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26763. | ^~~~~~~~~
  26764. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  26765. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26767. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26768. | ^~~~~~~~~
  26769. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26770. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  26771. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26772. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26773. | ^~~~~~~~~
  26774. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  26775. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26776. /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]
  26777. 578 | void *ptr = ioremap_nocache(phys, size);
  26778. | ^~~~~~~~~~~~~~~
  26779. | ioremap_cache
  26780. /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]
  26781. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  26782. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26783. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26784. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26785. | ^~~~~~~~~
  26786. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  26787. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26788. /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]
  26789. 578 | void *ptr = ioremap_nocache(phys, size);
  26790. | ^~~~~~~~~~~~~~~
  26791. | ioremap_cache
  26792. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  26793. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26794. /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]
  26795. /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]
  26796. 578 | void *ptr = ioremap_nocache(phys, size);
  26797. | ^~~~~~~~~~~~~~~
  26798. | ioremap_cache
  26799. /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]
  26800. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26801. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  26802. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26803. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26804. | ^~~~~~~~~
  26805. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  26806. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26807. /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]
  26808. 578 | void *ptr = ioremap_nocache(phys, size);
  26809. | ^~~~~~~~~~~~~~~
  26810. | ioremap_cache
  26811. /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]
  26812. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  26813. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26814. /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]
  26815. 578 | void *ptr = ioremap_nocache(phys, size);
  26816. | ^~~~~~~~~~~~~~~
  26817. | ioremap_cache
  26818. /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]
  26819. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  26820. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26821. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26822. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26823. | ^~~~~~~~~
  26824. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26825. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  26826. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26827. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26828. | ^~~~~~~~~
  26829. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  26830. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26831. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26832. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26833. | ^~~~~~~~~
  26834. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26835. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  26836. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26837. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26838. | ^~~~~~~~~
  26839. cc1: some warnings being treated as errors
  26840. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  26841. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26842. /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]
  26843. 578 | void *ptr = ioremap_nocache(phys, size);
  26844. | ^~~~~~~~~~~~~~~
  26845. | ioremap_cache
  26846. /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]
  26847. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  26848. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26849. /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]
  26850. 578 | void *ptr = ioremap_nocache(phys, size);
  26851. | ^~~~~~~~~~~~~~~
  26852. | ioremap_cache
  26853. /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]
  26854. 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
  26855. cc1: some warnings being treated as errors
  26856. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.o
  26857. cc1: some warnings being treated as errors
  26858. cc1: some warnings being treated as errors
  26859. 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-frontend.o] Error 1
  26860. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.o
  26861. 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
  26862. 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
  26863. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.o
  26864. cc1: some warnings being treated as errors
  26865. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.o
  26866. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  26867. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26868. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26869. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26870. | ^~~~~~~~~
  26871. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26872. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  26873. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26874. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26875. | ^~~~~~~~~
  26876. 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
  26877. cc1: some warnings being treated as errors
  26878. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.o
  26879. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  26880. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26881. /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]
  26882. 578 | void *ptr = ioremap_nocache(phys, size);
  26883. | ^~~~~~~~~~~~~~~
  26884. | ioremap_cache
  26885. /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]
  26886. 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
  26887. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.o
  26888. cc1: some warnings being treated as errors
  26889. 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
  26890. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.o
  26891. cc1: some warnings being treated as errors
  26892. 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
  26893. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.o
  26894. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  26895. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26896. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26897. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26898. | ^~~~~~~~~
  26899. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26900. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  26901. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26902. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26903. | ^~~~~~~~~
  26904. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  26905. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26906. /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]
  26907. 578 | void *ptr = ioremap_nocache(phys, size);
  26908. | ^~~~~~~~~~~~~~~
  26909. | ioremap_cache
  26910. /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]
  26911. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  26912. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26913. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26914. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26915. | ^~~~~~~~~
  26916. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26917. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  26918. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26919. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26920. | ^~~~~~~~~
  26921. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  26922. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26923. /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]
  26924. 578 | void *ptr = ioremap_nocache(phys, size);
  26925. | ^~~~~~~~~~~~~~~
  26926. | ioremap_cache
  26927. /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]
  26928. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  26929. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26930. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26931. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26932. | ^~~~~~~~~
  26933. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26934. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  26935. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26936. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26937. | ^~~~~~~~~
  26938. cc1: some warnings being treated as errors
  26939. 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
  26940. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  26941. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26942. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  26943. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26944. /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]
  26945. 578 | void *ptr = ioremap_nocache(phys, size);
  26946. | ^~~~~~~~~~~~~~~
  26947. | ioremap_cache
  26948. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26949. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26950. | ^~~~~~~~~
  26951. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26952. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  26953. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26954. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26955. | ^~~~~~~~~
  26956. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.o
  26957. /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]
  26958. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  26959. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26960. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26961. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26962. | ^~~~~~~~~
  26963. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26964. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  26965. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26966. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26967. | ^~~~~~~~~
  26968. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching':
  26969. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
  26970. 255 | if (NV_ALLOW_CACHING(memory_type))
  26971. | ^
  26972. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:257:9: note: here
  26973. 257 | default:
  26974. | ^~~~~~~
  26975. cc1: some warnings being treated as errors
  26976. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  26977. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  26978. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  26979. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  26980. | ^~~~~~~~~
  26981. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  26982. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  26983. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  26984. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  26985. | ^~~~~~~~~
  26986. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  26987. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26988. /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]
  26989. 578 | void *ptr = ioremap_nocache(phys, size);
  26990. | ^~~~~~~~~~~~~~~
  26991. | ioremap_cache
  26992. /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]
  26993. 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
  26994. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  26995. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  26996. /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]
  26997. 578 | void *ptr = ioremap_nocache(phys, size);
  26998. | ^~~~~~~~~~~~~~~
  26999. | ioremap_cache
  27000. /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]
  27001. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.o
  27002. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  27003. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27004. /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]
  27005. 578 | void *ptr = ioremap_nocache(phys, size);
  27006. | ^~~~~~~~~~~~~~~
  27007. | ioremap_cache
  27008. /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]
  27009. cc1: some warnings being treated as errors
  27010. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  27011. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27012. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27013. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27014. | ^~~~~~~~~
  27015. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27016. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  27017. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27018. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27019. | ^~~~~~~~~
  27020. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  27021. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27022. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27023. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27024. | ^~~~~~~~~
  27025. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27026. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  27027. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27028. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27029. | ^~~~~~~~~
  27030. 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
  27031. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.o
  27032. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27033. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27034. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_add_text_file':
  27035. /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]
  27036. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27037. | ^~~~
  27038. | |
  27039. | const struct file_operations *
  27040. /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'
  27041. 39 | proc_create_data(name, mode, parent, fops, __data)
  27042. | ^~~~
  27043. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1026:5: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27044. 1026 | NV_CREATE_PROC_FILE(filename, parent, text_file, (void *)text);
  27045. | ^~~~~~~~~~~~~~~~~~~
  27046. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27047. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27048. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27049. /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 *'
  27050. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27051. | ^~~~~~~~~~~~~~~~
  27052. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27053. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27054. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_register_procfs':
  27055. /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]
  27056. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27057. | ^~~~
  27058. | |
  27059. | const struct file_operations *
  27060. /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'
  27061. 39 | proc_create_data(name, mode, parent, fops, __data)
  27062. | ^~~~
  27063. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1080:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27064. 1080 | entry = NV_CREATE_PROC_FILE("params", proc_nvidia, params, NULL);
  27065. | ^~~~~~~~~~~~~~~~~~~
  27066. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27067. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27068. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27069. /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 *'
  27070. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27071. | ^~~~~~~~~~~~~~~~
  27072. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27073. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27074. /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]
  27075. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27076. | ^~~~
  27077. | |
  27078. | const struct file_operations *
  27079. /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'
  27080. 39 | proc_create_data(name, mode, parent, fops, __data)
  27081. | ^~~~
  27082. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1084:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27083. 1084 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia, registry, NULL);
  27084. | ^~~~~~~~~~~~~~~~~~~
  27085. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27086. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27087. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27088. /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 *'
  27089. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27090. | ^~~~~~~~~~~~~~~~
  27091. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  27092. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27093. /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]
  27094. 578 | void *ptr = ioremap_nocache(phys, size);
  27095. | ^~~~~~~~~~~~~~~
  27096. | ioremap_cache
  27097. /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]
  27098. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27099. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27100. /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]
  27101. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27102. | ^~~~
  27103. | |
  27104. | const struct file_operations *
  27105. /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'
  27106. 39 | proc_create_data(name, mode, parent, fops, __data)
  27107. | ^~~~
  27108. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1105:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27109. 1105 | entry = NV_CREATE_PROC_FILE("version", proc_nvidia, version, NULL);
  27110. | ^~~~~~~~~~~~~~~~~~~
  27111. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27112. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27113. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27114. /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 *'
  27115. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27116. | ^~~~~~~~~~~~~~~~
  27117. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27118. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27119. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_add_gpu':
  27120. /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]
  27121. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27122. | ^~~~
  27123. | |
  27124. | const struct file_operations *
  27125. /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'
  27126. 39 | proc_create_data(name, mode, parent, fops, __data)
  27127. | ^~~~
  27128. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1147:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27129. 1147 | entry = NV_CREATE_PROC_FILE("information", proc_nvidia_gpu, gpu_info,
  27130. | ^~~~~~~~~~~~~~~~~~~
  27131. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27132. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27133. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27134. /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 *'
  27135. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27136. | ^~~~~~~~~~~~~~~~
  27137. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27138. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27139. /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]
  27140. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27141. | ^~~~
  27142. | |
  27143. | const struct file_operations *
  27144. /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'
  27145. 39 | proc_create_data(name, mode, parent, fops, __data)
  27146. | ^~~~
  27147. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1152:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27148. 1152 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia_gpu, registry, nv);
  27149. | ^~~~~~~~~~~~~~~~~~~
  27150. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27151. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27152. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27153. /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 *'
  27154. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27155. | ^~~~~~~~~~~~~~~~
  27156. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27157. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27158. /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]
  27159. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27160. | ^~~~
  27161. | |
  27162. | const struct file_operations *
  27163. /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'
  27164. 39 | proc_create_data(name, mode, parent, fops, __data)
  27165. | ^~~~
  27166. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1158:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27167. 1158 | entry = NV_CREATE_PROC_FILE("exercise_error_forwarding", proc_nvidia_gpu,
  27168. | ^~~~~~~~~~~~~~~~~~~
  27169. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27170. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27171. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27172. /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 *'
  27173. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27174. | ^~~~~~~~~~~~~~~~
  27175. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27176. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27177. /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]
  27178. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27179. | ^~~~
  27180. | |
  27181. | const struct file_operations *
  27182. /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'
  27183. 39 | proc_create_data(name, mode, parent, fops, __data)
  27184. | ^~~~
  27185. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1166:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27186. 1166 | entry = NV_CREATE_PROC_FILE("unbindLock", proc_nvidia_gpu, unbind_lock, nv);
  27187. | ^~~~~~~~~~~~~~~~~~~
  27188. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27189. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27190. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27191. /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 *'
  27192. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27193. | ^~~~~~~~~~~~~~~~
  27194. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27195. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27196. /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]
  27197. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27198. | ^~~~
  27199. | |
  27200. | const struct file_operations *
  27201. /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'
  27202. 39 | proc_create_data(name, mode, parent, fops, __data)
  27203. | ^~~~
  27204. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1173:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27205. 1173 | entry = NV_CREATE_PROC_FILE("numa_status", proc_nvidia_gpu, numa_status,
  27206. | ^~~~~~~~~~~~~~~~~~~
  27207. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27208. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27209. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27210. /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 *'
  27211. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27212. | ^~~~~~~~~~~~~~~~
  27213. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27214. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27215. /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]
  27216. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27217. | ^~~~
  27218. | |
  27219. | const struct file_operations *
  27220. /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'
  27221. 39 | proc_create_data(name, mode, parent, fops, __data)
  27222. | ^~~~
  27223. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1178:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27224. 1178 | entry = NV_CREATE_PROC_FILE("offline_pages", proc_nvidia_gpu, offline_pages,
  27225. | ^~~~~~~~~~~~~~~~~~~
  27226. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27227. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27228. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  27229. /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 *'
  27230. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27231. | ^~~~~~~~~~~~~~~~
  27232. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  27233. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27234. /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]
  27235. 578 | void *ptr = ioremap_nocache(phys, size);
  27236. | ^~~~~~~~~~~~~~~
  27237. | ioremap_cache
  27238. /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]
  27239. cc1: some warnings being treated as errors
  27240. cc1: some warnings being treated as errors
  27241. cc1: some warnings being treated as errors
  27242. 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
  27243. 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
  27244. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.o
  27245. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.o
  27246. 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
  27247. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.o
  27248. cc1: some warnings being treated as errors
  27249. 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
  27250. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.o
  27251. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c: In function 'nv_set_memory_array_type':
  27252. /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]
  27253. 86 | set_memory_array_uc(pages, num_pages);
  27254. | ^~~~~~~~~~~~~~~~~~~
  27255. | set_pages_array_uc
  27256. /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]
  27257. 89 | set_memory_array_wb(pages, num_pages);
  27258. | ^~~~~~~~~~~~~~~~~~~
  27259. | set_pages_array_wb
  27260. cc1: some warnings being treated as errors
  27261. 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
  27262. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.o
  27263. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  27264. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27265. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27266. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27267. | ^~~~~~~~~
  27268. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27269. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  27270. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27271. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27272. | ^~~~~~~~~
  27273. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  27274. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27275. /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]
  27276. 578 | void *ptr = ioremap_nocache(phys, size);
  27277. | ^~~~~~~~~~~~~~~
  27278. | ioremap_cache
  27279. /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]
  27280. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  27281. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27282. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27283. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27284. | ^~~~~~~~~
  27285. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27286. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  27287. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27288. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27289. | ^~~~~~~~~
  27290. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  27291. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27292. /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]
  27293. 578 | void *ptr = ioremap_nocache(phys, size);
  27294. | ^~~~~~~~~~~~~~~
  27295. | ioremap_cache
  27296. /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]
  27297. cc1: some warnings being treated as errors
  27298. 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
  27299. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.o
  27300. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:17:
  27301. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: At top level:
  27302. /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
  27303. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  27304. | ^~~~~~~
  27305. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  27306. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  27307. 39 | *tv = (struct timeval) {
  27308. | ^~~
  27309. /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'
  27310. 40 | .tv_sec = now.tv_sec,
  27311. | ^~~~~~
  27312. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  27313. 40 | .tv_sec = now.tv_sec,
  27314. | ^~~
  27315. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  27316. /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'
  27317. 41 | .tv_usec = now.tv_nsec/1000,
  27318. | ^~~~~~~
  27319. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  27320. 41 | .tv_usec = now.tv_nsec/1000,
  27321. | ^~~
  27322. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  27323. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  27324. 39 | *tv = (struct timeval) {
  27325. | ^
  27326. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_get_current_time':
  27327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:432:20: error: storage size of 'tm' isn't known
  27328. 432 | struct timeval tm;
  27329. | ^~
  27330. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:432:20: warning: unused variable 'tm' [-Wunused-variable]
  27331. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_get_current_tick':
  27332. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:446:21: error: storage size of 'ts' isn't known
  27333. 446 | struct timespec ts;
  27334. | ^~
  27335. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  27336. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27337. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27338. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27339. | ^~~~~~~~~
  27340. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27341. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  27342. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27343. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27344. | ^~~~~~~~~
  27345. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  27346. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27347. /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]
  27348. 578 | void *ptr = ioremap_nocache(phys, size);
  27349. | ^~~~~~~~~~~~~~~
  27350. | ioremap_cache
  27351. /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]
  27352. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  27353. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27354. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27355. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27356. | ^~~~~~~~~
  27357. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27358. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  27359. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27360. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27361. | ^~~~~~~~~
  27362. /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]
  27363. 448 | jiffies_to_timespec(jiffies, &ts);
  27364. | ^~~~~~~~~~~~~~~~~~~
  27365. | jiffies_to_timespec64
  27366. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:446:21: warning: unused variable 'ts' [-Wunused-variable]
  27367. 446 | struct timespec ts;
  27368. | ^~
  27369. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_delay':
  27370. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:20: error: storage size of 'tm_end' isn't known
  27371. 558 | struct timeval tm_end, tm_aux;
  27372. | ^~~~~~
  27373. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:28: error: storage size of 'tm_aux' isn't known
  27374. 558 | struct timeval tm_end, tm_aux;
  27375. | ^~~~~~
  27376. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:28: warning: unused variable 'tm_aux' [-Wunused-variable]
  27377. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:20: warning: unused variable 'tm_end' [-Wunused-variable]
  27378. 558 | struct timeval tm_end, tm_aux;
  27379. | ^~~~~~
  27380. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  27381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27382. /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]
  27383. 578 | void *ptr = ioremap_nocache(phys, size);
  27384. | ^~~~~~~~~~~~~~~
  27385. | ioremap_cache
  27386. /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]
  27387. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  27388. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27389. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27390. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27391. | ^~~~~~~~~
  27392. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27393. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  27394. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27395. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27396. | ^~~~~~~~~
  27397. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory':
  27398. /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'?
  27399. 47 | down_read(&mm->mmap_sem);
  27400. | ^~~~~~~~
  27401. | mmap_base
  27402. /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'?
  27403. 80 | up_read(&mm->mmap_sem);
  27404. | ^~~~~~~~
  27405. | mmap_base
  27406. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages':
  27407. /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'?
  27408. 118 | down_read(&mm->mmap_sem);
  27409. | ^~~~~~~~
  27410. | mmap_base
  27411. /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'?
  27412. 121 | up_read(&mm->mmap_sem);
  27413. | ^~~~~~~~
  27414. | mmap_base
  27415. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  27416. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27417. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27418. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27419. | ^~~~~~~~~
  27420. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27421. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  27422. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27423. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27424. | ^~~~~~~~~
  27425. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function '_os_ipmi_receive_resp':
  27426. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:1917:29: error: storage size of 'tv' isn't known
  27427. 1917 | struct timeval tv;
  27428. | ^~
  27429. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:1917:29: warning: unused variable 'tv' [-Wunused-variable]
  27430. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  27431. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27432. /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]
  27433. 578 | void *ptr = ioremap_nocache(phys, size);
  27434. | ^~~~~~~~~~~~~~~
  27435. | ioremap_cache
  27436. /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]
  27437. cc1: some warnings being treated as errors
  27438. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  27439. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27440. /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]
  27441. 578 | void *ptr = ioremap_nocache(phys, size);
  27442. | ^~~~~~~~~~~~~~~
  27443. | ioremap_cache
  27444. /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]
  27445. cc1: some warnings being treated as errors
  27446. 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
  27447. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  27448. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27449. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27450. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27451. | ^~~~~~~~~
  27452. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27453. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  27454. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27455. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27456. | ^~~~~~~~~
  27457. cc1: some warnings being treated as errors
  27458. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.o
  27459. 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
  27460. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.o
  27461. 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
  27462. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.o
  27463. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  27464. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27465. /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]
  27466. 578 | void *ptr = ioremap_nocache(phys, size);
  27467. | ^~~~~~~~~~~~~~~
  27468. | ioremap_cache
  27469. /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]
  27470. cc1: some warnings being treated as errors
  27471. 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
  27472. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.o
  27473. cc1: some warnings being treated as errors
  27474. 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
  27475. cc1: some warnings being treated as errors
  27476. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.o
  27477. 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
  27478. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.o
  27479. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  27480. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27481. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27482. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27483. | ^~~~~~~~~
  27484. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27485. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  27486. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27487. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27488. | ^~~~~~~~~
  27489. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  27490. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27491. /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]
  27492. 578 | void *ptr = ioremap_nocache(phys, size);
  27493. | ^~~~~~~~~~~~~~~
  27494. | ioremap_cache
  27495. /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]
  27496. cc1: some warnings being treated as errors
  27497. 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
  27498. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  27499. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27500. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27501. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27502. | ^~~~~~~~~
  27503. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27504. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  27505. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27506. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27507. | ^~~~~~~~~
  27508. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  27509. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27510. /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]
  27511. 578 | void *ptr = ioremap_nocache(phys, size);
  27512. | ^~~~~~~~~~~~~~~
  27513. | ioremap_cache
  27514. /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]
  27515. cc1: some warnings being treated as errors
  27516. 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-report-err.o] Error 1
  27517. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  27518. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27519. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27520. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27521. | ^~~~~~~~~
  27522. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27523. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  27524. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27525. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27526. | ^~~~~~~~~
  27527. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  27528. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27529. /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]
  27530. 578 | void *ptr = ioremap_nocache(phys, size);
  27531. | ^~~~~~~~~~~~~~~
  27532. | ioremap_cache
  27533. /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]
  27534. cc1: some warnings being treated as errors
  27535. 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
  27536. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  27537. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  27538. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27539. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27540. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27541. | ^~~~~~~~~
  27542. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27543. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  27544. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  27545. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27546. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27547. | ^~~~~~~~~
  27548. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  27549. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  27550. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27551. /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]
  27552. 578 | void *ptr = ioremap_nocache(phys, size);
  27553. | ^~~~~~~~~~~~~~~
  27554. | ioremap_cache
  27555. /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]
  27556. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  27557. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27558. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27559. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27560. | ^~~~~~~~~
  27561. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27562. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  27563. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27564. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27565. | ^~~~~~~~~
  27566. cc1: some warnings being treated as errors
  27567. 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
  27568. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  27569. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27570. /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]
  27571. 578 | void *ptr = ioremap_nocache(phys, size);
  27572. | ^~~~~~~~~~~~~~~
  27573. | ioremap_cache
  27574. /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]
  27575. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  27576. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27577. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27578. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27579. | ^~~~~~~~~
  27580. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27581. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  27582. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27583. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27584. | ^~~~~~~~~
  27585. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  27586. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27587. /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]
  27588. 578 | void *ptr = ioremap_nocache(phys, size);
  27589. | ^~~~~~~~~~~~~~~
  27590. | ioremap_cache
  27591. /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]
  27592. cc1: some warnings being treated as errors
  27593. 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
  27594. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  27595. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27596. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27597. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27598. | ^~~~~~~~~
  27599. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27600. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  27601. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27602. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27603. | ^~~~~~~~~
  27604. cc1: some warnings being treated as errors
  27605. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  27606. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27607. /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]
  27608. 578 | void *ptr = ioremap_nocache(phys, size);
  27609. | ^~~~~~~~~~~~~~~
  27610. | ioremap_cache
  27611. /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]
  27612. 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
  27613. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:26:
  27614. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_permissions_init':
  27615. /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]
  27616. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27617. | ^~~~
  27618. | |
  27619. | const struct file_operations *
  27620. /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'
  27621. 39 | proc_create_data(name, mode, parent, fops, __data)
  27622. | ^~~~
  27623. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:324:28: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27624. 324 | nvswitch_permissions = NV_CREATE_PROC_FILE("permissions",
  27625. | ^~~~~~~~~~~~~~~~~~~
  27626. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:16,
  27627. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:26:
  27628. /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 *'
  27629. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27630. | ^~~~~~~~~~~~~~~~
  27631. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_os_get_platform_time':
  27632. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1562:21: error: storage size of 'ts' isn't known
  27633. 1562 | struct timespec ts;
  27634. | ^~
  27635. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  27636. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27637. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27638. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27639. | ^~~~~~~~~
  27640. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27641. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  27642. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27643. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27644. | ^~~~~~~~~
  27645. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  27646. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27647. /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]
  27648. 578 | void *ptr = ioremap_nocache(phys, size);
  27649. | ^~~~~~~~~~~~~~~
  27650. | ioremap_cache
  27651. /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]
  27652. /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]
  27653. 1564 | getnstimeofday(&ts);
  27654. | ^~~~~~~~~~~~~~
  27655. | efi_gettimeofday
  27656. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:32:
  27657. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: At top level:
  27658. /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
  27659. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  27660. | ^~~~~~~
  27661. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  27662. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  27663. 39 | *tv = (struct timeval) {
  27664. | ^~~
  27665. /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'
  27666. 40 | .tv_sec = now.tv_sec,
  27667. | ^~~~~~
  27668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  27669. 40 | .tv_sec = now.tv_sec,
  27670. | ^~~
  27671. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  27672. /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'
  27673. 41 | .tv_usec = now.tv_nsec/1000,
  27674. | ^~~~~~~
  27675. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  27676. 41 | .tv_usec = now.tv_nsec/1000,
  27677. | ^~~
  27678. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  27679. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  27680. 39 | *tv = (struct timeval) {
  27681. | ^
  27682. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  27683. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  27684. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nvlink_permissions_init':
  27685. /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]
  27686. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  27687. | ^~~~
  27688. | |
  27689. | const struct file_operations *
  27690. /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'
  27691. 39 | proc_create_data(name, mode, parent, fops, __data)
  27692. | ^~~~
  27693. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:105:26: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  27694. 105 | nvlink_permissions = NV_CREATE_PROC_FILE("permissions",
  27695. | ^~~~~~~~~~~~~~~~~~~
  27696. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  27697. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  27698. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  27699. /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 *'
  27700. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  27701. | ^~~~~~~~~~~~~~~~
  27702. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  27703. /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
  27704. 506 | const struct timeval *a,
  27705. | ^~~~~~~
  27706. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timer_less_than':
  27707. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:510:14: error: dereferencing pointer to incomplete type 'const struct timeval'
  27708. 510 | return (a->tv_sec == b->tv_sec) ? (a->tv_usec < b->tv_usec)
  27709. | ^~
  27710. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  27711. /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
  27712. 516 | const struct timeval *a,
  27713. | ^~~~~~~
  27714. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timeradd':
  27715. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:521:11: error: dereferencing pointer to incomplete type 'struct timeval'
  27716. 521 | result->tv_sec = a->tv_sec + b->tv_sec;
  27717. | ^~
  27718. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:521:23: error: dereferencing pointer to incomplete type 'const struct timeval'
  27719. 521 | result->tv_sec = a->tv_sec + b->tv_sec;
  27720. | ^~
  27721. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  27722. /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
  27723. 532 | const struct timeval *a,
  27724. | ^~~~~~~
  27725. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timersub':
  27726. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:537:11: error: dereferencing pointer to incomplete type 'struct timeval'
  27727. 537 | result->tv_sec = a->tv_sec - b->tv_sec;
  27728. | ^~
  27729. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:537:23: error: dereferencing pointer to incomplete type 'const struct timeval'
  27730. 537 | result->tv_sec = a->tv_sec - b->tv_sec;
  27731. | ^~
  27732. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nvlink_sleep':
  27733. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:20: error: storage size of 'tm_end' isn't known
  27734. 554 | struct timeval tm_end, tm_aux;
  27735. | ^~~~~~
  27736. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:28: error: storage size of 'tm_aux' isn't known
  27737. 554 | struct timeval tm_end, tm_aux;
  27738. | ^~~~~~
  27739. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:28: warning: unused variable 'tm_aux' [-Wunused-variable]
  27740. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:20: warning: unused variable 'tm_end' [-Wunused-variable]
  27741. 554 | struct timeval tm_end, tm_aux;
  27742. | ^~~~~~
  27743. /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]
  27744. 1565 | return ((NvU64) timespec_to_ns(&ts));
  27745. | ^~~~~~~~~~~~~~
  27746. | timespec64_to_ns
  27747. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1562:21: warning: unused variable 'ts' [-Wunused-variable]
  27748. 1562 | struct timespec ts;
  27749. | ^~
  27750. cc1: some warnings being treated as errors
  27751. 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
  27752. /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]
  27753. 1566 | }
  27754. | ^
  27755. cc1: some warnings being treated as errors
  27756. 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
  27757. make[3]: Target '__build' not remade because of errors.
  27758. make[2]: *** [/usr/src/linux-headers-5.8.0-kali3-common/Makefile:1764: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel] Error 2
  27759. make[2]: Target 'modules' not remade because of errors.
  27760. make[2]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  27761. make[1]: *** [Makefile:185: __sub-make] Error 2
  27762. make[1]: Target 'modules' not remade because of errors.
  27763. make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-common'
  27764. make: *** [Makefile:81: modules] Error 2
  27765. -> Error.
  27766. ERROR: An error occurred while performing the step: "Checking to see whether the nvidia kernel module was successfully built". See /var/log/nvidia-installer.log for details.
  27767. -> The command `cd ./kernel; /usr/bin/make -k -j8 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.8.0-kali3-amd64/source" SYSOUT="/lib/modules/5.8.0-kali3-amd64/build"` failed with the following output:
  27768. make[1]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-common'
  27769. make[2]: Entering directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  27770. scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
  27771. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.o
  27772. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.o
  27773. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.o
  27774. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.o
  27775. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.o
  27776. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.o
  27777. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.o
  27778. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.o
  27779. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  27780. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27781. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27782. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27783. | ^~~~~~~~~
  27784. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27785. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  27786. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27787. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27788. | ^~~~~~~~~
  27789. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  27790. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27791. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  27792. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27793. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27794. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27795. | ^~~~~~~~~
  27796. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27797. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27798. | ^~~~~~~~~
  27799. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27800. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  27801. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27802. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27803. | ^~~~~~~~~
  27804. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27805. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  27806. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27807. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27808. | ^~~~~~~~~
  27809. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  27810. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27811. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27812. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27813. | ^~~~~~~~~
  27814. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27815. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  27816. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27817. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27818. | ^~~~~~~~~
  27819. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-acpi.c:15:
  27820. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27821. /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]
  27822. 578 | void *ptr = ioremap_nocache(phys, size);
  27823. | ^~~~~~~~~~~~~~~
  27824. | ioremap_cache
  27825. /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]
  27826. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  27827. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27828. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27829. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27830. | ^~~~~~~~~
  27831. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-chrdev.c:15:
  27832. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27833. /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]
  27834. 578 | void *ptr = ioremap_nocache(phys, size);
  27835. | ^~~~~~~~~~~~~~~
  27836. | ioremap_cache
  27837. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-frontend.c:13:
  27838. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27839. /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]
  27840. /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]
  27841. 578 | void *ptr = ioremap_nocache(phys, size);
  27842. | ^~~~~~~~~~~~~~~
  27843. | ioremap_cache
  27844. /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]
  27845. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27846. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  27847. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27848. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27849. | ^~~~~~~~~
  27850. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv.c:14:
  27851. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27852. /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]
  27853. 578 | void *ptr = ioremap_nocache(phys, size);
  27854. | ^~~~~~~~~~~~~~~
  27855. | ioremap_cache
  27856. /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]
  27857. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-instance.c:13:
  27858. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27859. /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]
  27860. 578 | void *ptr = ioremap_nocache(phys, size);
  27861. | ^~~~~~~~~~~~~~~
  27862. | ioremap_cache
  27863. /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]
  27864. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  27865. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27866. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27867. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27868. | ^~~~~~~~~
  27869. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27870. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  27871. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27872. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27873. | ^~~~~~~~~
  27874. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  27875. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27876. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27877. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27878. | ^~~~~~~~~
  27879. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27880. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  27881. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27882. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27883. | ^~~~~~~~~
  27884. cc1: some warnings being treated as errors
  27885. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-cray.c:15:
  27886. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27887. /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]
  27888. 578 | void *ptr = ioremap_nocache(phys, size);
  27889. | ^~~~~~~~~~~~~~~
  27890. | ioremap_cache
  27891. /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]
  27892. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-dma.c:15:
  27893. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27894. /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]
  27895. 578 | void *ptr = ioremap_nocache(phys, size);
  27896. | ^~~~~~~~~~~~~~~
  27897. | ioremap_cache
  27898. /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]
  27899. 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
  27900. cc1: some warnings being treated as errors
  27901. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.o
  27902. cc1: some warnings being treated as errors
  27903. cc1: some warnings being treated as errors
  27904. 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-frontend.o] Error 1
  27905. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.o
  27906. 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
  27907. 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
  27908. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.o
  27909. cc1: some warnings being treated as errors
  27910. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.o
  27911. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  27912. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27913. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27914. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27915. | ^~~~~~~~~
  27916. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27917. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  27918. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27919. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27920. | ^~~~~~~~~
  27921. 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
  27922. cc1: some warnings being treated as errors
  27923. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.o
  27924. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-gvi.c:15:
  27925. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27926. /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]
  27927. 578 | void *ptr = ioremap_nocache(phys, size);
  27928. | ^~~~~~~~~~~~~~~
  27929. | ioremap_cache
  27930. /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]
  27931. 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
  27932. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.o
  27933. cc1: some warnings being treated as errors
  27934. 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
  27935. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.o
  27936. cc1: some warnings being treated as errors
  27937. 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
  27938. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.o
  27939. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  27940. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27941. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27942. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27943. | ^~~~~~~~~
  27944. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27945. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  27946. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27947. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27948. | ^~~~~~~~~
  27949. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-i2c.c:15:
  27950. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27951. /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]
  27952. 578 | void *ptr = ioremap_nocache(phys, size);
  27953. | ^~~~~~~~~~~~~~~
  27954. | ioremap_cache
  27955. /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]
  27956. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  27957. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27958. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27959. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27960. | ^~~~~~~~~
  27961. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27962. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  27963. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27964. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27965. | ^~~~~~~~~
  27966. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:15:
  27967. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27968. /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]
  27969. 578 | void *ptr = ioremap_nocache(phys, size);
  27970. | ^~~~~~~~~~~~~~~
  27971. | ioremap_cache
  27972. /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]
  27973. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  27974. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27975. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27976. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27977. | ^~~~~~~~~
  27978. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27979. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  27980. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27981. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  27982. | ^~~~~~~~~
  27983. cc1: some warnings being treated as errors
  27984. 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
  27985. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  27986. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  27987. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mempool.c:15:
  27988. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  27989. /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]
  27990. 578 | void *ptr = ioremap_nocache(phys, size);
  27991. | ^~~~~~~~~~~~~~~
  27992. | ioremap_cache
  27993. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  27994. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  27995. | ^~~~~~~~~
  27996. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  27997. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  27998. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  27999. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28000. | ^~~~~~~~~
  28001. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.o
  28002. /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]
  28003. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28004. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28005. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28006. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28007. | ^~~~~~~~~
  28008. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28009. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28010. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28011. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28012. | ^~~~~~~~~
  28013. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching':
  28014. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:255:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
  28015. 255 | if (NV_ALLOW_CACHING(memory_type))
  28016. | ^
  28017. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-mmap.c:257:9: note: here
  28018. 257 | default:
  28019. | ^~~~~~~
  28020. cc1: some warnings being treated as errors
  28021. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  28022. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28023. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28024. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28025. | ^~~~~~~~~
  28026. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28027. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  28028. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28029. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28030. | ^~~~~~~~~
  28031. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-p2p.c:15:
  28032. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28033. /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]
  28034. 578 | void *ptr = ioremap_nocache(phys, size);
  28035. | ^~~~~~~~~~~~~~~
  28036. | ioremap_cache
  28037. /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]
  28038. 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
  28039. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28040. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28041. /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]
  28042. 578 | void *ptr = ioremap_nocache(phys, size);
  28043. | ^~~~~~~~~~~~~~~
  28044. | ioremap_cache
  28045. /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]
  28046. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.o
  28047. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-pat.c:15:
  28048. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28049. /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]
  28050. 578 | void *ptr = ioremap_nocache(phys, size);
  28051. | ^~~~~~~~~~~~~~~
  28052. | ioremap_cache
  28053. /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]
  28054. cc1: some warnings being treated as errors
  28055. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  28056. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28057. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28058. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28059. | ^~~~~~~~~
  28060. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28061. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  28062. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28063. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28064. | ^~~~~~~~~
  28065. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  28066. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28067. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28068. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28069. | ^~~~~~~~~
  28070. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28071. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  28072. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28073. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28074. | ^~~~~~~~~
  28075. 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
  28076. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.o
  28077. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28078. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28079. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_add_text_file':
  28080. /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]
  28081. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28082. | ^~~~
  28083. | |
  28084. | const struct file_operations *
  28085. /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'
  28086. 39 | proc_create_data(name, mode, parent, fops, __data)
  28087. | ^~~~
  28088. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1026:5: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28089. 1026 | NV_CREATE_PROC_FILE(filename, parent, text_file, (void *)text);
  28090. | ^~~~~~~~~~~~~~~~~~~
  28091. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28092. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28093. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28094. /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 *'
  28095. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28096. | ^~~~~~~~~~~~~~~~
  28097. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28098. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28099. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_register_procfs':
  28100. /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]
  28101. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28102. | ^~~~
  28103. | |
  28104. | const struct file_operations *
  28105. /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'
  28106. 39 | proc_create_data(name, mode, parent, fops, __data)
  28107. | ^~~~
  28108. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1080:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28109. 1080 | entry = NV_CREATE_PROC_FILE("params", proc_nvidia, params, NULL);
  28110. | ^~~~~~~~~~~~~~~~~~~
  28111. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28112. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28113. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28114. /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 *'
  28115. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28116. | ^~~~~~~~~~~~~~~~
  28117. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28118. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28119. /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]
  28120. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28121. | ^~~~
  28122. | |
  28123. | const struct file_operations *
  28124. /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'
  28125. 39 | proc_create_data(name, mode, parent, fops, __data)
  28126. | ^~~~
  28127. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1084:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28128. 1084 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia, registry, NULL);
  28129. | ^~~~~~~~~~~~~~~~~~~
  28130. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28131. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28132. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28133. /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 *'
  28134. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28135. | ^~~~~~~~~~~~~~~~
  28136. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c:14:
  28137. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28138. /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]
  28139. 578 | void *ptr = ioremap_nocache(phys, size);
  28140. | ^~~~~~~~~~~~~~~
  28141. | ioremap_cache
  28142. /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]
  28143. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28144. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28145. /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]
  28146. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28147. | ^~~~
  28148. | |
  28149. | const struct file_operations *
  28150. /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'
  28151. 39 | proc_create_data(name, mode, parent, fops, __data)
  28152. | ^~~~
  28153. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1105:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28154. 1105 | entry = NV_CREATE_PROC_FILE("version", proc_nvidia, version, NULL);
  28155. | ^~~~~~~~~~~~~~~~~~~
  28156. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28157. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28158. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28159. /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 *'
  28160. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28161. | ^~~~~~~~~~~~~~~~
  28162. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28163. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28164. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c: In function 'nv_procfs_add_gpu':
  28165. /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]
  28166. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28167. | ^~~~
  28168. | |
  28169. | const struct file_operations *
  28170. /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'
  28171. 39 | proc_create_data(name, mode, parent, fops, __data)
  28172. | ^~~~
  28173. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1147:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28174. 1147 | entry = NV_CREATE_PROC_FILE("information", proc_nvidia_gpu, gpu_info,
  28175. | ^~~~~~~~~~~~~~~~~~~
  28176. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28177. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28178. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28179. /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 *'
  28180. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28181. | ^~~~~~~~~~~~~~~~
  28182. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28183. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28184. /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]
  28185. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28186. | ^~~~
  28187. | |
  28188. | const struct file_operations *
  28189. /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'
  28190. 39 | proc_create_data(name, mode, parent, fops, __data)
  28191. | ^~~~
  28192. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1152:13: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28193. 1152 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia_gpu, registry, nv);
  28194. | ^~~~~~~~~~~~~~~~~~~
  28195. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28196. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28197. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28198. /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 *'
  28199. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28200. | ^~~~~~~~~~~~~~~~
  28201. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28202. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28203. /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]
  28204. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28205. | ^~~~
  28206. | |
  28207. | const struct file_operations *
  28208. /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'
  28209. 39 | proc_create_data(name, mode, parent, fops, __data)
  28210. | ^~~~
  28211. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1158:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28212. 1158 | entry = NV_CREATE_PROC_FILE("exercise_error_forwarding", proc_nvidia_gpu,
  28213. | ^~~~~~~~~~~~~~~~~~~
  28214. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28215. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28216. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28217. /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 *'
  28218. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28219. | ^~~~~~~~~~~~~~~~
  28220. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28221. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28222. /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]
  28223. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28224. | ^~~~
  28225. | |
  28226. | const struct file_operations *
  28227. /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'
  28228. 39 | proc_create_data(name, mode, parent, fops, __data)
  28229. | ^~~~
  28230. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1166:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28231. 1166 | entry = NV_CREATE_PROC_FILE("unbindLock", proc_nvidia_gpu, unbind_lock, nv);
  28232. | ^~~~~~~~~~~~~~~~~~~
  28233. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28234. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28235. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28236. /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 *'
  28237. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28238. | ^~~~~~~~~~~~~~~~
  28239. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28240. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28241. /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]
  28242. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28243. | ^~~~
  28244. | |
  28245. | const struct file_operations *
  28246. /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'
  28247. 39 | proc_create_data(name, mode, parent, fops, __data)
  28248. | ^~~~
  28249. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1173:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28250. 1173 | entry = NV_CREATE_PROC_FILE("numa_status", proc_nvidia_gpu, numa_status,
  28251. | ^~~~~~~~~~~~~~~~~~~
  28252. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28253. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28254. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28255. /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 *'
  28256. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28257. | ^~~~~~~~~~~~~~~~
  28258. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28259. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28260. /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]
  28261. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28262. | ^~~~
  28263. | |
  28264. | const struct file_operations *
  28265. /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'
  28266. 39 | proc_create_data(name, mode, parent, fops, __data)
  28267. | ^~~~
  28268. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:1178:17: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28269. 1178 | entry = NV_CREATE_PROC_FILE("offline_pages", proc_nvidia_gpu, offline_pages,
  28270. | ^~~~~~~~~~~~~~~~~~~
  28271. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28272. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28273. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-procfs.c:15:
  28274. /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 *'
  28275. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28276. | ^~~~~~~~~~~~~~~~
  28277. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-usermap.c:15:
  28278. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28279. /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]
  28280. 578 | void *ptr = ioremap_nocache(phys, size);
  28281. | ^~~~~~~~~~~~~~~
  28282. | ioremap_cache
  28283. /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]
  28284. cc1: some warnings being treated as errors
  28285. cc1: some warnings being treated as errors
  28286. cc1: some warnings being treated as errors
  28287. 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
  28288. 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
  28289. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.o
  28290. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.o
  28291. 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
  28292. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.o
  28293. cc1: some warnings being treated as errors
  28294. 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
  28295. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.o
  28296. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vm.c: In function 'nv_set_memory_array_type':
  28297. /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]
  28298. 86 | set_memory_array_uc(pages, num_pages);
  28299. | ^~~~~~~~~~~~~~~~~~~
  28300. | set_pages_array_uc
  28301. /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]
  28302. 89 | set_memory_array_wb(pages, num_pages);
  28303. | ^~~~~~~~~~~~~~~~~~~
  28304. | set_pages_array_wb
  28305. cc1: some warnings being treated as errors
  28306. 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
  28307. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.o
  28308. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  28309. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28310. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28311. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28312. | ^~~~~~~~~
  28313. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28314. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  28315. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28316. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28317. | ^~~~~~~~~
  28318. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-vtophys.c:15:
  28319. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28320. /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]
  28321. 578 | void *ptr = ioremap_nocache(phys, size);
  28322. | ^~~~~~~~~~~~~~~
  28323. | ioremap_cache
  28324. /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]
  28325. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  28326. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28327. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28328. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28329. | ^~~~~~~~~
  28330. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28331. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  28332. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28333. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28334. | ^~~~~~~~~
  28335. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:15:
  28336. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28337. /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]
  28338. 578 | void *ptr = ioremap_nocache(phys, size);
  28339. | ^~~~~~~~~~~~~~~
  28340. | ioremap_cache
  28341. /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]
  28342. cc1: some warnings being treated as errors
  28343. 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
  28344. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.o
  28345. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:17:
  28346. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: At top level:
  28347. /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
  28348. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  28349. | ^~~~~~~
  28350. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  28351. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  28352. 39 | *tv = (struct timeval) {
  28353. | ^~~
  28354. /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'
  28355. 40 | .tv_sec = now.tv_sec,
  28356. | ^~~~~~
  28357. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  28358. 40 | .tv_sec = now.tv_sec,
  28359. | ^~~
  28360. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  28361. /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'
  28362. 41 | .tv_usec = now.tv_nsec/1000,
  28363. | ^~~~~~~
  28364. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  28365. 41 | .tv_usec = now.tv_nsec/1000,
  28366. | ^~~
  28367. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  28368. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  28369. 39 | *tv = (struct timeval) {
  28370. | ^
  28371. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_get_current_time':
  28372. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:432:20: error: storage size of 'tm' isn't known
  28373. 432 | struct timeval tm;
  28374. | ^~
  28375. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:432:20: warning: unused variable 'tm' [-Wunused-variable]
  28376. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_get_current_tick':
  28377. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:446:21: error: storage size of 'ts' isn't known
  28378. 446 | struct timespec ts;
  28379. | ^~
  28380. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  28381. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28382. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28383. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28384. | ^~~~~~~~~
  28385. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28386. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  28387. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28388. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28389. | ^~~~~~~~~
  28390. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c:15:
  28391. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28392. /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]
  28393. 578 | void *ptr = ioremap_nocache(phys, size);
  28394. | ^~~~~~~~~~~~~~~
  28395. | ioremap_cache
  28396. /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]
  28397. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  28398. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28399. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28400. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28401. | ^~~~~~~~~
  28402. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28403. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  28404. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28405. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28406. | ^~~~~~~~~
  28407. /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]
  28408. 448 | jiffies_to_timespec(jiffies, &ts);
  28409. | ^~~~~~~~~~~~~~~~~~~
  28410. | jiffies_to_timespec64
  28411. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:446:21: warning: unused variable 'ts' [-Wunused-variable]
  28412. 446 | struct timespec ts;
  28413. | ^~
  28414. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function 'os_delay':
  28415. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:20: error: storage size of 'tm_end' isn't known
  28416. 558 | struct timeval tm_end, tm_aux;
  28417. | ^~~~~~
  28418. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:28: error: storage size of 'tm_aux' isn't known
  28419. 558 | struct timeval tm_end, tm_aux;
  28420. | ^~~~~~
  28421. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:28: warning: unused variable 'tm_aux' [-Wunused-variable]
  28422. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:558:20: warning: unused variable 'tm_end' [-Wunused-variable]
  28423. 558 | struct timeval tm_end, tm_aux;
  28424. | ^~~~~~
  28425. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-usermap.c:15:
  28426. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28427. /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]
  28428. 578 | void *ptr = ioremap_nocache(phys, size);
  28429. | ^~~~~~~~~~~~~~~
  28430. | ioremap_cache
  28431. /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]
  28432. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  28433. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28434. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28435. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28436. | ^~~~~~~~~
  28437. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28438. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  28439. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28440. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28441. | ^~~~~~~~~
  28442. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c: In function 'os_lookup_user_io_memory':
  28443. /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'?
  28444. 47 | down_read(&mm->mmap_sem);
  28445. | ^~~~~~~~
  28446. | mmap_base
  28447. /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'?
  28448. 80 | up_read(&mm->mmap_sem);
  28449. | ^~~~~~~~
  28450. | mmap_base
  28451. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-mlock.c: In function 'os_lock_user_pages':
  28452. /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'?
  28453. 118 | down_read(&mm->mmap_sem);
  28454. | ^~~~~~~~
  28455. | mmap_base
  28456. /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'?
  28457. 121 | up_read(&mm->mmap_sem);
  28458. | ^~~~~~~~
  28459. | mmap_base
  28460. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  28461. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28462. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28463. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28464. | ^~~~~~~~~
  28465. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28466. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  28467. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28468. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28469. | ^~~~~~~~~
  28470. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c: In function '_os_ipmi_receive_resp':
  28471. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:1917:29: error: storage size of 'tv' isn't known
  28472. 1917 | struct timeval tv;
  28473. | ^~
  28474. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-interface.c:1917:29: warning: unused variable 'tv' [-Wunused-variable]
  28475. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-pci.c:15:
  28476. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28477. /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]
  28478. 578 | void *ptr = ioremap_nocache(phys, size);
  28479. | ^~~~~~~~~~~~~~~
  28480. | ioremap_cache
  28481. /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]
  28482. cc1: some warnings being treated as errors
  28483. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/os-registry.c:15:
  28484. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28485. /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]
  28486. 578 | void *ptr = ioremap_nocache(phys, size);
  28487. | ^~~~~~~~~~~~~~~
  28488. | ioremap_cache
  28489. /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]
  28490. cc1: some warnings being treated as errors
  28491. 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
  28492. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  28493. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28494. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28495. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28496. | ^~~~~~~~~
  28497. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28498. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  28499. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28500. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28501. | ^~~~~~~~~
  28502. cc1: some warnings being treated as errors
  28503. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.o
  28504. 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
  28505. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.o
  28506. 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
  28507. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.o
  28508. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-modeset-interface.c:15:
  28509. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28510. /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]
  28511. 578 | void *ptr = ioremap_nocache(phys, size);
  28512. | ^~~~~~~~~~~~~~~
  28513. | ioremap_cache
  28514. /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]
  28515. cc1: some warnings being treated as errors
  28516. 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
  28517. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.o
  28518. cc1: some warnings being treated as errors
  28519. 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
  28520. cc1: some warnings being treated as errors
  28521. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.o
  28522. 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
  28523. CC [M] /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.o
  28524. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  28525. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28526. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28527. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28528. | ^~~~~~~~~
  28529. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28530. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  28531. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28532. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28533. | ^~~~~~~~~
  28534. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-memdbg.c:12:
  28535. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28536. /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]
  28537. 578 | void *ptr = ioremap_nocache(phys, size);
  28538. | ^~~~~~~~~~~~~~~
  28539. | ioremap_cache
  28540. /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]
  28541. cc1: some warnings being treated as errors
  28542. 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
  28543. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  28544. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28545. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28546. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28547. | ^~~~~~~~~
  28548. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28549. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  28550. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28551. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28552. | ^~~~~~~~~
  28553. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-report-err.c:24:
  28554. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28555. /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]
  28556. 578 | void *ptr = ioremap_nocache(phys, size);
  28557. | ^~~~~~~~~~~~~~~
  28558. | ioremap_cache
  28559. /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]
  28560. cc1: some warnings being treated as errors
  28561. 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-report-err.o] Error 1
  28562. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  28563. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28564. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28565. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28566. | ^~~~~~~~~
  28567. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28568. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  28569. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28570. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28571. | ^~~~~~~~~
  28572. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-ibmnpu.c:27:
  28573. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28574. /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]
  28575. 578 | void *ptr = ioremap_nocache(phys, size);
  28576. | ^~~~~~~~~~~~~~~
  28577. | ioremap_cache
  28578. /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]
  28579. cc1: some warnings being treated as errors
  28580. 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
  28581. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  28582. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  28583. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28584. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28585. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28586. | ^~~~~~~~~
  28587. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28588. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  28589. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  28590. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28591. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28592. | ^~~~~~~~~
  28593. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-msi.h:14,
  28594. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-msi.c:11:
  28595. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28596. /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]
  28597. 578 | void *ptr = ioremap_nocache(phys, size);
  28598. | ^~~~~~~~~~~~~~~
  28599. | ioremap_cache
  28600. /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]
  28601. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  28602. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28603. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28604. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28605. | ^~~~~~~~~
  28606. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28607. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  28608. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28609. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28610. | ^~~~~~~~~
  28611. cc1: some warnings being treated as errors
  28612. 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
  28613. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv_uvm_interface.c:21:
  28614. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28615. /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]
  28616. 578 | void *ptr = ioremap_nocache(phys, size);
  28617. | ^~~~~~~~~~~~~~~
  28618. | ioremap_cache
  28619. /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]
  28620. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  28621. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28622. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28623. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28624. | ^~~~~~~~~
  28625. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28626. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  28627. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28628. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28629. | ^~~~~~~~~
  28630. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nv-rsync.c:24:
  28631. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28632. /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]
  28633. 578 | void *ptr = ioremap_nocache(phys, size);
  28634. | ^~~~~~~~~~~~~~~
  28635. | ioremap_cache
  28636. /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]
  28637. cc1: some warnings being treated as errors
  28638. 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
  28639. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  28640. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28641. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28642. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28643. | ^~~~~~~~~
  28644. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28645. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  28646. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28647. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28648. | ^~~~~~~~~
  28649. cc1: some warnings being treated as errors
  28650. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:29:
  28651. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28652. /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]
  28653. 578 | void *ptr = ioremap_nocache(phys, size);
  28654. | ^~~~~~~~~~~~~~~
  28655. | ioremap_cache
  28656. /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]
  28657. 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
  28658. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:26:
  28659. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_permissions_init':
  28660. /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]
  28661. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28662. | ^~~~
  28663. | |
  28664. | const struct file_operations *
  28665. /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'
  28666. 39 | proc_create_data(name, mode, parent, fops, __data)
  28667. | ^~~~
  28668. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:324:28: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28669. 324 | nvswitch_permissions = NV_CREATE_PROC_FILE("permissions",
  28670. | ^~~~~~~~~~~~~~~~~~~
  28671. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-procfs.h:16,
  28672. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:26:
  28673. /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 *'
  28674. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28675. | ^~~~~~~~~~~~~~~~
  28676. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_os_get_platform_time':
  28677. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1562:21: error: storage size of 'ts' isn't known
  28678. 1562 | struct timespec ts;
  28679. | ^~
  28680. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  28681. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
  28682. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:556:17: error: too many arguments to function '__vmalloc'
  28683. 556 | void *ptr = __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
  28684. | ^~~~~~~~~
  28685. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:94,
  28686. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  28687. /usr/src/linux-headers-5.8.0-kali3-common/include/linux/vmalloc.h:111:14: note: declared here
  28688. 111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
  28689. | ^~~~~~~~~
  28690. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  28691. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h: In function 'nv_ioremap_nocache':
  28692. /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]
  28693. 578 | void *ptr = ioremap_nocache(phys, size);
  28694. | ^~~~~~~~~~~~~~~
  28695. | ioremap_cache
  28696. /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]
  28697. /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]
  28698. 1564 | getnstimeofday(&ts);
  28699. | ^~~~~~~~~~~~~~
  28700. | efi_gettimeofday
  28701. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:32:
  28702. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: At top level:
  28703. /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
  28704. 30 | static inline void nv_gettimeofday(struct timeval *tv)
  28705. | ^~~~~~~
  28706. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h: In function 'nv_gettimeofday':
  28707. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:5: error: dereferencing pointer to incomplete type 'struct timeval'
  28708. 39 | *tv = (struct timeval) {
  28709. | ^~~
  28710. /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'
  28711. 40 | .tv_sec = now.tv_sec,
  28712. | ^~~~~~
  28713. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: warning: excess elements in struct initializer
  28714. 40 | .tv_sec = now.tv_sec,
  28715. | ^~~
  28716. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:40:19: note: (near initialization for '(anonymous)')
  28717. /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'
  28718. 41 | .tv_usec = now.tv_nsec/1000,
  28719. | ^~~~~~~
  28720. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: warning: excess elements in struct initializer
  28721. 41 | .tv_usec = now.tv_nsec/1000,
  28722. | ^~~
  28723. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:41:20: note: (near initialization for '(anonymous)')
  28724. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-time.h:39:28: error: invalid use of undefined type 'struct timeval'
  28725. 39 | *tv = (struct timeval) {
  28726. | ^
  28727. In file included from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:290,
  28728. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  28729. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nvlink_permissions_init':
  28730. /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]
  28731. 62 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \
  28732. | ^~~~
  28733. | |
  28734. | const struct file_operations *
  28735. /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'
  28736. 39 | proc_create_data(name, mode, parent, fops, __data)
  28737. | ^~~~
  28738. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:105:26: note: in expansion of macro 'NV_CREATE_PROC_FILE'
  28739. 105 | nvlink_permissions = NV_CREATE_PROC_FILE("permissions",
  28740. | ^~~~~~~~~~~~~~~~~~~
  28741. In file included from /usr/src/linux-headers-5.8.0-kali3-common/include/linux/efi.h:19,
  28742. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/common/inc/nv-linux.h:196,
  28743. from /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:30:
  28744. /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 *'
  28745. 102 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
  28746. | ^~~~~~~~~~~~~~~~
  28747. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  28748. /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
  28749. 506 | const struct timeval *a,
  28750. | ^~~~~~~
  28751. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timer_less_than':
  28752. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:510:14: error: dereferencing pointer to incomplete type 'const struct timeval'
  28753. 510 | return (a->tv_sec == b->tv_sec) ? (a->tv_usec < b->tv_usec)
  28754. | ^~
  28755. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  28756. /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
  28757. 516 | const struct timeval *a,
  28758. | ^~~~~~~
  28759. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timeradd':
  28760. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:521:11: error: dereferencing pointer to incomplete type 'struct timeval'
  28761. 521 | result->tv_sec = a->tv_sec + b->tv_sec;
  28762. | ^~
  28763. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:521:23: error: dereferencing pointer to incomplete type 'const struct timeval'
  28764. 521 | result->tv_sec = a->tv_sec + b->tv_sec;
  28765. | ^~
  28766. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: At top level:
  28767. /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
  28768. 532 | const struct timeval *a,
  28769. | ^~~~~~~
  28770. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nv_timersub':
  28771. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:537:11: error: dereferencing pointer to incomplete type 'struct timeval'
  28772. 537 | result->tv_sec = a->tv_sec - b->tv_sec;
  28773. | ^~
  28774. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:537:23: error: dereferencing pointer to incomplete type 'const struct timeval'
  28775. 537 | result->tv_sec = a->tv_sec - b->tv_sec;
  28776. | ^~
  28777. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c: In function 'nvlink_sleep':
  28778. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:20: error: storage size of 'tm_end' isn't known
  28779. 554 | struct timeval tm_end, tm_aux;
  28780. | ^~~~~~
  28781. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:28: error: storage size of 'tm_aux' isn't known
  28782. 554 | struct timeval tm_end, tm_aux;
  28783. | ^~~~~~
  28784. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:28: warning: unused variable 'tm_aux' [-Wunused-variable]
  28785. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/nvlink_linux.c:554:20: warning: unused variable 'tm_end' [-Wunused-variable]
  28786. 554 | struct timeval tm_end, tm_aux;
  28787. | ^~~~~~
  28788. /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]
  28789. 1565 | return ((NvU64) timespec_to_ns(&ts));
  28790. | ^~~~~~~~~~~~~~
  28791. | timespec64_to_ns
  28792. /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel/nvidia/linux_nvswitch.c:1562:21: warning: unused variable 'ts' [-Wunused-variable]
  28793. 1562 | struct timespec ts;
  28794. | ^~
  28795. cc1: some warnings being treated as errors
  28796. 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
  28797. /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]
  28798. 1566 | }
  28799. | ^
  28800. cc1: some warnings being treated as errors
  28801. 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
  28802. make[3]: Target '__build' not remade because of errors.
  28803. make[2]: *** [/usr/src/linux-headers-5.8.0-kali3-common/Makefile:1764: /tmp/selfgz6775/NVIDIA-Linux-x86_64-418.113/kernel] Error 2
  28804. make[2]: Target 'modules' not remade because of errors.
  28805. make[2]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-amd64'
  28806. make[1]: *** [Makefile:185: __sub-make] Error 2
  28807. make[1]: Target 'modules' not remade because of errors.
  28808. make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-kali3-common'
  28809. make: *** [Makefile:81: modules] Error 2
  28810. ERROR: The nvidia kernel module was not created.
  28811. ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.