diff options
Diffstat (limited to 'sys-kernel/nvidia-drivers-dkms')
-rw-r--r-- | sys-kernel/nvidia-drivers-dkms/files/515-kernel6.patch | 28 | ||||
-rw-r--r-- | sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/sys-kernel/nvidia-drivers-dkms/files/515-kernel6.patch b/sys-kernel/nvidia-drivers-dkms/files/515-kernel6.patch new file mode 100644 index 00000000..71470fd0 --- /dev/null +++ b/sys-kernel/nvidia-drivers-dkms/files/515-kernel6.patch @@ -0,0 +1,28 @@ +diff -Nur a/kernel/nvidia-drm/nvidia-drm-helper.c b/kernel/nvidia-drm/nvidia-drm-helper.c +--- a/kernel/nvidia-drm/nvidia-drm-helper.c 2022-07-20 14:42:53.000000000 +0100 ++++ b/kernel/nvidia-drm/nvidia-drm-helper.c 2022-10-16 19:00:47.687049510 +0100 +@@ -41,6 +41,10 @@ + #include <drm/drm_atomic_uapi.h> + #endif + ++#if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT) ++#include <drm/drm_framebuffer.h> ++#endif ++ + static void __nv_drm_framebuffer_put(struct drm_framebuffer *fb) + { + #if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT) +diff -Nur a/kernel-open/nvidia-drm/nvidia-drm-helper.c b/kernel-open/nvidia-drm/nvidia-drm-helper.c +--- a/kernel-open/nvidia-drm/nvidia-drm-helper.c 2022-07-20 14:43:40.000000000 +0100 ++++ b/kernel-open/nvidia-drm/nvidia-drm-helper.c 2022-10-16 19:00:47.687049510 +0100 +@@ -41,6 +41,10 @@ + #include <drm/drm_atomic_uapi.h> + #endif + ++#if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT) ++#include <drm/drm_framebuffer.h> ++#endif ++ + static void __nv_drm_framebuffer_put(struct drm_framebuffer *fb) + { + #if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT) diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild index cb40e068..4268b1bf 100644 --- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild +++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild @@ -24,6 +24,7 @@ RDEPEND="${DEPEND} !!sys-kernel/nvidia-drivers-dkms:470" PATCHES=( + "${FILESDIR}"/515-kernel6.patch "${FILESDIR}"/dkms515.patch ) |