470xx drivers and linux 6.2 kernel

today i updated my opensuse tumbleweed system to linux kernel 6.2.
but when i tried to create the nvidia driver (version: 470.161.03) for that kernel it failed.
i uploaded the installer log to this post.
the first errors is:

/tmp/NVIDIA-Linux-x86_64-470.161.03/kernel/nvidia/nv-acpi.c:84:19: error: initialization of ‘void (*)(struct acpi_device *)’ from incompatible pointer type ‘int (*)(struct acpi_device *, int)’ [-Werror=incompatible-pointer-types]
      84 |         .remove = nv_acpi_remove_two_args,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~

then

   /tmp/NVIDIA-Linux-x86_64-470.161.03/kernel/nvidia-drm/nvidia-drm-drv.c:245:21: error: ‘struct drm_mode_config’ has no member named ‘fb_base’
     245 |     dev->mode_config.fb_base = 0;
         |                     ^

and

  /tmp/NVIDIA-Linux-x86_64-470.161.03/kernel/nvidia-drm/nvidia-drm-connector.c:101:18: error: ‘struct drm_connector’ has no member named ‘override_edid’
     101 |     if (connector->override_edid) {
         |                  ^~

nvidia-installer.log (58.4 KB)

1 Like

Same here in my Gentoo-box

Iade

i found a solution:
https://gist.github.com/joanbm

it works for me.

1 Like

Here too :)
Thanks a lot!!!

Iade