6.2 Module Build - all good except for nvidia-390xx
All, Follow-up from a recent thread on 6.2 kernel module builds. All Arch package modules built fine, as did 6.1 branch of virtualbox. However the nvidia-390xx driver fails to build with: nv-gpu-numa.c:232:47: warning: cast between incompatible function types from XXX to YYY (long type salad omitted) 232 | nv_dir_context_t ats_ctx = { .ctx.actor = (filldir_t)filldir_get_memblock_id }; nv-acpi.c:77:19: error: initialization of ‘void (*)(struct acpi_device *)’ from incompatible pointer type ‘int (*)(struct acpi_device *, int)’ [-Werror=incompatible-pointer-types] 77 | .remove = nv_acpi_remove_two_args, The upside is it is a -Werror trip of a warning into an error so there may be a path to work around from a compiler option standpoint, but I've yet to look into that or an actual patch yet. -- David C. Rankin, J.D.,P.E.
On 2/27/23 9:13 PM, David C. Rankin wrote:
All,
Follow-up from a recent thread on 6.2 kernel module builds. All Arch package modules built fine, as did 6.1 branch of virtualbox. However the nvidia-390xx driver fails to build with:
Looks like there's a patch for kernel 6.2 for that nvidia driver. (See https://aur.archlinux.org/cgit/aur.git/tree/kernel-6.2.patch?h=nvidia-390xx-...) Did you try building the latest code from AUR that includes that patch? HTH, DR
On 2/27/23 20:45, David Rosenstrauch wrote:
On 2/27/23 9:13 PM, David C. Rankin wrote:
All,
Follow-up from a recent thread on 6.2 kernel module builds. All Arch package modules built fine, as did 6.1 branch of virtualbox. However the nvidia-390xx driver fails to build with:
Looks like there's a patch for kernel 6.2 for that nvidia driver. (See https://aur.archlinux.org/cgit/aur.git/tree/kernel-6.2.patch?h=nvidia-390xx-...) Did you try building the latest code from AUR that includes that patch?
HTH,
DR
Gah, I was just there and missed it! Yes, after fixing the warning/error by adding: EXTRA_CFLAGS += -Wno-error=incompatible-pointer-types to the Kbuild options, I hit the real error: nvidia-drm-drv.c:244:21: error: ‘struct drm_mode_config’ has no member named ‘fb_base’ That patch looks like it addresses it. Thank you and sorry about the noise. -- David C. Rankin, J.D.,P.E.
It's ok. Watching the email threads allows me to know how to troubleshoot more issues such as yours. On Mon, Feb 27, 2023, 9:09 PM David C. Rankin <drankinatty@gmail.com> wrote:
On 2/27/23 20:45, David Rosenstrauch wrote:
On 2/27/23 9:13 PM, David C. Rankin wrote:
All,
Follow-up from a recent thread on 6.2 kernel module builds. All Arch package modules built fine, as did 6.1 branch of virtualbox. However
the
nvidia-390xx driver fails to build with:
Looks like there's a patch for kernel 6.2 for that nvidia driver. (See
https://aur.archlinux.org/cgit/aur.git/tree/kernel-6.2.patch?h=nvidia-390xx-...) Did you try building the latest code from AUR that includes that patch?
HTH,
DR
Gah,
I was just there and missed it! Yes, after fixing the warning/error by adding:
EXTRA_CFLAGS += -Wno-error=incompatible-pointer-types
to the Kbuild options, I hit the real error:
nvidia-drm-drv.c:244:21: error: ‘struct drm_mode_config’ has no member named ‘fb_base’
That patch looks like it addresses it. Thank you and sorry about the noise.
-- David C. Rankin, J.D.,P.E.
participants (3)
-
David C. Rankin
-
David Rosenstrauch
-
Matthew Blankenbeheler