diff options
Diffstat (limited to 'system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch')
-rw-r--r-- | system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch b/system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch index f3d780c026381..047d6784ec24c 100644 --- a/system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch +++ b/system/nvidia-open-kernel/nvidia-open-kernel-6.0.patch @@ -1,9 +1,15 @@ ---- a/kernel-open/nvidia-drm/nvidia-drm-helper.c 2022-07-20 16:42:53.000000000 +0300 -+++ b/kernel-open/nvidia-drm/nvidia-drm-helper.c 2022-08-20 16:32:34.836742336 +0300 -@@ -28,6 +28,7 @@ +diff -Nur kernel.orig/nvidia-drm/nvidia-drm-helper.h kernel/nvidia-drm/nvidia-drm-helper.h +--- a/kernel-open/nvidia-drm/nvidia-drm-helper.h 2022-07-20 09:42:52.000000000 -0400 ++++ b/kernel-open/nvidia-drm/nvidia-drm-helper.h 2022-09-07 20:36:36.725936810 -0400 +@@ -109,6 +109,11 @@ */ + #include <drm/drm_crtc.h> - #include "nvidia-drm-helper.h" ++#include <linux/version.h> ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)) +#include <drm/drm_framebuffer.h> - - #include "nvmisc.h" ++#endif ++ + #if defined(drm_for_each_plane) + #define nv_drm_for_each_plane(plane, dev) \ + drm_for_each_plane(plane, dev) |