summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {