Skip to content

Commit

Permalink
Patches for Linux 6.0
Browse files Browse the repository at this point in the history
jackpot51 committed Oct 21, 2022
1 parent 1f94f41 commit b8c0232
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/dkms_nvidia.conf
Original file line number Diff line number Diff line change
@@ -13,5 +13,5 @@ BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/char/drm"
AUTOINSTALL="yes"
PATCH[0]="disable_fstack-clash-protection_fcf-protection.patch"
#PATCH[1]="do-not-call-pci_save_state.patch"
PATCH[1]="buildfix_kernel_6.0.patch"
#PATCH_MATCH[0]="^4.[6-7]"
16 changes: 16 additions & 0 deletions debian/dkms_nvidia/patches/buildfix_kernel_6.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/nvidia-drm/nvidia-drm-helper.c b/nvidia-drm/nvidia-drm-helper.c
index 3831180..e615aef 100644
--- a/nvidia-drm/nvidia-drm-helper.c
+++ b/nvidia-drm/nvidia-drm-helper.c
@@ -41,6 +41,11 @@
#include <drm/drm_atomic_uapi.h>
#endif

+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)
+#include <drm/drm_framebuffer.h>
+#endif
+
static void __nv_drm_framebuffer_put(struct drm_framebuffer *fb)
{
#if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT)
2 changes: 1 addition & 1 deletion debian/templates/dkms_nvidia.conf.in
Original file line number Diff line number Diff line change
@@ -13,5 +13,5 @@ BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/char/drm"
AUTOINSTALL="yes"
PATCH[0]="disable_fstack-clash-protection_fcf-protection.patch"
#PATCH[1]="do-not-call-pci_save_state.patch"
PATCH[1]="buildfix_kernel_6.0.patch"
#PATCH_MATCH[0]="^4.[6-7]"

0 comments on commit b8c0232

Please sign in to comment.