From 235172f53ead3667e1ea9e9a665caab732584a48 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Sun, 22 Feb 2015 13:00:51 +0200 Subject: Added x11-drivers/* --- .../nvidia-drivers/files/nvidia-drivers-3.19.patch | 20 ++++++++++++++++++++ .../nvidia-drivers/nvidia-drivers-304.125.ebuild | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 x11-drivers/nvidia-drivers/files/nvidia-drivers-3.19.patch (limited to 'x11-drivers/nvidia-drivers') diff --git a/x11-drivers/nvidia-drivers/files/nvidia-drivers-3.19.patch b/x11-drivers/nvidia-drivers/files/nvidia-drivers-3.19.patch new file mode 100644 index 00000000..3cdaa598 --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/nvidia-drivers-3.19.patch @@ -0,0 +1,20 @@ +--- a/kernel/nv.c ++++ b/kernel/nv.c +@@ -2026,7 +2026,7 @@ long nv_kern_unlocked_ioctl( + unsigned long i_arg + ) + { +- return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg); ++ return nv_kern_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg); + } + + long nv_kern_compat_ioctl( +@@ -2035,7 +2035,7 @@ long nv_kern_compat_ioctl( + unsigned long i_arg + ) + { +- return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg); ++ return nv_kern_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg); + } + + /* diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-304.125.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-304.125.ebuild index 3a119d3f..4a60d0f0 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-304.125.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-304.125.ebuild @@ -128,6 +128,10 @@ src_prepare() { /usr/$(get_libdir)/libnvidia-opencl.so EOF + if kernel_is ge 3 19 0; then + epatch "${FILESDIR}/${PN}-3.19.patch" + fi + # Allow user patches so they can support RC kernels and whatever else epatch_user } -- cgit v1.2.3