nvidia-470xx-dkms seems to have missed last chunk of the patch that enables compiling with kernel 6.0.0
Hello,
After loading nvidia-470xx-dkms 470.141.0.3-2 and its dependencies, the nvidia module could not be built with kernel 6.0.0. I checked the patch given in the comment 883889 on the forum and I noticed that the last chunk was not applied:
diff --git a/nvidia/nv.c b/nvidia/nv.c
index ab7d17c..e313e2e 100644
--- a/nvidia/nv.c
+++ b/nvidia/nv.c
@@ -5423,7 +5423,8 @@ NvBool NV_API_CALL nv_s2idle_pm_configured(void)
{
NvU8 buf[8];
-#if defined(NV_SEQ_READ_ITER_PRESENT)
+// FIXME: Avoid this code path because on Linux 6.0-rc1, init_sync_kiocb references a GPL symbol
+#if defined(NV_SEQ_READ_ITER_PRESENT) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0))
struct file *file;
ssize_t num_read;
struct kiocb kiocb;
--
When I manually made the modification in the nv.c file, I was able to successfully compile the nvidia module with the 6.0.0 kernel.
Was this part skipped on purpose or was just an oversight ?
Best regards, SoftExpert
Edited by SoftExpert