Your message dated Fri, 17 Mar 2023 20:35:13 +0000
with message-id <[email protected]>
and subject line Bug#1032891: fixed in nvidia-graphics-drivers-legacy-340xx
340.108-18
has caused the Debian Bug report #1032891,
regarding nvidia-legacy-340xx-kernel-dkms: dkms module does not build against
kernel 6.2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1032891: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032891
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nvidia-legacy-340xx-kernel-dkms
Version: 340.108-17
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected]
Dear Maintainer,
* What led up to the situation?
When compiling the module when installing a 6.2 linux kernel, the dkms
modules compilation failed with:
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,
| ^~~~~~~~~~~~~~~~~~~~~~~
* What exactly did you do (or not do) that was effective (or
ineffective)?
The fix is applying this patch:
https://gist.github.com/vejeta/86e570b0a431b3f8d26911be506323ae
by copying it to: /usr/src/nvidia-legacy-340xx-340.108/patches and adding
the file name "nvidia-340xx-fix-linux-6.2.patch"
to line 12 in /usr/src/nvidia-legacy-340xx-340.108/dkms.conf
like:
PATCH=(bashisms.patch 0001-backport-error-on-unknown-conftests.patch
0002-backport-error-on-unknown-conftests-uvm-part.patch
unregister_procfs_on_failure.patch kmem_cache_create_usercopy.patch buil
nvidia-340xx-fix-linux-6.2.patch)
* What was the outcome of this action?
The kernel could compile the nvidia 340 module and the system worked
perfectly after it.
-- System Information:
Debian Release: bookworm/sid
APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.2.5-x64v3-xanmod1 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to es_ES.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
From: Juan Manuel Méndez Rey <[email protected]>
Date: Mon, 13 Mar 2023 15:49:30 +0000
Subject: [PATCH] Tentative fix for NVIDIA 340.108 DKMS source for Linux 6.2
Credit goes to Joan Bruguera <[email protected]> for the inspiration patch:
"Tentative fix for NVIDIA 470.161.03 driver for Linux 6.2"
---
nv-acpi.c | 19 ++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/nv-acpi.c b/nv-acpi.c
index 07501eb..1fdf71c 100644
--- a/nv-acpi.c
+++ b/nv-acpi.c
@@ -8,6 +8,7 @@
* _NVRM_COPYRIGHT_END_
*/
+#include <linux/version.h>
#define __NO_VERSION__
#include "os-interface.h"
@@ -24,7 +25,10 @@ static NV_STATUS nv_acpi_extract_object (const union
acpi_object *, void *, N
static int nv_acpi_add (struct acpi_device *);
-#if !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) ||
(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
+// Rel. commit "ACPI: make remove callback of ACPI driver void" (Dawei Li, 14
Nov 2022)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))
+static void nv_acpi_remove_one_arg_void(struct acpi_device *device);
+#elif !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) ||
(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
static int nv_acpi_remove_two_args(struct acpi_device *device, int
type);
#else
static int nv_acpi_remove_one_arg(struct acpi_device *device);
@@ -80,7 +84,10 @@ static const struct acpi_driver nv_acpi_driver_template = {
.ids = nv_video_device_ids,
.ops = {
.add = nv_acpi_add,
-#if !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) ||
(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
+// Rel. commit "ACPI: make remove callback of ACPI driver void" (Dawei Li, 14
Nov 2022)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))
+ .remove = nv_acpi_remove_one_arg_void,
+#elif !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) ||
(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
.remove = nv_acpi_remove_two_args,
#else
.remove = nv_acpi_remove_one_arg,
@@ -342,7 +349,10 @@ static int nv_acpi_add(struct acpi_device *device)
return 0;
}
-#if !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) ||
(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
+// Rel. commit "ACPI: make remove callback of ACPI driver void" (Dawei Li, 14
Nov 2022)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))
+static void nv_acpi_remove_one_arg_void(struct acpi_device *device)
+#elif !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) ||
(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
static int nv_acpi_remove_two_args(struct acpi_device *device, int type)
#else
static int nv_acpi_remove_one_arg(struct acpi_device *device)
@@ -396,7 +406,10 @@ static int nv_acpi_remove_one_arg(struct acpi_device
*device)
device->driver_data = NULL;
}
+// Rel. commit "ACPI: make remove callback of ACPI driver void" (Dawei Li, 14
Nov 2022)
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0))
return status;
+#endif
}
/*
--
2.39.0
--- End Message ---
--- Begin Message ---
Source: nvidia-graphics-drivers-legacy-340xx
Source-Version: 340.108-18
Done: Andreas Beckmann <[email protected]>
We believe that the bug you reported is fixed in the latest version of
nvidia-graphics-drivers-legacy-340xx, which is due to be installed in the
Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Beckmann <[email protected]> (supplier of updated
nvidia-graphics-drivers-legacy-340xx package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Fri, 17 Mar 2023 20:36:54 +0100
Source: nvidia-graphics-drivers-legacy-340xx
Architecture: source
Version: 340.108-18
Distribution: unstable
Urgency: medium
Maintainer: Debian NVIDIA Maintainers <[email protected]>
Changed-By: Andreas Beckmann <[email protected]>
Closes: 1032891
Changes:
nvidia-graphics-drivers-legacy-340xx (340.108-18) unstable; urgency=medium
.
* Support acpi_op_remove callback returning void to fix kernel module build
for Linux 6.2. (Closes: #1032891)
* nvidia-alternative: Access kmod config files over a versioned
symlink (510.108.03-3).
* Add versioned Provides: nvidia-kernel-dkms-any (515.65.01-1).
* Bump Standards-Version to 4.6.2. No changes needed.
Checksums-Sha1:
befcce5fd8bbeeb63892c171cc0a9e07863392fb 6866
nvidia-graphics-drivers-legacy-340xx_340.108-18.dsc
a92ecbdbf6abcba248383b5048f06af39ad8ce67 142768
nvidia-graphics-drivers-legacy-340xx_340.108-18.debian.tar.xz
7aeaa201b5cada72affe16baadb8be02738c538e 6112
nvidia-graphics-drivers-legacy-340xx_340.108-18_source.buildinfo
Checksums-Sha256:
ecef58b93b0d9cb2079a2398366b5b898e247ee04d1ec1c1681f54cbdceec5ba 6866
nvidia-graphics-drivers-legacy-340xx_340.108-18.dsc
17d5f0f210c34686acc54e3e472cb8061de3ce91e4944ebd6ff5088c65662230 142768
nvidia-graphics-drivers-legacy-340xx_340.108-18.debian.tar.xz
6f31065b811d0a5786591791ebd045411af5f1d242547bfb446c41fa12b97e96 6112
nvidia-graphics-drivers-legacy-340xx_340.108-18_source.buildinfo
Files:
4c2445fe757da7af7ade311905f2dc3b 6866 non-free/libs optional
nvidia-graphics-drivers-legacy-340xx_340.108-18.dsc
6e964919916d85096801f0ea59ce59e7 142768 non-free/libs optional
nvidia-graphics-drivers-legacy-340xx_340.108-18.debian.tar.xz
8d7fa08bd42d71c322e4e505a9afef85 6112 non-free/libs optional
nvidia-graphics-drivers-legacy-340xx_340.108-18_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmQUw6cQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCKGqD/9dAZNqGdc2L8S8gNjgR0potperBb7ijGwN
SLJvMHNl7i1kg29Kixe7i6/250QWr6dcLf/HcByJbikgWilVPfMBvxkgxr4Lbwzx
T3s/bWU/GJhhag/qYx1L0Fr1IsB4sDR5CT0U7EXkvzi5T/kr//FnILB5dX9GRP0W
FNz9Zw7HzfG80lQ8XrWGNNPBMp/Q5ugWIO63IUbWUL7hijU4n/LOrTYafXddOsrT
ow+KEDUsxd+D8JZJHMj9BPyEXKyP9YKrc1XqzBBr4OmSp5pbrocBRmu5MshkvgdT
9wqKEmfU9wVoXdLeKzynvnVkycgpSNnxw5goDngLwDI/kiUOzVqj1a1livRs+Jsd
epkIsdBWt6SWxLgykGs0zrLt2mvjkTYkOMKC6aIbhUlrUnYlBxI3Y67tLHANBZLr
KjCC4uqMeGUZmauuYG8t6kqYVIpNkx0OBNWDDCDc/mEGQEVYTQyJUlad0m4Tv40U
BLJJlbzAT99jkJx7pi6xKZvOxua6+9NSzuJjZ8uKkHwyt1NtMZE/St6CBLP5aASr
mG+3ZJGiKOb6cZngfGre32eHs4BlP/aFRJxyiB1U3xhFim/5A++tP6gaMBMxeZZ1
U2aOCUm/kHpyVV++MvByUiZvXXTEmeQhU8B15gNjgs2vHs6osFLe+KLDB9TRzD86
s8e17+a18A==
=Gemj
-----END PGP SIGNATURE-----
--- End Message ---