1 |
angelos 13/05/19 16:54:31 |
2 |
|
3 |
Added: ndiswrapper-1.58-3.9.patch |
4 |
Log: |
5 |
Fix compilation on linux 3.9 (bug #467956) |
6 |
|
7 |
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key 84F20B43) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-wireless/ndiswrapper/files/ndiswrapper-1.58-3.9.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/ndiswrapper/files/ndiswrapper-1.58-3.9.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/ndiswrapper/files/ndiswrapper-1.58-3.9.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: ndiswrapper-1.58-3.9.patch |
16 |
=================================================================== |
17 |
diff --git a/driver/loader.c b/driver/loader.c |
18 |
index 406e6ba..6f2113f 100644 |
19 |
--- a/driver/loader.c |
20 |
+++ b/driver/loader.c |
21 |
@@ -575,7 +575,11 @@ static int load_user_space_driver(struct load_driver *load_driver) |
22 |
} else { |
23 |
printk(KERN_INFO "%s: driver %s (%s) loaded\n", |
24 |
DRIVER_NAME, wrap_driver->name, wrap_driver->version); |
25 |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) |
26 |
add_taint(TAINT_PROPRIETARY_MODULE); |
27 |
+#else |
28 |
+ add_taint(TAINT_PROPRIETARY_MODULE, LOCKDEP_STILL_OK); |
29 |
+#endif |
30 |
EXIT1(return 0); |
31 |
} |
32 |
} |
33 |
diff --git a/driver/wrapper.c b/driver/wrapper.c |
34 |
index f77c879..4fcbbe8 100644 |
35 |
--- a/driver/wrapper.c |
36 |
+++ b/driver/wrapper.c |
37 |
@@ -72,7 +72,11 @@ static void module_cleanup(void) |
38 |
static int __init wrapper_init(void) |
39 |
{ |
40 |
#ifdef TAINT_OOT_MODULE |
41 |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) |
42 |
add_taint(TAINT_OOT_MODULE); |
43 |
+#else |
44 |
+ add_taint(TAINT_OOT_MODULE, LOCKDEP_STILL_OK); |
45 |
+#endif |
46 |
#endif |
47 |
printk(KERN_INFO "%s version %s loaded (smp=%s, preempt=%s)\n", |
48 |
DRIVER_NAME, DRIVER_VERSION, |