Bug#994814: nvidia-legacy-390xx-kernel-dkms: build failures on Linux 5.14

Emanuele Rocca ema at linux.it
Tue Sep 21 10:28:04 BST 2021


Package: nvidia-legacy-390xx-kernel-dkms
Version: 390.144-1
Severity: normal
Tags: patch

Hi,
today I've upgraded to linux-image-5.14.0-1-amd64-unsigned, and
nvidia-legacy-390xx-kernel-dkms failed to build with the following
error:

  /var/lib/dkms/nvidia-legacy-390xx/390.144/build/nvidia/os-interface.c:583:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
  583 |         current->state = TASK_INTERRUPTIBLE;
      |                  ^~~~~
      |                  __state

Other than the changes to struct task_struct, the other relevant news in
Linux 5.14 is that the pdev field is now gone from struct drm_device
(see https://gist.github.com/joanbm/144a965c36fc1dc0d1f1b9be3438a368).

  /var/lib/dkms/nvidia-legacy-390xx/390.144/build/nvidia-drm/nvidia-drm-drv.c:814:10: error: ‘struct drm_device’ has no member named ‘pdev’; did you mean ‘dev’?
  814 |     dev->pdev = pdev;
      |          ^~~~
      |          dev

The attached changes to /usr/src/nvidia-legacy-390xx-390.144 fix the
driver with 5.14 on my workstation.

Thanks,
  Emanuele
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvidia-legacy-390xx-kernel-dkms-linux-5.14.patch
Type: text/x-diff
Size: 2139 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20210921/bdfcca00/attachment.patch>


More information about the pkg-nvidia-devel mailing list