summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2008-01-30 14:35:36 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2008-01-30 14:35:36 +0000
commit5c6169a394baa8b739949eae1018cad499ed3cb4 (patch)
treedfa1dae2de71e303201e7324b0638dd5543e6201 /net-dialup/fxusb_CZ/files
parentfixing string.h problem (see bug #202385) + patches for kernel 2.6.24 (thanks... (diff)
downloadgentoo-2-5c6169a394baa8b739949eae1018cad499ed3cb4.tar.gz
gentoo-2-5c6169a394baa8b739949eae1018cad499ed3cb4.tar.bz2
gentoo-2-5c6169a394baa8b739949eae1018cad499ed3cb4.zip
fixing string.h problem (see bug #202385) + patches for kernel 2.6.24 (thanks to Arnd Feldmueller <arnd.feldmueller@web.de>).
(Portage version: 2.1.4)
Diffstat (limited to 'net-dialup/fxusb_CZ/files')
-rw-r--r--net-dialup/fxusb_CZ/files/digest-fxusb_CZ-0.1-r13
-rw-r--r--net-dialup/fxusb_CZ/files/fxusb_CZ_kernel-2.6.24.diff46
2 files changed, 49 insertions, 0 deletions
diff --git a/net-dialup/fxusb_CZ/files/digest-fxusb_CZ-0.1-r1 b/net-dialup/fxusb_CZ/files/digest-fxusb_CZ-0.1-r1
new file mode 100644
index 000000000000..4357ed7234ad
--- /dev/null
+++ b/net-dialup/fxusb_CZ/files/digest-fxusb_CZ-0.1-r1
@@ -0,0 +1,3 @@
+MD5 8260b5c5c4c632d524c0dd059f60a4db fxusb_CZ-0.1-0.src.rpm 869683
+RMD160 065bf490eebe169c0ed9098152471b19dc021876 fxusb_CZ-0.1-0.src.rpm 869683
+SHA256 10414b666c3f7b59a3ecb405d10428f3be3ca698dbaccfe31711c3a744983fb3 fxusb_CZ-0.1-0.src.rpm 869683
diff --git a/net-dialup/fxusb_CZ/files/fxusb_CZ_kernel-2.6.24.diff b/net-dialup/fxusb_CZ/files/fxusb_CZ_kernel-2.6.24.diff
new file mode 100644
index 000000000000..ad5e5156306e
--- /dev/null
+++ b/net-dialup/fxusb_CZ/files/fxusb_CZ_kernel-2.6.24.diff
@@ -0,0 +1,46 @@
+--- src/driver.c.orig 2008-01-30 15:27:54.000000000 +0100
++++ src/driver.c 2008-01-30 15:27:54.000000000 +0100
+@@ -92,8 +92,12 @@
+ static DECLARE_WAIT_QUEUE_HEAD(capi_wait);
+ static DECLARE_WAIT_QUEUE_HEAD(tx_wait);
+ static DECLARE_WAIT_QUEUE_HEAD(rx_wait);
++static DECLARE_COMPLETION(hotplug); /* New DECLARE, <arnd.feldmueller@web.de> */
++static DECLARE_COMPLETION(notify); /* New DECLARE, <arnd.feldmueller@web.de> */
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
+ static DECLARE_MUTEX_LOCKED(hotplug);
+ static DECLARE_MUTEX_LOCKED(notify);
++#endif
+
+ #define SCHED_WAKEUP_CAPI { atomic_set (&thread_capi_flag, 1); wake_up_interruptible (&capi_wait); }
+ #define SCHED_WAKEUP { atomic_set (&got_kicked, 1); wake_up_interruptible (&wait); }
+@@ -787,7 +791,7 @@
+ close_func = func;
+ close_data = data;
+
+- INIT_WORK (&closing_work, closing_worker);
++ INIT_WORK (&closing_work, (work_func_t)closing_worker);
+ schedule_work (&closing_work);
+ LOG("Worker scheduled.\n");
+ } /* start_closing_worker */
+@@ -1211,7 +1215,10 @@
+ }
+ }
+ LOG("Scheduler thread stopped.\n");
++ complete(&hotplug); /* Complete Thread Sync here <arnd.feldmueller@web.de> */
++ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
+ up (&hotplug);
++ #endif
+ return 0;
+ } /* scheduler */
+
+@@ -1246,7 +1253,10 @@
+ SCHED_WAKEUP;
+ }
+ LOG("Scheduler thread signalled, waiting...\n");
++ wait_for_completion(&hotplug); /* Wait for complete Thread Sync <arnd.feldmueller@web.de> */
++ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24))
+ down (&hotplug);
++ #endif
+ LOG("Scheduler thread[%d] terminated.\n", thread_pid);
+ }
+ thread_pid = -1;