The additional patch needed can be modeled off the one at https://bugs.archlinux.org/task/62610 labeled as nvidia-340xx.patch
I've updated the patch to be additive on top of the buildfix_kernel_5.0.patch ** Patch added: "buildfix_kernel_5.1.patch" https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1813064/+attachment/5264094/+files/buildfix_kernel_5.1.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1813064 Title: nvidia-graphics-drivers-340 340.107-0ubuntu2 ADT test failure with linux 5.0.0-1.2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1813064/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs