r163 - unstable/rt2570/debian/patches

Ben Hutchings benh at alioth.debian.org
Wed Apr 8 01:40:30 UTC 2009


Author: benh
Date: 2009-04-08 01:40:30 +0000 (Wed, 08 Apr 2009)
New Revision: 163

Added:
   unstable/rt2570/debian/patches/009_use_kill_pid.diff
Modified:
   unstable/rt2570/debian/patches/series
Log:
kill_proc() was un-exported in 2.6.27 and later removed, so reimplement it using kill_pid()


Added: unstable/rt2570/debian/patches/009_use_kill_pid.diff
===================================================================
--- unstable/rt2570/debian/patches/009_use_kill_pid.diff	                        (rev 0)
+++ unstable/rt2570/debian/patches/009_use_kill_pid.diff	2009-04-08 01:40:30 UTC (rev 163)
@@ -0,0 +1,24 @@
+kill_proc() was un-exported in 2.6.27 and later removed, so reimplement it
+using kill_pid().
+
+--- rt2570-1.1.0+cvs20080623.orig/Module/rtusb_init.c
++++ rt2570-1.1.0+cvs20080623/Module/rtusb_init.c
+@@ -42,6 +42,18 @@
+ #define RT2570_USB_ALLOC_URB(iso)	usb_alloc_urb(iso);
+ #endif
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
++int kill_proc(pid_t pid, int sig, int priv)
++{
++	int ret;
++
++	rcu_read_lock();
++	ret = kill_pid(find_vpid(pid), sig, priv);
++	rcu_read_unlock();
++	return ret;
++}
++#endif
++
+ USHORT	 BBPRegTable[] = {
+ 	0x0302,  // R03
+ 	0x0419,  // R04

Modified: unstable/rt2570/debian/patches/series
===================================================================
--- unstable/rt2570/debian/patches/series	2009-04-08 01:38:10 UTC (rev 162)
+++ unstable/rt2570/debian/patches/series	2009-04-08 01:40:30 UTC (rev 163)
@@ -3,3 +3,4 @@
 006_fix_probe_148f_2573.diff
 007_fix_probe_request_overflow.diff
 008_use_netdev_functions.diff
+009_use_kill_pid.diff




More information about the Pkg-ralink-commits mailing list