- fix "No drm_driver.set_busid() implementation" BUG() on linux 3.18 auto/th/xorg-driver-video-nvidia-346.35-3
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 1 Feb 2015 15:57:51 +0000 (16:57 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 1 Feb 2015 15:57:51 +0000 (16:57 +0100)
- rel 3

nvidia-kernel-3.18.patch [new file with mode: 0644]
xorg-driver-video-nvidia.spec

diff --git a/nvidia-kernel-3.18.patch b/nvidia-kernel-3.18.patch
new file mode 100644 (file)
index 0000000..e0d49b4
--- /dev/null
@@ -0,0 +1,13 @@
+--- kernel/nv-drm.c~    2014-11-08 00:57:53.000000000 +0100
++++ kernel/nv-drm.c     2014-11-13 21:03:37.589650873 +0100
+@@ -128,6 +128,10 @@ static struct drm_driver nv_drm_driver =
+     .gem_prime_vmap = nv_gem_prime_vmap,
+     .gem_prime_vunmap = nv_gem_prime_vunmap,
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0)
++    .set_busid = drm_pci_set_busid,
++#endif
++
+     .name = "nvidia-drm",
+     .desc = "NVIDIA DRM driver",
+     .date = "20130102",
index 6fcb639cefc8a66194523396753a3f7a4ffbf0f3..1eff39de34f73b636933678bafd06fe51b98ca9c 100644 (file)
@@ -25,7 +25,7 @@ exit 1
 
 %define                no_install_post_check_so 1
 
-%define                rel     2
+%define                rel     3
 %define                pname   xorg-driver-video-nvidia
 Summary:       Linux Drivers for nVidia GeForce/Quadro Chips
 Summary(hu.UTF-8):     Linux meghajtók nVidia GeForce/Quadro chipekhez
@@ -47,6 +47,7 @@ Source4:      10-nvidia.conf
 Source5:       10-nvidia-modules.conf
 Patch0:                X11-driver-nvidia-GL.patch
 Patch1:                X11-driver-nvidia-desktop.patch
+Patch2:                nvidia-kernel-3.18.patch
 URL:           http://www.nvidia.com/object/unix.html
 BuildRequires: rpmbuild(macros) >= 1.701
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -248,6 +249,7 @@ rm -rf NVIDIA-Linux-x86*-%{version}*
 %endif
 %patch0 -p1
 %patch1 -p1
+%patch2 -p0
 echo 'EXTRA_CFLAGS += -Wno-pointer-arith -Wno-sign-compare -Wno-unused' >> kernel/Makefile.kbuild
 
 %build
This page took 0.049591 seconds and 4 git commands to generate.