Merge lp:~vanvugt/ubuntu/lucid/nvidia-graphics-drivers-96/fix-627022 into lp:ubuntu/lucid/nvidia-graphics-drivers-96

Proposed by Daniel van Vugt
Status: Merged
Merge reported by: Stéphane Graber
Merged at revision: not available
Proposed branch: lp:~vanvugt/ubuntu/lucid/nvidia-graphics-drivers-96/fix-627022
Merge into: lp:ubuntu/lucid/nvidia-graphics-drivers-96
Diff against target: 66 lines (+32/-0)
4 files modified
debian/changelog (+6/-0)
debian/dkms.conf (+2/-0)
debian/dkms.conf.in (+2/-0)
debian/dkms/patches/nvidia-96-missing-field-ioctl-2.6.36.patch (+22/-0)
To merge this branch: bzr merge lp:~vanvugt/ubuntu/lucid/nvidia-graphics-drivers-96/fix-627022
Reviewer Review Type Date Requested Status
Ubuntu Development Team Pending
Review via email: mp+70983@code.launchpad.net

Description of the change

Fix nv.c build failure with kernels >= 2.6.36 (LP: #627022)

NVIDIA have already implemented a similar fix upstream, apparently in driver version 260.19.06 or so onward. The offending kernel change was commit b19dd42faf413b4705d4adb38521e82d73fa4249 in 2.6.36 stable.

This is the nvidia-96 version of the fix. The proposal for nvidia current is:
https://code.launchpad.net/~vanvugt/ubuntu/lucid/nvidia-graphics-drivers/fix-627022/+merge/66255

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-04-20 08:19:07 +0000
3+++ debian/changelog 2011-08-10 03:26:05 +0000
4@@ -1,3 +1,9 @@
5+nvidia-graphics-drivers-96 (96.43.17-0ubuntu1.1) lucid-proposed; urgency=low
6+
7+ * Fix nv.c build failure with kernels >= 2.6.36 (LP: #627022)
8+
9+ -- Daniel van Vugt <vanvugt@gmail.com> Wed, 29 Jun 2011 17:08:13 +0800
10+
11 nvidia-graphics-drivers-96 (96.43.17-0ubuntu1) lucid; urgency=low
12
13 * New upstream release:
14
15=== modified file 'debian/dkms.conf'
16--- debian/dkms.conf 2010-04-20 08:19:07 +0000
17+++ debian/dkms.conf 2011-08-10 03:26:05 +0000
18@@ -6,6 +6,8 @@
19 MAKE[0]="make module KERNDIR=/lib/modules/$kernelver IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=$kernel_source_dir"
20 DEST_MODULE_LOCATION[0]="/kernel/drivers/char/drm"
21 AUTOINSTALL="yes"
22+PATCH[0]="nvidia-96-missing-field-ioctl-2.6.36.patch"
23+PATCH_MATCH[0]="^(2.6.3[6-9]|3.)"
24 #PATCH[0]="fall_back_on_mtrr_if_no_pat.patch"
25 #PATCH_MATCH[0]="2.6.31"
26 #PATCH[1]="nvidia-rt-compat-legacy.patch"
27
28=== modified file 'debian/dkms.conf.in'
29--- debian/dkms.conf.in 2010-04-11 17:03:16 +0000
30+++ debian/dkms.conf.in 2011-08-10 03:26:05 +0000
31@@ -6,6 +6,8 @@
32 MAKE[0]="make module KERNDIR=/lib/modules/$kernelver IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=$kernel_source_dir"
33 DEST_MODULE_LOCATION[0]="/kernel/drivers/char/drm"
34 AUTOINSTALL="yes"
35+PATCH[0]="nvidia-96-missing-field-ioctl-2.6.36.patch"
36+PATCH_MATCH[0]="^(2.6.3[6-9]|3.)"
37 #PATCH[0]="fall_back_on_mtrr_if_no_pat.patch"
38 #PATCH_MATCH[0]="2.6.31"
39 #PATCH[1]="nvidia-rt-compat-legacy.patch"
40
41=== added file 'debian/dkms/patches/nvidia-96-missing-field-ioctl-2.6.36.patch'
42--- debian/dkms/patches/nvidia-96-missing-field-ioctl-2.6.36.patch 1970-01-01 00:00:00 +0000
43+++ debian/dkms/patches/nvidia-96-missing-field-ioctl-2.6.36.patch 2011-08-10 03:26:05 +0000
44@@ -0,0 +1,22 @@
45+Description: Fix nv.c build failure with kernels >= 2.6.36
46+ This is the nvidia-96 compatible version of the fix.
47+ NVIDIA have already implemented a similar fix upstream, apparently in
48+ driver version 260.19.06 or so onward. The offending kernel change was commit
49+ b19dd42faf413b4705d4adb38521e82d73fa4249 in 2.6.36 stable.
50+Author: Daniel van Vugt <vanvugt@gmail.com>
51+Bug-Ubuntu: https://launchpad.net/bugs/627022
52+Origin: other
53+Forwarded: not-needed
54+
55+--- a/nv.c
56++++ b/nv.c
57+@@ -241,7 +241,9 @@
58+ static struct file_operations nv_fops = {
59+ .owner = THIS_MODULE,
60+ .poll = nv_kern_poll,
61++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36))
62+ .ioctl = nv_kern_ioctl,
63++#endif
64+ #if defined(HAVE_UNLOCKED_IOCTL)
65+ .unlocked_ioctl = nv_kern_unlocked_ioctl,
66+ #endif

Subscribers

People subscribed via source and target branches

to all changes: