You are not logged in.

#1 2024-11-24 09:12:51

hikmateustad
Member
Registered: 2022-01-23
Posts: 74

[Solved] Nvidia driver 390.157 failed to build on linux zen 6.12.1

My system

hikmateustad@hikmateustad-dell ~ % neofetch
                   -`                    hikmateustad@hikmateustad-dell 
                  .o+`                   ------------------------------ 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: Inspiron One 2320 00 
               `+oooooo:                 Kernel: 6.11.9-zen1-1-zen 
               -+oooooo+:                Uptime: 7 mins 
             `/:-:++oooo+:               Packages: 2251 (pacman) 
            `/++++/+++++++:              Shell: zsh 5.9 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: Plasma 6.2.3 
         ./ooosssso++osssssso+`          WM: KWin 
        .oossssso-````/ossssss+`         Theme: Breeze Light [Plasma], Breeze-Dark [GTK2], Breeze [GTK3] 
       -osssssso.      :ssssssso.        Icons: [Plasma], breeze-dark [GTK2/3] 
      :osssssss/        osssso+++.       Terminal: konsole 
     /ossssssss/        +ssssooo/-       CPU: Intel i5-2400S (4) @ 3.300GHz 
   `/ossssso+/:-        -:/+osssso+-     GPU: Intel 2nd Generation Core Processor Family 
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA GeForce GT 525M 
 `++:.                           `-/+/   Memory: 2396MiB / 15897MiB 
 .`                                 `/
                                                                 
                                                                 


hikmateustad@hikmateustad-dell ~ % sudo pacman -Syu
[sudo] password for hikmateustad: 
:: Synchronizing package databases...
 core is up to date
 extra                                                              7.5 MiB  1638 KiB/s 00:05 [-------------------------------------------------------] 100%
 community is up to date
 multilib is up to date
 chaotic-aur                                                      657.4 KiB   299 KiB/s 00:02 [-------------------------------------------------------] 100%
:: Starting full system upgrade...
warning: grub: ignoring package upgrade (2:2.06.r591.g6425c12cd-1 => 2:2.12-3)
warning: linux-zen: ignoring package upgrade (6.11.9.zen1-1 => 6.12.1.zen1-1)
warning: linux-zen-headers: ignoring package upgrade (6.11.9.zen1-1 => 6.12.1.zen1-1)
warning: python-mock: local (5.1.0-1.1) is newer than chaotic-aur (5.1.0-1)
resolving dependencies...
looking for conflicting packages...

Packages (1) trousers-0.3.15-4

Total Download Size:    0.43 MiB
Total Installed Size:   1.12 MiB
Net Upgrade Size:      -0.03 MiB

:: Proceed with installation? [Y/n] n
1 hikmateustad@hikmateustad-dell ~ %                                                                                                                     :(

Failed make.log

DKMS make.log for nvidia-390.157 for kernel 6.12.1-zen1-1-zen (x86_64)
Sun Nov 24 02:18:10 PM IST 2024
make[1]: Entering directory '/usr/lib/modules/6.12.1-zen1-1-zen/build'
  SYMLINK /var/lib/dkms/nvidia/390.157/build/nvidia/nv-kernel.o
  SYMLINK /var/lib/dkms/nvidia/390.157/build/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: INIT_WORK
 CONFTEST: remap_pfn_range
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: follow_pfn
 CONFTEST: vmap
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: change_page_attr
 CONFTEST: pci_get_class
 CONFTEST: pci_choose_state
 CONFTEST: vm_insert_page
 CONFTEST: acpi_device_id
 CONFTEST: acquire_console_sem
 CONFTEST: console_lock
 CONFTEST: kmem_cache_create
 CONFTEST: on_each_cpu
 CONFTEST: smp_call_function
 CONFTEST: acpi_evaluate_integer
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: acpi_walk_namespace
 CONFTEST: pci_domain_nr
 CONFTEST: dma_mapping_error
 CONFTEST: sg_alloc_table
 CONFTEST: sg_init_table
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: efi_enabled
 CONFTEST: proc_create_data
 CONFTEST: pde_data
 CONFTEST: PDE_DATA
 CONFTEST: proc_remove
 CONFTEST: pm_vt_switch_required
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: get_dma_ops
 CONFTEST: write_cr4
 CONFTEST: of_get_property
 CONFTEST: of_find_node_by_phandle
 CONFTEST: of_node_to_nid
 CONFTEST: pnv_pci_get_npu_dev
 CONFTEST: for_each_online_node
 CONFTEST: node_end_pfn
 CONFTEST: pci_bus_address
 CONFTEST: pci_stop_and_remove_bus_device
 CONFTEST: pci_remove_bus_device
 CONFTEST: request_threaded_irq
 CONFTEST: register_cpu_notifier
 CONFTEST: cpuhp_setup_state
 CONFTEST: dma_map_resource
 CONFTEST: backlight_device_register
 CONFTEST: register_acpi_notifier
 CONFTEST: timer_setup
 CONFTEST: kmem_cache_create_usercopy
 CONFTEST: do_gettimeofday
 CONFTEST: dma_direct_map_resource
 CONFTEST: vmf_insert_pfn
 CONFTEST: jiffies_to_timespec
 CONFTEST: ktime_get_raw_ts64
 CONFTEST: ktime_get_real_ts64
 CONFTEST: ioremap_nocache
 CONFTEST: vga_tryget
 CONFTEST: acpi_bus_get_device
 CONFTEST: acpi_video_backlight_use_native
 CONFTEST: remap_page_range
 CONFTEST: address_space_init_once
 CONFTEST: kbasename
 CONFTEST: fatal_signal_pending
 CONFTEST: list_cut_position
 CONFTEST: vzalloc
 CONFTEST: wait_on_bit_lock_argument_count
 CONFTEST: bitmap_clear
 CONFTEST: usleep_range
 CONFTEST: radix_tree_empty
 CONFTEST: radix_tree_replace_slot
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: drm_gem_object_lookup
 CONFTEST: drm_atomic_state_ref_counting
 CONFTEST: drm_driver_has_gem_prime_res_obj
 CONFTEST: drm_atomic_helper_connector_dpms
 CONFTEST: drm_connector_funcs_have_mode_in_name
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_dev_put
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: drm_gem_object_put_unlocked
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: i2c_adapter
 CONFTEST: pm_message_t
 CONFTEST: irq_handler_t
 CONFTEST: acpi_device_ops
 CONFTEST: acpi_op_remove
 CONFTEST: outer_flush_all
 CONFTEST: proc_dir_entry
 CONFTEST: scatterlist
 CONFTEST: sg_table
 CONFTEST: file_operations
 CONFTEST: vm_operations_struct
 CONFTEST: atomic_long_type
 CONFTEST: pci_save_state
 CONFTEST: file_inode
 CONFTEST: task_struct
 CONFTEST: kuid_t
 CONFTEST: dma_ops
 CONFTEST: swiotlb_dma_ops
 CONFTEST: dma_map_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: vm_fault_present
 CONFTEST: vm_fault_has_address
 CONFTEST: kernel_write
 CONFTEST: strnstr
 CONFTEST: iterate_dir
 CONFTEST: kstrtoull
 CONFTEST: backlight_properties_type
 CONFTEST: proc_ops
 CONFTEST: timeval
 CONFTEST: mm_has_mmap_lock
 CONFTEST: kmem_cache_has_kobj_remove_work
 CONFTEST: sysfs_slab_unlink
 CONFTEST: vmalloc_has_pgprot_t_arg
 CONFTEST: pci_dev_has_skip_bus_pm
 CONFTEST: pci_channel_state
 CONFTEST: fault_flags
 CONFTEST: atomic64_type
 CONFTEST: address_space
 CONFTEST: backing_dev_info
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: mm_context_t
 CONFTEST: vm_fault_t
 CONFTEST: pnv_npu2_init_context
 CONFTEST: drm_bus_present
 CONFTEST: drm_bus_has_bus_type
 CONFTEST: drm_bus_has_get_irq
 CONFTEST: drm_bus_has_get_name
 CONFTEST: drm_driver_has_device_list
 CONFTEST: drm_driver_has_legacy_dev_list
 CONFTEST: drm_driver_has_set_busid
 CONFTEST: drm_crtc_state_has_connectors_changed
 CONFTEST: drm_init_function_args
 CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
 CONFTEST: drm_helper_mode_fill_fb_struct
 CONFTEST: drm_master_drop_has_from_release_arg
 CONFTEST: drm_driver_unload_has_int_return_type
 CONFTEST: kref_has_refcount_of_type_refcount_t
 CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
 CONFTEST: drm_mode_object_find_has_file_priv_arg
 CONFTEST: drm_connector_list_iter
 CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
 CONFTEST: drm_driver_prime_flag_present
 CONFTEST: drm_gem_prime_export_has_dev_arg
 CONFTEST: drm_gem_object_has_resv
 CONFTEST: drm_display_mode_has_vrefresh
 CONFTEST: drm_driver_master_set_has_int_return_type
 CONFTEST: drm_driver_has_gem_free_object
 CONFTEST: drm_prime_pages_to_sg_has_drm_device_arg
 CONFTEST: drm_driver_has_gem_prime_callbacks
 CONFTEST: drm_crtc_atomic_check_has_atomic_state_arg
 CONFTEST: drm_gem_object_vmap_has_map_arg
 CONFTEST: drm_plane_atomic_check_has_atomic_state_arg
 CONFTEST: drm_device_has_pdev
 CONFTEST: dma_resv_add_fence
 CONFTEST: dma_resv_reserve_fences
 CONFTEST: reservation_object_reserve_shared_has_num_fences_arg
 CONFTEST: dom0_kernel_present
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: drm_available
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.c:13:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.c:68:1: warning: no previous prototype for ‘nv_pci_register_driver’ [-Wmissing-prototypes]
   68 | nv_pci_register_driver(
      | ^~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.c:13:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c: In function ‘gather_memblock_ids_for_node’:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c:232:47: warning: cast between incompatible function types from ‘int (*)(struct dir_context *, const char *, int,  loff_t,  u64,  unsigned int)’ {aka ‘int (*)(struct dir_context *, const char *, int,  long long int,  long long unsigned int,  unsigned int)’} to ‘bool (*)(struct dir_context *, const char *, int,  loff_t,  u64,  unsigned int)’ {aka ‘_Bool (*)(struct dir_context *, const char *, int,  long long int,  long long unsigned int,  unsigned int)’} [-Wcast-function-type]
  232 |     nv_dir_context_t ats_ctx = { .ctx.actor = (filldir_t)filldir_get_memblock_id };
      |                                               ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:13:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: In function ‘nvos_create_alloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:611:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  611 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:349:5: note: in expansion of macro ‘NV_KMALLOC’
  349 |     NV_KMALLOC(at, sizeof(nv_alloc_t));
      |     ^~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:771:12: warning: no previous prototype for ‘nvidia_init_module’ [-Wmissing-prototypes]
  771 | int __init nvidia_init_module(void)
      |            ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:1161:6: warning: no previous prototype for ‘nvidia_exit_module’ [-Wmissing-prototypes]
 1161 | void nvidia_exit_module(void)
      |      ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: In function ‘nv_alloc_file_private’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:611:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  611 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:1232:5: note: in expansion of macro ‘NV_KMALLOC’
 1232 |     NV_KMALLOC(nvfp, sizeof(nv_file_private_t));
      |     ^~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: In function ‘nvidia_ioctl’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:611:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  611 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:2175:5: note: in expansion of macro ‘NV_KMALLOC’
 2175 |     NV_KMALLOC(arg_copy, arg_size);
      |     ^~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:611:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  611 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:2292:13: note: in expansion of macro ‘NV_KMALLOC’
 2292 |             NV_KMALLOC(nvfp->attached_gpus, sizeof(NvU32) * num_arg_gpus);
      |             ^~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: In function ‘nv_map_guest_pages’:
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-acpi.o
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:611:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  611 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:2764:5: note: in expansion of macro ‘NV_KMALLOC’
 2764 |     NV_KMALLOC(pages, sizeof(struct page *) * page_count);
      |     ^~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: In function ‘nv_alloc_kernel_mapping’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:611:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  611 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:3027:13: note: in expansion of macro ‘NV_KMALLOC’
 3027 |             NV_KMALLOC(pages, sizeof(struct page *) * page_count);
      |             ^~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: In function ‘nv_post_event’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:618:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  618 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:3265:9: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
 3265 |         NV_KMALLOC_ATOMIC(nvet, sizeof(nvidia_event_t));
      |         ^~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: In function ‘nvidia_probe’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:611:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  611 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:3815:5: note: in expansion of macro ‘NV_KMALLOC’
 3815 |     NV_KMALLOC(nvl, sizeof(nv_linux_state_t));
      |     ^~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-chrdev.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-cray.o
In file included from ./include/linux/srcu.h:21,
                 from ./include/linux/notifier.h:16,
                 from ./arch/x86/include/asm/uprobes.h:13,
                 from ./include/linux/uprobes.h:50,
                 from ./include/linux/mm_types.h:16,
                 from ./include/linux/mmzone.h:22,
                 from ./include/linux/gfp.h:7,
                 from ./include/linux/mm.h:7,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
In function ‘nv_stop_device’,
    inlined from ‘nv_close_device’ at /var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:1938:9:
./include/linux/workqueue.h:765:9: warning: call to ‘__warn_flushing_systemwide_wq’ declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  765 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:1528:5: note: in expansion of macro ‘flush_scheduled_work’
 1528 |     flush_scheduled_work();
      |     ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:1875:9: note: in expansion of macro ‘NV_WORKQUEUE_FLUSH’
 1875 |         NV_WORKQUEUE_FLUSH();
      |         ^~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-acpi.c:16:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-acpi.c: In function ‘nv_acpi_methods_uninit’:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-acpi.c:687:25: warning: unused variable ‘device’ [-Wunused-variable]
  687 |     struct acpi_device *device = NULL;
      |                         ^~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-cray.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-chrdev.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gvi.o
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c: In function ‘nvidia_remove’:
./include/linux/workqueue.h:765:9: warning: call to ‘__warn_flushing_systemwide_wq’ declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  765 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:1528:5: note: in expansion of macro ‘flush_scheduled_work’
 1528 |     flush_scheduled_work();
      |     ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:4106:9: note: in expansion of macro ‘NV_WORKQUEUE_FLUSH’
 4106 |         NV_WORKQUEUE_FLUSH();
      |         ^~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-i2c.o
In function ‘nv_stop_device’,
    inlined from ‘nv_close_device’ at /var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:1938:9,
    inlined from ‘nvidia_dev_put_uuid’ at /var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:4798:5:
./include/linux/workqueue.h:765:9: warning: call to ‘__warn_flushing_systemwide_wq’ declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  765 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:1528:5: note: in expansion of macro ‘flush_scheduled_work’
 1528 |     flush_scheduled_work();
      |     ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:1875:9: note: in expansion of macro ‘NV_WORKQUEUE_FLUSH’
 1875 |         NV_WORKQUEUE_FLUSH();
      |         ^~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-mempool.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.c:224:6: warning: no previous prototype for ‘nv_load_dma_map_scatterlist’ [-Wmissing-prototypes]
  224 | void nv_load_dma_map_scatterlist(
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gvi.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from ./include/linux/srcu.h:21,
                 from ./include/linux/notifier.h:16,
                 from ./arch/x86/include/asm/uprobes.h:13,
                 from ./include/linux/uprobes.h:50,
                 from ./include/linux/mm_types.h:16,
                 from ./include/linux/mmzone.h:22,
                 from ./include/linux/gfp.h:7,
                 from ./include/linux/mm.h:7,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-gvi.c: In function ‘nv_gvi_kern_suspend’:
./include/linux/workqueue.h:765:9: warning: call to ‘__warn_flushing_systemwide_wq’ declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  765 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:1528:5: note: in expansion of macro ‘flush_scheduled_work’
 1528 |     flush_scheduled_work();
      |     ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-gvi.c:90:5: note: in expansion of macro ‘NV_WORKQUEUE_FLUSH’
   90 |     NV_WORKQUEUE_FLUSH();
      |     ^~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-mmap.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-i2c.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-p2p.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-pat.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-mempool.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-procfs.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-mmap.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-mmap.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-mmap.c:273:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
  273 | int static nvidia_mmap_peer_io(
      | ^~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-mmap.c:294:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
  294 | int static nvidia_mmap_sysmem(
      | ^~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-mmap.c: In function ‘nv_encode_caching’:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-mmap.c:262:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
  262 |             if (NV_ALLOW_CACHING(memory_type))
      |                ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-mmap.c:264:9: note: here
  264 |         default:
      |         ^~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-p2p.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-pat.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-usermap.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-procfs.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-procfs.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-procfs.c:430:1: warning: no previous prototype for ‘exercise_error_forwarding_va’ [-Wmissing-prototypes]
  430 | exercise_error_forwarding_va(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-vm.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-vtophys.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/os-interface.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-usermap.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-vm.c:14:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/os-mlock.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-vtophys.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/os-pci.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/os-interface.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/os-interface.c: In function ‘os_alloc_mem’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:618:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  618 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/os-interface.c:386:13: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
  386 |             NV_KMALLOC_ATOMIC(*address, alloc_size);
      |             ^~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:611:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  611 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/var/lib/dkms/nvidia/390.157/build/nvidia/os-interface.c:392:13: note: in expansion of macro ‘NV_KMALLOC’
  392 |             NV_KMALLOC(*address, alloc_size);
      |             ^~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/os-registry.o
In file included from ./include/linux/srcu.h:21,
                 from ./include/linux/notifier.h:16,
                 from ./arch/x86/include/asm/uprobes.h:13,
                 from ./include/linux/uprobes.h:50,
                 from ./include/linux/mm_types.h:16,
                 from ./include/linux/mmzone.h:22,
                 from ./include/linux/gfp.h:7,
                 from ./include/linux/mm.h:7,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
/var/lib/dkms/nvidia/390.157/build/nvidia/os-interface.c: In function ‘os_flush_work_queue’:
./include/linux/workqueue.h:765:9: warning: call to ‘__warn_flushing_systemwide_wq’ declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
  765 |         __warn_flushing_systemwide_wq();                                \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:1528:5: note: in expansion of macro ‘flush_scheduled_work’
 1528 |     flush_scheduled_work();
      |     ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/os-interface.c:1042:9: note: in expansion of macro ‘NV_WORKQUEUE_FLUSH’
 1042 |         NV_WORKQUEUE_FLUSH();
      |         ^~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/os-mlock.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/os-pci.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/os-usermap.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-modeset-interface.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-pci-table.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/os-registry.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-kthread-q.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/os-usermap.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-kthread-q-selftest.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-memdbg.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-modeset-interface.c:15:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-kthread-q.c:244:6: warning: no previous prototype for ‘_raw_q_flush’ [-Wmissing-prototypes]
  244 | void _raw_q_flush(nv_kthread_q_t *q)
      |      ^~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-ibmnpu.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-report-err.o
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-kthread-q-selftest.c:74:6: warning: no previous prototype for ‘on_nvq_assert’ [-Wmissing-prototypes]
   74 | void on_nvq_assert(void)
      |      ^~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv_uvm_interface.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-memdbg.c:12:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-ibmnpu.c:27:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-ibmnpu.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-ibmnpu.c:280:6: warning: no previous prototype for ‘nv_init_ibmnpu_info’ [-Wmissing-prototypes]
  280 | void nv_init_ibmnpu_info(nv_state_t *nv)
      |      ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-ibmnpu.c:284:6: warning: no previous prototype for ‘nv_destroy_ibmnpu_info’ [-Wmissing-prototypes]
  284 | void nv_destroy_ibmnpu_info(nv_state_t *nv)
      |      ^~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-ibmnpu.c:288:5: warning: no previous prototype for ‘nv_init_ibmnpu_devices’ [-Wmissing-prototypes]
  288 | int nv_init_ibmnpu_devices(nv_state_t *nv)
      |     ^~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nvlink_linux.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_utils.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-report-err.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nv_uvm_interface.c:21:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia/nvlink_linux.c:30:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia/nvlink_linux.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia/nvlink_linux.c:287:12: warning: no previous prototype for ‘nvlink_core_init’ [-Wmissing-prototypes]
  287 | int __init nvlink_core_init(void)
      |            ^~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nvlink_linux.c:353:6: warning: no previous prototype for ‘nvlink_core_exit’ [-Wmissing-prototypes]
  353 | void nvlink_core_exit(void)
      |      ^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_utils.c:25:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.c:29:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/nvstatus.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/nvCpuUuid.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tools.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_global.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_api.h:29,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_api.h:29,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_global.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tools.c:23:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tools.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tools.c:2067:5: warning: no previous prototype for ‘uvm_tools_init’ [-Wmissing-prototypes]
 2067 | int uvm_tools_init(dev_t uvm_base_dev)
      |     ^~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tools.c:2119:6: warning: no previous prototype for ‘uvm_tools_exit’ [-Wmissing-prototypes]
 2119 | void uvm_tools_exit(void)
      |      ^~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_isr.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_procfs.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv_uvm_interface.h:30,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.c:2342:11: warning: no previous prototype for ‘uvm8_test_set_prefetch_filtering’ [-Wmissing-prototypes]
 2342 | NV_STATUS uvm8_test_set_prefetch_filtering(UVM_TEST_SET_PREFETCH_FILTERING_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_global.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_isr.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_space.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_procfs.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_procfs.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mem.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rm_mem.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_processors.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_space.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_space.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_space.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_space.c:1323:11: warning: no previous prototype for ‘uvm_api_enable_peer_access’ [-Wmissing-prototypes]
 1323 | NV_STATUS uvm_api_enable_peer_access(UVM_ENABLE_PEER_ACCESS_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_space.c:1356:11: warning: no previous prototype for ‘uvm_api_disable_peer_access’ [-Wmissing-prototypes]
 1356 | NV_STATUS uvm_api_disable_peer_access(UVM_DISABLE_PEER_ACCESS_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_space.c:1403:11: warning: no previous prototype for ‘uvm8_test_flush_deferred_work’ [-Wmissing-prototypes]
 1403 | NV_STATUS uvm8_test_flush_deferred_work(UVM_TEST_FLUSH_DEFERRED_WORK_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_processors.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mem.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mem.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_processors.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rm_mem.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rm_mem.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rb_tree.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel.h:29,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_tree.o
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel.c:1140:6: warning: no previous prototype for ‘uvm_channel_manager_print_pending_pushes’ [-Wmissing-prototypes]
 1140 | void uvm_channel_manager_print_pending_pushes(uvm_channel_manager_t *manager, struct seq_file *seq)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_allocator.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_range.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_block.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_tree.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_tree.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_allocator.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_allocator.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_replayable_faults.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_range.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_block.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_range.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_range.c:562:6: warning: no previous prototype for ‘uvm_va_range_remove_gpu_va_space_managed’ [-Wmissing-prototypes]
  562 | void uvm_va_range_remove_gpu_va_space_managed(uvm_va_range_t *va_range, uvm_gpu_va_space_t *gpu_va_space)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_range.c: In function ‘uvm_va_range_check_logical_permissions’:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_range.c:1571:81: warning: implicit conversion from ‘uvm_fault_type_t’ to ‘uvm_fault_access_type_t’ [-Wenum-conversion]
 1571 |         if (uvm_enable_builtin_tests && !fault_check_range_permission(va_range, access_type))
      |                                                                                 ^~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_tree.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_block.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_block.c:6524:11: warning: no previous prototype for ‘block_map’ [-Wmissing-prototypes]
 6524 | NV_STATUS block_map(uvm_va_block_t *va_block,
      |           ^~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.c:509:26: warning: no previous prototype for ‘uvm_range_group_range_prev’ [-Wmissing-prototypes]
  509 | uvm_range_group_range_t *uvm_range_group_range_prev(uvm_va_space_t *va_space, uvm_range_group_range_t *range)
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.c:515:26: warning: no previous prototype for ‘uvm_range_group_range_next’ [-Wmissing-prototypes]
  515 | uvm_range_group_range_t *uvm_range_group_range_next(uvm_va_space_t *va_space, uvm_range_group_range_t *range)
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.c:667:6: warning: no previous prototype for ‘range_group_range_iter_advance’ [-Wmissing-prototypes]
  667 | void range_group_range_iter_advance(uvm_range_group_range_iter_t *iter, NvU64 end)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.c:764:11: warning: no previous prototype for ‘uvm8_test_range_group_range_info’ [-Wmissing-prototypes]
  764 | NV_STATUS uvm8_test_range_group_range_info(UVM_TEST_RANGE_GROUP_RANGE_INFO_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group.c:805:11: warning: no previous prototype for ‘uvm8_test_range_group_range_count’ [-Wmissing-prototypes]
  805 | NV_STATUS uvm8_test_range_group_range_count(UVM_TEST_RANGE_GROUP_RANGE_COUNT_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_block.c: In function ‘block_cpu_fault_locked’:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_block.c:9392:53: warning: implicit conversion from ‘uvm_fault_access_type_t’ to ‘uvm_fault_type_t’ [-Wenum-conversion]
 9392 |                                                     fault_access_type,
      |                                                     ^~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv_uvm_interface.h:30,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_replayable_faults.c:25:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_non_replayable_faults.o
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_replayable_faults.c: In function ‘check_fault_access_permissions’:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_replayable_faults.c:974:69: warning: implicit conversion from ‘uvm_fault_access_type_t’ to ‘uvm_fault_type_t’ [-Wenum-conversion]
  974 |                                                          fault_entry->fault_access_type,
      |                                                          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_replayable_faults.c:997:66: warning: implicit conversion from ‘enum <anonymous>’ to ‘uvm_fault_type_t’ [-Wenum-conversion]
  997 |                                                                  UVM_FAULT_ACCESS_TYPE_READ,
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_replayable_faults.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_replayable_faults.c:2249:11: warning: no previous prototype for ‘uvm8_test_get_prefetch_faults_reenable_lapse’ [-Wmissing-prototypes]
 2249 | NV_STATUS uvm8_test_get_prefetch_faults_reenable_lapse(UVM_TEST_GET_PREFETCH_FAULTS_REENABLE_LAPSE_PARAMS *params,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_replayable_faults.c:2257:11: warning: no previous prototype for ‘uvm8_test_set_prefetch_faults_reenable_lapse’ [-Wmissing-prototypes]
 2257 | NV_STATUS uvm8_test_set_prefetch_faults_reenable_lapse(UVM_TEST_SET_PREFETCH_FAULTS_REENABLE_LAPSE_PARAMS *params,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_access_counters.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv_uvm_interface.h:30,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:23:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_non_replayable_faults.c: In function ‘service_non_replayable_fault_block_locked’:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_non_replayable_faults.c:224:64: warning: implicit conversion from ‘uvm_fault_access_type_t’ to ‘uvm_fault_type_t’ [-Wenum-conversion]
  224 |                                                     fault_entry->fault_access_type,
      |                                                     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_events.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/common/inc/nv_uvm_interface.h:30,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_access_counters.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_module.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mmu.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_events.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_events.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_module.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pte_batch.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tlb_batch.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.h:31,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mmu.c:26:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mmu.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mmu.c:698:11: warning: no previous prototype for ‘try_get_ptes’ [-Wmissing-prototypes]
  698 | NV_STATUS try_get_ptes(uvm_page_tree_t *tree,
      |           ^~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal_types.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pte_batch.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pte_batch.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal_types.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tlb_batch.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tlb_batch.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_push.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pushbuffer.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_thread_context.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal_types.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_push.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_push.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_thread_context.h:38,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_thread_context.c:25:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pushbuffer.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pushbuffer.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pushbuffer.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pushbuffer.c:112:10: warning: no previous prototype for ‘uvm_pushbuffer_get_size’ [-Wmissing-prototypes]
  112 | NvLength uvm_pushbuffer_get_size(uvm_pushbuffer_t *pushbuffer)
      |          ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pushbuffer.c:213:6: warning: no previous prototype for ‘uvm_pushbuffer_update_progress’ [-Wmissing-prototypes]
  213 | void uvm_pushbuffer_update_progress(uvm_pushbuffer_t *pushbuffer)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tracker.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_ce.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_host.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tracker.h:29,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tracker.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_ce.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_mmu.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_host.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_maxwell.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_maxwell_host.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.h:31,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_mmu.c:39:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_mmu.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_mmu.c:343:21: warning: no previous prototype for ‘uvm_hal_mmu_mode_kepler’ [-Wmissing-prototypes]
  343 | uvm_mmu_mode_hal_t *uvm_hal_mmu_mode_kepler(NvU32 big_page_size)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_mmu.c:352:6: warning: no previous prototype for ‘uvm_hal_kepler_mmu_enable_prefetch_faults_unsupported’ [-Wmissing-prototypes]
  352 | void uvm_hal_kepler_mmu_enable_prefetch_faults_unsupported(uvm_gpu_t *gpu)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kepler_mmu.c:357:6: warning: no previous prototype for ‘uvm_hal_kepler_mmu_disable_prefetch_faults_unsupported’ [-Wmissing-prototypes]
  357 | void uvm_hal_kepler_mmu_disable_prefetch_faults_unsupported(uvm_gpu_t *gpu)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_ce.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_maxwell.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_maxwell_host.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_host.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_mmu.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_fault_buffer.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_ce.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_host.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_host.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.h:31,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_mmu.c:36:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_mmu.c: In function ‘index_bits_pascal’:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_mmu.c:171:5: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
  171 |     const static NvU32 bit_widths[] = {2, 9, 9, 8};
      |     ^~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_mmu.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_mmu.c:345:21: warning: no previous prototype for ‘uvm_hal_mmu_mode_pascal’ [-Wmissing-prototypes]
  345 | uvm_mmu_mode_hal_t *uvm_hal_mmu_mode_pascal(NvU32 big_page_size)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_mmu.c:357:6: warning: no previous prototype for ‘uvm_hal_pascal_mmu_enable_prefetch_faults’ [-Wmissing-prototypes]
  357 | void uvm_hal_pascal_mmu_enable_prefetch_faults(uvm_gpu_t *gpu)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_mmu.c:369:6: warning: no previous prototype for ‘uvm_hal_pascal_mmu_disable_prefetch_faults’ [-Wmissing-prototypes]
  369 | void uvm_hal_pascal_mmu_disable_prefetch_faults(uvm_gpu_t *gpu)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_mmu.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pascal_fault_buffer.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_fault_buffer.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_host.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_global.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_mmu.c:26:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_policy.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_utils.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_fault_buffer.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_fault_buffer.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_fault_buffer.c:354:6: warning: no previous prototype for ‘parse_fault_entry_common’ [-Wmissing-prototypes]
  354 | void parse_fault_entry_common(uvm_gpu_t *gpu, NvU32 *fault_entry, uvm_fault_buffer_entry_t *buffer_entry)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kvmalloc.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.c:33:6: warning: no previous prototype for ‘uvm_hal_volta_enable_access_counter_notifications’ [-Wmissing-prototypes]
   33 | void uvm_hal_volta_enable_access_counter_notifications(uvm_gpu_t *gpu)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.c:44:6: warning: no previous prototype for ‘uvm_hal_volta_disable_access_counter_notifications’ [-Wmissing-prototypes]
   44 | void uvm_hal_volta_disable_access_counter_notifications(uvm_gpu_t *gpu)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.c:55:7: warning: no previous prototype for ‘uvm_hal_volta_access_counter_buffer_entry_size’ [-Wmissing-prototypes]
   55 | NvU32 uvm_hal_volta_access_counter_buffer_entry_size(uvm_gpu_t *gpu)
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.c:141:6: warning: no previous prototype for ‘uvm_hal_volta_access_counter_buffer_entry_is_valid’ [-Wmissing-prototypes]
  141 | bool uvm_hal_volta_access_counter_buffer_entry_is_valid(uvm_gpu_t *gpu, NvU32 index)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.c:153:6: warning: no previous prototype for ‘uvm_hal_volta_access_counter_buffer_entry_clear_valid’ [-Wmissing-prototypes]
  153 | void uvm_hal_volta_access_counter_buffer_entry_clear_valid(uvm_gpu_t *gpu, NvU32 index)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_volta_access_counter_buffer.c:162:6: warning: no previous prototype for ‘uvm_hal_volta_access_counter_buffer_parse_entry’ [-Wmissing-prototypes]
  162 | void uvm_hal_volta_access_counter_buffer_parse_entry(uvm_gpu_t *gpu,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pmm_sysmem.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_processors.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_space.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_policy.c:25:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_policy.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_policy.c:357:11: warning: no previous prototype for ‘va_block_set_read_duplication_locked’ [-Wmissing-prototypes]
  357 | NV_STATUS va_block_set_read_duplication_locked(uvm_va_block_t *va_block,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_utils.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pmm_gpu.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kvmalloc.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_migrate.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_map_external.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.h:31,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pmm_sysmem.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_user_channel.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pmm_gpu.c:162:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_migrate.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_map_external.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_map_external.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_map_external.c:278:11: warning: no previous prototype for ‘map_rm_pt_range’ [-Wmissing-prototypes]
  278 | NV_STATUS map_rm_pt_range(uvm_va_range_t *va_range,
      |           ^~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hmm.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_user_channel.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_heuristics.o
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_user_channel.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_user_channel.c:904:11: warning: no previous prototype for ‘uvm8_test_check_channel_va_space’ [-Wmissing-prototypes]
  904 | NV_STATUS uvm8_test_check_channel_va_space(UVM_TEST_CHECK_CHANNEL_VA_SPACE_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_thrashing.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hmm.h:29,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hmm.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_prefetch.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_heuristics.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test_rng.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_events.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_thrashing.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_thrashing.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_thrashing.c:1406:11: warning: no previous prototype for ‘uvm8_test_get_page_thrashing_policy’ [-Wmissing-prototypes]
 1406 | NV_STATUS uvm8_test_get_page_thrashing_policy(UVM_TEST_GET_PAGE_THRASHING_POLICY_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_thrashing.c:1428:11: warning: no previous prototype for ‘uvm8_test_set_page_thrashing_policy’ [-Wmissing-prototypes]
 1428 | NV_STATUS uvm8_test_set_page_thrashing_policy(UVM_TEST_SET_PAGE_THRASHING_POLICY_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_api.h:29,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_prefetch.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_prefetch.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_prefetch.c:508:11: warning: no previous prototype for ‘uvm8_test_set_page_prefetch_policy’ [-Wmissing-prototypes]
  508 | NV_STATUS uvm8_test_set_page_prefetch_policy(UVM_TEST_SET_PAGE_PREFETCH_POLICY_PARAMS *params, struct file *filp)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test_rng.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test_rng.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_tree_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_allocator_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mem_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_tree_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_global.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_hal.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mem_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore_test.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore_test.c:57:11: warning: no previous prototype for ‘test_tracking’ [-Wmissing-prototypes]
   57 | NV_STATUS test_tracking(uvm_va_space_t *va_space)
      |           ^~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_allocator_test.c:25:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rm_mem_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_page_tree_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tracker_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_push_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_processors.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rm_mem.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rm_mem_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_page_tree_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel_test.o
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_page_tree_test.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_page_tree_test.c:58:7: warning: no previous prototype for ‘cpu_addr_from_fake’ [-Wmissing-prototypes]
   58 | void *cpu_addr_from_fake(uvm_gpu_address_t fake_gpu_addr)
      |       ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_page_tree_test.c:72:6: warning: no previous prototype for ‘fake_wait_for_idle’ [-Wmissing-prototypes]
   72 | void fake_wait_for_idle(uvm_push_t *push)
      |      ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_page_tree_test.c:76:6: warning: no previous prototype for ‘fake_noop’ [-Wmissing-prototypes]
   76 | void fake_noop(uvm_push_t *push, NvU32 size)
      |      ^~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_page_tree_test.c:81:6: warning: no previous prototype for ‘fake_membar’ [-Wmissing-prototypes]
   81 | void fake_membar(uvm_push_t *push)
      |      ^~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_page_tree_test.c:307:11: warning: no previous prototype for ‘test_page_tree_alloc_table’ [-Wmissing-prototypes]
  307 | NV_STATUS test_page_tree_alloc_table(uvm_page_tree_t *tree, NvU32 page_size,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel.h:29,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tracker_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tracker_test.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tracker_test.c:228:11: warning: no previous prototype for ‘test_tracker_overwrite’ [-Wmissing-prototypes]
  228 | NV_STATUS test_tracker_overwrite(uvm_va_space_t *va_space)
      |           ^~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_tracker_test.c:316:11: warning: no previous prototype for ‘test_tracker_add_tracker’ [-Wmissing-prototypes]
  316 | NV_STATUS test_tracker_add_tracker(uvm_va_space_t *va_space)
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_global.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_push_test.c:26:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_push_test.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_push_test.c:358:11: warning: no previous prototype for ‘test_push_interleaving’ [-Wmissing-prototypes]
  358 | NV_STATUS test_push_interleaving(uvm_va_space_t *va_space)
      |           ^~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_push_test.c:587:6: warning: no previous prototype for ‘timestamp_on_complete’ [-Wmissing-prototypes]
  587 | void timestamp_on_complete(void *void_data)
      |      ^~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_ce_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_global.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel_test.c: At top level:
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel_test.c:43:11: warning: no previous prototype for ‘test_ordering’ [-Wmissing-prototypes]
   43 | NV_STATUS test_ordering(uvm_va_space_t *va_space)
      |           ^~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel_test.c:298:20: warning: no previous prototype for ‘random_channel_type’ [-Wmissing-prototypes]
  298 | uvm_channel_type_t random_channel_type(uvm_test_rng_t *rng)
      |                    ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel_test.c:303:12: warning: no previous prototype for ‘random_gpu’ [-Wmissing-prototypes]
  303 | uvm_gpu_t *random_gpu(uvm_test_rng_t *rng, uvm_processor_mask_t *mask)
      |            ^~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel_test.c:317:6: warning: no previous prototype for ‘test_memset_rm_mem’ [-Wmissing-prototypes]
  317 | void test_memset_rm_mem(uvm_push_t *push, uvm_rm_mem_t *rm_mem, NvU32 value)
      |      ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel_test.c:339:11: warning: no previous prototype for ‘stress_test_all_gpus_in_va’ [-Wmissing-prototypes]
  339 | NV_STATUS stress_test_all_gpus_in_va(uvm_va_space_t *va_space, NvU32 num_streams, NvU32 iterations_per_stream,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_utils_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu_semaphore.h:28,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_channel.h:29,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_ce_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kvmalloc_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_lock_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pmm_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_utils.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_utils_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pmm_sysmem_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kvmalloc_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_events_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pmm_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_pmm_sysmem_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_module_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_events.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_events_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_get_rm_ptes_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_fault_buffer_flush_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mmu_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_kvmalloc.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_perf_module_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_get_rm_ptes_test.c:23:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_peer_identity_mappings_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_fault_buffer_flush_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_block_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_gpu.h:31,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_mmu_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group_tree_test.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rb_tree_test.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_peer_identity_mappings_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-modeset/nvidia-modeset-linux.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_va_block_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_test.h:27,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_range_group_tree_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm.o
In file included from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_linux.h:41,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm_common.h:48,
                 from /var/lib/dkms/nvidia/390.157/build/nvidia-uvm/uvm8_rb_tree_test.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:547:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  547 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:561:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  561 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_nocache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:573:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  573 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:582:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  582 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:594:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  594 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h: In function ‘nv_vmap’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:659:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  659 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia/390.157/build/nvidia-modeset/nvidia-modeset-linux.c:765:24: warning: no previous prototype for ‘nvkms_open_common’ [-Wmissing-prototypes]
  765 | struct nvkms_per_open *nvkms_open_common(enum NvKmsClientType type,
      |                        ^~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-modeset/nvidia-modeset-linux.c:817:21: warning: no previous prototype for ‘nvkms_close_common’ [-Wmissing-prototypes]
  817 | void NVKMS_API_CALL nvkms_close_common(struct nvkms_per_open *popen)
      |                     ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-modeset/nvidia-modeset-linux.c:855:20: warning: no previous prototype for ‘nvkms_ioctl_common’ [-Wmissing-prototypes]
  855 | int NVKMS_API_CALL nvkms_ioctl_common
      |                    ^~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-utils.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-crtc.o
  CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-encoder.o
/var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.c:171:6: error: ‘const struct drm_mode_config_funcs’ has no member named ‘output_poll_changed’
  171 |     .output_poll_changed = nv_drm_output_poll_changed,
      |      ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.c:171:28: error: initialization of ‘struct drm_atomic_state * (*)(struct drm_device *)’ from incompatible pointer type ‘void (*)(struct drm_device *)’ [-Wincompatible-pointer-types]
  171 |     .output_poll_changed = nv_drm_output_poll_changed,
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.c:171:28: note: (near initialization for ‘nv_mode_config_funcs.atomic_state_alloc’)
make[3]: *** [scripts/Makefile.build:229: /var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/lib/modules/6.12.1-zen1-1-zen/build/Makefile:1934: /var/lib/dkms/nvidia/390.157/build] Error 2
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.12.1-zen1-1-zen/build'
make: *** [Makefile:81: modules] Error 2

What needs to be done?

Thank you in advance for your time.

Last edited by hikmateustad (2024-11-24 12:48:24)

Offline

#2 2024-11-24 11:41:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,447

Re: [Solved] Nvidia driver 390.157 failed to build on linux zen 6.12.1

You need to pay attention to the comments on the AUR package (or general updates of the AUR package) because someone posted a patch there: https://aur.archlinux.org/packages/nvid … ent-999674

And for these technically unsupported drivers it's not a bad idea to also have LTS installed as a fallback should development of a patch take longer.

Moving to AUR issues.

Last edited by V1del (2024-11-24 11:43:07)

Offline

Board footer

Powered by FluxBB