Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel 6.13: implicit declaration of function ‘crypto_akcipher_verify’; did you mean ‘crypto_akcipher_reqtfm’? #746

Open
1 task
philmmanjaro opened this issue Nov 26, 2024 · 11 comments

Comments

@philmmanjaro
Copy link

NVIDIA Open GPU Kernel Modules Version

565.57.01

Operating System and Version

Manjaro Linux

Kernel Release

6.13.0-rc0-1-MANJARO

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Build Command

sudo chrootbuild -p nvidia -b unstable

Terminal output/Build Log

Build log:

(5/6) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux613.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.13-x86_64 -g /boot/initramfs-6.13-x86_64.img
==> Starting build: '6.13.0-rc0-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.13-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux613.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.13-x86_64 -g /boot/initramfs-6.13-x86_64-fallback.img -S autodetect
==> Starting build: '6.13.0-rc0-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
==> WARNING: Possibly missing firmware for module: 'i915'
==> WARNING: Possibly missing firmware for module: 'nouveau'
==> WARNING: Possibly missing firmware for module: 'amdgpu'
==> WARNING: Possibly missing firmware for module: 'radeon'
==> WARNING: Possibly missing firmware for module: 'xe'
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci_renesas'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'cxgb4'
==> WARNING: Possibly missing firmware for module: 'csiostor'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'cxgb3'
==> WARNING: Possibly missing firmware for module: 'advansys'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'isci'
==> WARNING: Possibly missing firmware for module: 'ums_eneub6250'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.13-x86_64-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(6/6) Reloading system bus configuration...
  Skipped: Running in chroot.
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading NVIDIA-Linux-x86_64-565.57.01-no-compat32.run...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 20  260M   20 53.8M    0     0   228M      0  0:00:01 --:--:--  0:00:01  228M
100  260M  100  260M    0     0   246M      0  0:00:01  0:00:01 --:--:--  247M
  -> Found make-modeset-fbdev-default.patch
  -> Found nvidia-drm-Set-FOP_UNSIGNED_OFFSET-for-nv_drm_fops.f.patch
==> Validating source files with sha256sums...
    NVIDIA-Linux-x86_64-565.57.01-no-compat32.run ... Passed
    make-modeset-fbdev-default.patch ... Passed
    nvidia-drm-Set-FOP_UNSIGNED_OFFSET-for-nv_drm_fops.f.patch ... Passed
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-565.57.01-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 565.57.01...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
patching file nvidia-drm/nvidia-drm-linux.c
patching file nvidia-drm/nvidia-drm-os-interface.c
patching file nvidia-drm/nvidia-drm-linux.c
patching file nvidia-drm/nvidia-drm-os-interface.c
patching file nvidia-drm/nvidia-drm-drv.c
patching file nvidia-drm/nvidia-drm-drv.c
==> Starting build()...
make: Entering directory '/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open'
make[1]: Entering directory '/usr/lib/modules/6.13.0-rc0-1-MANJARO/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (GCC) 14.2.1 20240910
  You are using:           cc (GCC) 14.2.1 20240910
  SYMLINK /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-kernel.o
  SYMLINK /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: set_pages_array_uc
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: ioremap_driver_hardened
 CONFTEST: ioremap_driver_hardened_wc
 CONFTEST: ioremap_cache_shared
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: pde_data
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: get_dma_ops
 CONFTEST: dma_attr_macros
 CONFTEST: dma_map_page_attrs
 CONFTEST: write_cr4
 CONFTEST: of_find_node_by_phandle
 CONFTEST: of_node_to_nid
 CONFTEST: pnv_pci_get_npu_dev
 CONFTEST: of_get_ibm_chip_id
 CONFTEST: pci_stop_and_remove_bus_device
 CONFTEST: pci_rebar_get_possible_sizes
 CONFTEST: wait_for_random_bytes
 CONFTEST: register_cpu_notifier
 CONFTEST: cpuhp_setup_state
 CONFTEST: dma_map_resource
 CONFTEST: get_backlight_device_by_name
 CONFTEST: timer_setup
 CONFTEST: pci_enable_msix_range
 CONFTEST: kernel_read_has_pointer_pos_arg
 CONFTEST: kernel_write_has_pointer_pos_arg
 CONFTEST: dma_direct_map_resource
 CONFTEST: tegra_get_platform
 CONFTEST: tegra_bpmp_send_receive
 CONFTEST: flush_cache_all
 CONFTEST: vmf_insert_pfn
 CONFTEST: jiffies_to_timespec
 CONFTEST: ktime_get_raw_ts64
 CONFTEST: ktime_get_real_ts64
 CONFTEST: full_name_hash
 CONFTEST: pci_enable_atomic_ops_to_root
 CONFTEST: vga_tryget
 CONFTEST: cc_platform_has
 CONFTEST: cc_attr_guest_sev_snp
 CONFTEST: hv_get_isolation_type
 CONFTEST: seq_read_iter
 CONFTEST: follow_pfn
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_gem_object_put_unlocked
 CONFTEST: add_memory_driver_managed
 CONFTEST: device_property_read_u64
 CONFTEST: devm_of_platform_populate
 CONFTEST: of_dma_configure
 CONFTEST: of_property_count_elems_of_size
 CONFTEST: of_property_read_variable_u8_array
 CONFTEST: of_property_read_variable_u32_array
 CONFTEST: i2c_new_client_device
 CONFTEST: i2c_unregister_device
 CONFTEST: of_get_named_gpio
 CONFTEST: devm_gpio_request_one
 CONFTEST: gpio_direction_input
 CONFTEST: gpio_direction_output
 CONFTEST: gpio_get_value
 CONFTEST: gpio_set_value
 CONFTEST: gpio_to_irq
 CONFTEST: icc_get
 CONFTEST: icc_put
 CONFTEST: icc_set_bw
 CONFTEST: dma_buf_export_args
 CONFTEST: dma_buf_ops_has_kmap
 CONFTEST: dma_buf_ops_has_kmap_atomic
 CONFTEST: dma_buf_ops_has_map
 CONFTEST: dma_buf_ops_has_map_atomic
 CONFTEST: dma_buf_has_dynamic_attachment
 CONFTEST: dma_buf_attachment_has_peer2peer
 CONFTEST: dma_set_mask_and_coherent
 CONFTEST: devm_clk_bulk_get_all
 CONFTEST: get_task_ioprio
 CONFTEST: mdev_set_iommu_device
 CONFTEST: offline_and_remove_memory
 CONFTEST: stack_trace
 CONFTEST: crypto_tfm_ctx_aligned
 CONFTEST: radix_tree_empty
 CONFTEST: radix_tree_replace_slot
 CONFTEST: pnv_npu2_init_context
 CONFTEST: cpumask_of_node
 CONFTEST: ioasid_get
 CONFTEST: mm_pasid_drop
 CONFTEST: mmget_not_zero
 CONFTEST: mmgrab
 CONFTEST: iommu_sva_bind_device_has_drvdata_arg
 CONFTEST: vm_fault_to_errno
 CONFTEST: find_next_bit_wrap
 CONFTEST: iommu_is_dma_domain
 CONFTEST: folio_test_swapcache
 CONFTEST: acpi_video_backlight_use_native
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: pin_user_pages_remote
 CONFTEST: pin_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_connector_has_vrr_capable_property
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_dev_put
 CONFTEST: drm_format_num_planes
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: drm_rotation_available
 CONFTEST: drm_vma_offset_exact_lookup_locked
 CONFTEST: nvhost_dma_fence_unpack
 CONFTEST: dma_fence_set_error
 CONFTEST: fence_set_error
 CONFTEST: sync_file_get_fence
 CONFTEST: drm_aperture_remove_conflicting_pci_framebuffers
 CONFTEST: drm_fbdev_generic_setup
 CONFTEST: drm_fbdev_ttm_setup
 CONFTEST: drm_connector_attach_hdr_output_metadata_property
 CONFTEST: drm_helper_crtc_enable_color_mgmt
 CONFTEST: drm_crtc_enable_color_mgmt
 CONFTEST: drm_atomic_helper_legacy_gamma_set
 CONFTEST: vmf_insert_mixed
 CONFTEST: pfn_to_pfn_t
 CONFTEST: drm_gem_prime_mmap
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_gpl_sme_active
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: is_export_symbol_present___close_fd
 CONFTEST: is_export_symbol_present_close_fd
 CONFTEST: is_export_symbol_present_get_unused_fd
 CONFTEST: is_export_symbol_present_get_unused_fd_flags
 CONFTEST: is_export_symbol_present_nvhost_get_default_device
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_byte_offset
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_aperture
 CONFTEST: is_export_symbol_present_tegra_dce_register_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_unregister_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_client_ipc_send_recv
 CONFTEST: is_export_symbol_present_dram_clk_to_mc_clk
 CONFTEST: is_export_symbol_present_get_dram_num_channels
 CONFTEST: is_export_symbol_present_tegra_dram_types
 CONFTEST: is_export_symbol_present_pxm_to_node
 CONFTEST: is_export_symbol_present_screen_info
 CONFTEST: is_export_symbol_gpl_screen_info
 CONFTEST: is_export_symbol_present_i2c_bus_status
 CONFTEST: is_export_symbol_present_tegra_fuse_control_read
 CONFTEST: is_export_symbol_present_tegra_get_platform
 CONFTEST: is_export_symbol_present_pci_find_host_bridge
 CONFTEST: is_export_symbol_present_tsec_comms_send_cmd
 CONFTEST: is_export_symbol_present_tsec_comms_set_init_cb
 CONFTEST: is_export_symbol_present_tsec_comms_clear_init_cb
 CONFTEST: is_export_symbol_present_tsec_comms_alloc_mem_from_gscco
 CONFTEST: is_export_symbol_present_tsec_comms_free_gscco_mem
 CONFTEST: is_export_symbol_present_memory_block_size_bytes
 CONFTEST: crypto
 CONFTEST: is_export_symbol_present_follow_pte
 CONFTEST: is_export_symbol_gpl_pci_ats_supported
 CONFTEST: is_export_symbol_present_int_active_memcg
 CONFTEST: is_export_symbol_present_migrate_vma_setup
 CONFTEST: dma_ops
 CONFTEST: swiotlb_dma_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: vm_fault_has_address
 CONFTEST: vm_insert_pfn_prot
 CONFTEST: vmf_insert_pfn_prot
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: kmem_cache_has_kobj_remove_work
 CONFTEST: sysfs_slab_unlink
 CONFTEST: proc_ops
 CONFTEST: timespec64
 CONFTEST: vmalloc_has_pgprot_t_arg
 CONFTEST: mm_has_mmap_lock
 CONFTEST: pci_channel_state
 CONFTEST: pci_dev_has_ats_enabled
 CONFTEST: remove_memory_has_nid_arg
 CONFTEST: add_memory_driver_managed_has_mhp_flags_arg
 CONFTEST: num_registered_fb
 CONFTEST: pci_driver_has_driver_managed_dma
 CONFTEST: vm_area_struct_has_const_vm_flags
 CONFTEST: memory_failure_has_trapno_arg
 CONFTEST: foll_longterm_present
 CONFTEST: bus_type_has_iommu_ops
 CONFTEST: mmu_notifier_ops_invalidate_range
 CONFTEST: mmu_notifier_ops_arch_invalidate_secondary_tlbs
 CONFTEST: migrate_vma_added_flags
 CONFTEST: migrate_device_range
 CONFTEST: handle_mm_fault_has_mm_arg
 CONFTEST: handle_mm_fault_has_pt_regs_arg
 CONFTEST: mempolicy_has_unified_nodes
 CONFTEST: mempolicy_has_home_node
 CONFTEST: mpol_preferred_many_present
 CONFTEST: mmu_interval_notifier
 CONFTEST: fault_flag_remote_present
 CONFTEST: struct_page_has_zone_device_data
 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_helper_mode_fill_fb_struct
 CONFTEST: drm_master_drop_has_from_release_arg
 CONFTEST: drm_driver_unload_has_int_return_type
 CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
 CONFTEST: drm_atomic_helper_plane_destroy_state_has_plane_arg
 CONFTEST: drm_mode_object_find_has_file_priv_arg
 CONFTEST: dma_buf_owner
 CONFTEST: drm_connector_list_iter
 CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
 CONFTEST: drm_driver_prime_flag_present
 CONFTEST: vm_fault_t
 CONFTEST: drm_gem_object_has_resv
 CONFTEST: drm_crtc_state_has_async_flip
 CONFTEST: drm_crtc_state_has_pageflip_flags
 CONFTEST: drm_crtc_state_has_vrr_enabled
 CONFTEST: drm_format_modifiers_present
 CONFTEST: drm_vma_node_is_allowed_has_tag_arg
 CONFTEST: drm_vma_offset_node_has_readonly
 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: drm_crtc_state_has_no_vblank
 CONFTEST: drm_mode_config_has_allow_fb_modifiers
 CONFTEST: drm_has_hdr_output_metadata
 CONFTEST: dma_resv_add_fence
 CONFTEST: dma_resv_reserve_fences
 CONFTEST: reservation_object_reserve_shared_has_num_fences_arg
 CONFTEST: drm_connector_has_override_edid
 CONFTEST: drm_master_has_leases
 CONFTEST: drm_file_get_master
 CONFTEST: drm_modeset_lock_all_end
 CONFTEST: drm_connector_lookup
 CONFTEST: drm_connector_put
 CONFTEST: drm_driver_has_dumb_destroy
 CONFTEST: fence_ops_use_64bit_seqno
 CONFTEST: drm_aperture_remove_conflicting_pci_framebuffers_has_driver_arg
 CONFTEST: drm_mode_create_dp_colorspace_property_has_supported_colorspaces_arg
 CONFTEST: drm_syncobj_features_present
 CONFTEST: drm_unlocked_ioctl_flag_present
 CONFTEST: drm_framebuffer_obj_present
 CONFTEST: drm_color_ctm_3x4_present
 CONFTEST: drm_color_lut
 CONFTEST: drm_property_blob_put
 CONFTEST: drm_driver_has_gem_prime_mmap
 CONFTEST: drm_output_poll_changed
 CONFTEST: dom0_kernel_present
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: nvidia_grid_csp_build
 CONFTEST: pm_runtime_available
 CONFTEST: pci_class_multimedia_hd_audio
 CONFTEST: drm_available
 CONFTEST: vfio_pci_core_available
 CONFTEST: mdev_available
 CONFTEST: cmd_uphy_display_port_init
 CONFTEST: cmd_uphy_display_port_off
 CONFTEST: memory_failure_mf_sw_simulated_defined
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
 CONFTEST: drm_alpha_blending_available
 CONFTEST: is_export_symbol_present_drm_gem_prime_fd_to_handle
 CONFTEST: is_export_symbol_present_drm_gem_prime_handle_to_fd
 CONFTEST: ib_peer_memory_symbols
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-pci.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dmabuf.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-nano-timer.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-acpi.o
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c:34:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c: In function ‘nvos_create_alloc’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c:323:5: note: in expansion of macro ‘NV_KZALLOC’
  323 |     NV_KZALLOC(at, sizeof(nv_alloc_t));
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c: In function ‘nv_alloc_file_private’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c:1011:5: note: in expansion of macro ‘NV_KZALLOC’
 1011 |     NV_KZALLOC(nvlfp, sizeof(nv_linux_file_private_t));
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c: In function ‘nvidia_ioctl’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c:2399:5: note: in expansion of macro ‘NV_KMALLOC’
 2399 |     NV_KMALLOC(arg_copy, arg_size);
      |     ^~~~~~~~~~
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-pci.h:28,
                 from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-pci.c:26:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-pci.c: In function ‘nv_pci_probe’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-pci.c:728:5: note: in expansion of macro ‘NV_KZALLOC’
  728 |     NV_KZALLOC(nvl, sizeof(nv_linux_state_t));
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c:2502:13: note: in expansion of macro ‘NV_KMALLOC’
 2502 |             NV_KMALLOC(nvlfp->attached_gpus, arg_size);
      |             ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c: In function ‘nv_map_guest_pages’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c:3139:5: note: in expansion of macro ‘NV_KMALLOC’
 3139 |     NV_KMALLOC(pages, sizeof(struct page *) * page_count);
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c: In function ‘nv_alloc_kernel_mapping’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c:3634:13: note: in expansion of macro ‘NV_KMALLOC’
 3634 |             NV_KMALLOC(pages, sizeof(struct page *) * page_count);
      |             ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c: In function ‘nv_post_event’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:586:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  586 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv.c:3918:9: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
 3918 |         NV_KMALLOC_ATOMIC(nvet, sizeof(nvidia_event_t));
      |         ^~~~~~~~~~~~~~~~~
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-nano-timer.c:31:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-nano-timer.c: In function ‘nv_alloc_nano_timer’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-nano-timer.c:90:5: note: in expansion of macro ‘NV_KMALLOC’
   90 |     NV_KMALLOC(nv_nstimer, sizeof(nv_nano_timer_t));
      |     ^~~~~~~~~~
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-dmabuf.h:27,
                 from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dmabuf.c:24:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dmabuf.c: In function ‘nv_dma_buf_alloc_file_private’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dmabuf.c:125:5: note: in expansion of macro ‘NV_KZALLOC’
  125 |     NV_KZALLOC(priv, sizeof(nv_dma_buf_file_private_t));
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dmabuf.c: In function ‘nv_dma_buf_map_pages’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dmabuf.c:605:5: note: in expansion of macro ‘NV_KZALLOC’
  605 |     NV_KZALLOC(sgt, sizeof(struct sg_table));
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dmabuf.c: In function ‘nv_dma_buf_map_pfns’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dmabuf.c:699:5: note: in expansion of macro ‘NV_KZALLOC’
  699 |     NV_KZALLOC(sgt, sizeof(struct sg_table));
      |     ^~~~~~~~~~
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-cray.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-dma.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-i2c.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-mmap.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-p2p.o
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-mmap.c:321:5: warning: conflicting types for ‘nv_encode_caching’ due to enum/integer mismatch; have ‘int(pgprot_t *, NvU32,  nv_memory_type_t)’ {aka ‘int(struct pgprot *, unsigned int,  nv_memory_type_t)’} [-Wenum-int-mismatch]
  321 | int nv_encode_caching(
      |     ^~~~~~~~~~~~~~~~~
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:1805,
                 from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-mmap.c:27:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-proto.h:44:13: note: previous declaration of ‘nv_encode_caching’ with type ‘int(pgprot_t *, NvU32,  NvU32)’ {aka ‘int(struct pgprot *, unsigned int,  unsigned int)’}
   44 | int         nv_encode_caching           (pgprot_t *, NvU32, NvU32);
      |             ^~~~~~~~~~~~~~~~~
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-pat.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-procfs.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-usermap.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-vm.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-vtophys.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.o
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-procfs.c:27:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-procfs.c: In function ‘nv_procfs_open_file’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-procfs.c:273:5: note: in expansion of macro ‘NV_KZALLOC’
  273 |     NV_KZALLOC(nvpp, sizeof(nv_procfs_private_t));
      |     ^~~~~~~~~~
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-mlock.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-pci.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-registry.o
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.c:27:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.c: In function ‘os_alloc_mem’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:586:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  586 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.c:637:13: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
  637 |             NV_KMALLOC_ATOMIC(*address, alloc_size);
      |             ^~~~~~~~~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:601:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  601 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.c:643:13: note: in expansion of macro ‘NV_KMALLOC_NO_OOM’
  643 |             NV_KMALLOC_NO_OOM(*address, alloc_size);
      |             ^~~~~~~~~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.c: In function ‘os_queue_work_item’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:586:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  586 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.c:1184:5: note: in expansion of macro ‘NV_KMALLOC_ATOMIC’
 1184 |     NV_KMALLOC_ATOMIC(oqd, sizeof(os_queue_data_t));
      |     ^~~~~~~~~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.c: In function ‘os_alloc_wait_queue’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-interface.c:2059:5: note: in expansion of macro ‘NV_KMALLOC’
 2059 |     NV_KMALLOC(*wq, sizeof(os_wait_queue));
      |     ^~~~~~~~~~
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/os-usermap.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-modeset-interface.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-pci-table.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-kthread-q.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-memdbg.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-ibmnpu.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-report-err.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-rsync.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-msi.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps-imex.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-host1x.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv_uvm_interface.o
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-msi.h:27,
                 from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-msi.c:24:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-msi.c: In function ‘nv_init_msi’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-msi.c:39:9: note: in expansion of macro ‘NV_KZALLOC’
   39 |         NV_KZALLOC(nvl->irq_count, sizeof(nv_irq_count_info_t) * nvl->num_intr);
      |         ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-msi.c: In function ‘nv_init_msix’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-msi.c:90:5: note: in expansion of macro ‘NV_KMALLOC’
   90 |     NV_KMALLOC(nvl->msix_entries, sizeof(struct msix_entry) * num_intr);
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:579:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-msi.c:102:5: note: in expansion of macro ‘NV_KZALLOC’
  102 |     NV_KZALLOC(nvl->irq_count, sizeof(nv_irq_count_info_t) * num_intr);
      |     ^~~~~~~~~~
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_aead.o
In file included from /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c:24:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c: In function ‘nv_cap_procfs_open’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c:435:5: note: in expansion of macro ‘NV_KMALLOC’
  435 |     NV_KMALLOC(private, sizeof(nv_cap_file_private_t));
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c: In function ‘nv_cap_alloc’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c:635:5: note: in expansion of macro ‘NV_KMALLOC’
  635 |     NV_KMALLOC(cap, sizeof(nv_cap_t));
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c:642:5: note: in expansion of macro ‘NV_KMALLOC’
  642 |     NV_KMALLOC(cap->path, len);
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c:654:5: note: in expansion of macro ‘NV_KMALLOC’
  654 |     NV_KMALLOC(cap->name, len);
      |     ^~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c: In function ‘nv_cap_init’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/common/inc/nv-linux.h:572:37: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  572 |             NV_MEMDBG_ADD(ptr, size); \
      |                                     ^
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/nv-caps.c:759:5: note: in expansion of macro ‘NV_KMALLOC’
  759 |     NV_KMALLOC(name, (strlen(path) + strlen(dir)) + 1);
      |     ^~~~~~~~~~
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_ecc.o
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_aead.c:41:5: warning: no previous prototype for ‘libspdm_aead_prealloc’ [-Wmissing-prototypes]
   41 | int libspdm_aead_prealloc(void **context, char const *alg)
      |     ^~~~~~~~~~~~~~~~~~~~~
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_aead.c:178:5: warning: no previous prototype for ‘libspdm_aead_prealloced’ [-Wmissing-prototypes]
  178 | int libspdm_aead_prealloced(void *context,
      |     ^~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_hkdf.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_rand.o
  CC [M]  /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_shash.o
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_ecc.c: In function ‘lkca_ecdsa_verify’:
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_ecc.c:312:27: error: implicit declaration of function ‘crypto_akcipher_verify’; did you mean ‘crypto_akcipher_reqtfm’? [-Wimplicit-function-declaration]
  312 |     err = crypto_wait_req(crypto_akcipher_verify(req), &wait);
      |                           ^~~~~~~~~~~~~~~~~~~~~~
      |                           crypto_akcipher_reqtfm
make[3]: *** [scripts/Makefile.build:229: /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_ecc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open/nvidia/libspdm_rand.c:34:6: warning: no previous prototype for ‘libspdm_random_seed’ [-Wmissing-prototypes]
   34 | bool libspdm_random_seed(const uint8_t *seed, size_t seed_size)
      |      ^~~~~~~~~~~~~~~~~~~
make[2]: *** [/usr/lib/modules/6.13.0-rc0-1-MANJARO/build/Makefile:1936: /build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open] Error 2
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.13.0-rc0-1-MANJARO/build'
make: *** [Makefile:89: modules] Error 2
make: Leaving directory '/build/linux613-nvidia/src/NVIDIA-Linux-x86_64-565.57.01-no-compat32/kernel-open'
==> ERROR: A failure occurred in build().
    Aborting...

More Info

With commit torvalds/linux@6b34562 the following changes were made upstream:

crypto: akcipher - Drop sign/verify operations
A sig_alg backend has just been introduced and all asymmetric
sign/verify algorithms have been migrated to it.

The sign/verify operations can thus be dropped from akcipher_alg.
It is now purely for asymmetric encrypt/decrypt.

Nvidia driver and Nvidia-Open driver needs to adopt to these changes.

@ttabi
Copy link

ttabi commented Nov 26, 2024

"We do not accept bug reports for unreleased kernels."

Please don't ignore this line.

@steven-bellock
Copy link

steven-bellock commented Nov 26, 2024

This has been tracked internally as bug 4898827.

@philmmanjaro that workaround is fine if the system is not in confidential compute mode. In that case an even simpler workaround is just err = 0. However if the system is in confidential compute mode then things will fail.

@Binary-Eater
Copy link

We are tracking this as well in internal bug 4898827.

@philmmanjaro
Copy link
Author

@Binary-Eater maybe share the patch, when there is one, also in this issue.

@SheMelody
Copy link

SheMelody commented Dec 2, 2024

This has been tracked internally as bug 4898827.

@philmmanjaro that workaround is fine if the system is not in confidential compute mode. In that case an even simpler workaround is just err = 0. However if the system is in confidential compute mode then things will fail.

It also makes wrong symlinks so it doesn't install. To quickly workaround the problem I just made and ran this loop script while the kernel installed:

#!/bin/bash
while true
do
    cat /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia/nv-kernel.o > /dev/null
    if [[ $? != 0 ]]; then
        sudo rm /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia/nv-kernel.o
        sudo cp --force /var/lib/dkms/nvidia/565.57.01/build/src/nvidia/_out/Linux_x86_64/nv-kernel.o /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia/nv-kernel.o
    fi
    cat /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia-modeset/nv-modeset-kernel.o > /dev/null
    if [[ $? != 0 ]]; then
        sudo rm /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia-modeset/nv-modeset-kernel.o
        sudo cp --force /var/lib/dkms/nvidia/565.57.01/build/src/nvidia-modeset/_out/Linux_x86_64/nv-modeset-kernel.o /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia-modeset/nv-modeset-kernel.o
    fi
done

I know, it's probably not the best solution, but it works and I'm in.

@philmmanjaro
Copy link
Author

@SheMelody you can use this patch instead: https://gist.github.com/joanbm/d1f89391a4b20f4b56ba931ef6ca62da

@SheMelody
Copy link

@SheMelody you can use this patch instead: https://gist.github.com/joanbm/d1f89391a4b20f4b56ba931ef6ca62da

Thanks, that's basically the problem that was happening.

@SheMelody
Copy link

For 565.77 I also had to comment MODULE_IMPORT_NS(DMA_BUF); at line 130 of nv.c. No idea what this will cause but I'll see. All the workarounds above are still required.

@ptr1337
Copy link

ptr1337 commented Dec 10, 2024

For 565.77 I also had to comment MODULE_IMPORT_NS(DMA_BUF); at line 130 of nv.c. No idea what this will cause but I'll see. All the workarounds above are still required.

Here a better way todo:
https://raw.githubusercontent.com/CachyOS/CachyOS-PKGBUILDS/refs/heads/nvidia-565-6.13/nvidia/nvidia-utils/0009-nvidia-nv-Convert-symbol-namespace-to-string-literal.patch

@SheMelody
Copy link

SheMelody commented Dec 10, 2024

For 565.77 I also had to comment MODULE_IMPORT_NS(DMA_BUF); at line 130 of nv.c. No idea what this will cause but I'll see. All the workarounds above are still required.

Here a better way todo: https://raw.githubusercontent.com/CachyOS/CachyOS-PKGBUILDS/refs/heads/nvidia-565-6.13/nvidia/nvidia-utils/0009-nvidia-nv-Convert-symbol-namespace-to-string-literal.patch

Thanks. Will there be problems if that entire line is just commented out instead? I'm having no issues so far but I'd like to know, because I'm too lazy and busy to reinstall.

Edit: Just performed your fix and it's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants