summaryrefslogtreecommitdiff
path: root/sys-kernel/nvidia-drivers-dkms
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-09 22:58:36 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-09 22:58:36 +0100
commit28b9aea2f16a8264e515ddb74f3dd7c5ded3bc8c (patch)
tree4bcfab9a827aeb74100bcbd7d2a3fd81eef14d3b /sys-kernel/nvidia-drivers-dkms
parentf479187702da8979792b94ea089ba37a4b4e8120 (diff)
sys-kernel/nvidia-drivers-dkms : add kernel 4.16 hack
Diffstat (limited to 'sys-kernel/nvidia-drivers-dkms')
-rw-r--r--sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-390.48-kernel-4.16-compat.patch18
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.48.ebuild1
2 files changed, 18 insertions, 1 deletions
diff --git a/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-390.48-kernel-4.16-compat.patch b/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-390.48-kernel-4.16-compat.patch
new file mode 100644
index 00000000..59bca90d
--- /dev/null
+++ b/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-390.48-kernel-4.16-compat.patch
@@ -0,0 +1,18 @@
+--- a/kernel/common/inc/nv-linux.h~ 2018-01-25 06:09:41.000000000 +0100
++++ b/kernel/common/inc/nv-linux.h 2018-03-05 13:58:17.746725638 +0100
+@@ -1209,6 +1209,7 @@ static inline NvU32 nv_alloc_init_flags(
+ static inline NvBool nv_dma_maps_swiotlb(struct pci_dev *dev)
+ {
+ NvBool swiotlb_in_use = NV_FALSE;
++#if 0
+ #if defined(CONFIG_SWIOTLB)
+ #if defined(NV_DMA_OPS_PRESENT) || defined(NV_GET_DMA_OPS_PRESENT)
+ /*
+@@ -1251,7 +1252,7 @@ static inline NvBool nv_dma_maps_swiotlb
+ swiotlb_in_use = (swiotlb == 1);
+ #endif
+ #endif
+-
++#endif
+ return swiotlb_in_use;
+ }
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.48.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.48.ebuild
index c4d21e8d..ef3793ef 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.48.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-390.48.ebuild
@@ -29,7 +29,6 @@ src_unpack() {
src_prepare() {
epatch ""${FILESDIR}"/"${P}"-conf.patch"
- epatch ""${FILESDIR}"/"${P}"-kernel-4.16-compat.patch"
}
src_install() {