Matthew, Here's a small patch that replaces kernel_thread() with the kthread API.
There should be no impact on the usu_end_notify completion or the init semaphore. thanks for comments, C. Replaced kernel_thread() with kthread_run() since kernel_thread() is deprecated in drivers/modules. also removed obsolete URL in the MAINTAINERS file. Signed-off-by: Cedric Le Goater <[EMAIL PROTECTED]> Cc: Matthew Dharm <[EMAIL PROTECTED]> Cc: linux-usb-users@lists.sourceforge.net Cc: [EMAIL PROTECTED] --- MAINTAINERS | 1 - drivers/usb/storage/libusual.c | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) Index: 2.6.18-rc4-mm3/drivers/usb/storage/libusual.c =================================================================== --- 2.6.18-rc4-mm3.orig/drivers/usb/storage/libusual.c +++ 2.6.18-rc4-mm3/drivers/usb/storage/libusual.c @@ -8,6 +8,7 @@ #include <linux/usb.h> #include <linux/usb_usual.h> #include <linux/vmalloc.h> +#include <linux/kthread.h> /* */ @@ -118,6 +119,7 @@ static int usu_probe(struct usb_interfac { unsigned long type; int rc; + struct task_struct* task; unsigned long flags; type = USB_US_TYPE(id->driver_info); @@ -132,7 +134,8 @@ static int usu_probe(struct usb_interfac stat[type].fls |= USU_MOD_FL_THREAD; spin_unlock_irqrestore(&usu_lock, flags); - rc = kernel_thread(usu_probe_thread, (void*)type, CLONE_VM); + task = kthread_run(usu_probe_thread, (void*)type, "libusual_%d", type); + rc = PTR_ERR(task); if (rc < 0) { printk(KERN_WARNING "libusual: " "Unable to start the thread for %s: %d\n", @@ -175,8 +178,6 @@ static int usu_probe_thread(void *arg) int rc; unsigned long flags; - daemonize("libusual_%d", type); /* "usb-storage" is kinda too long */ - /* A completion does not work here because it's counted. */ down(&usu_init_notify); up(&usu_init_notify); Index: 2.6.18-rc4-mm3/MAINTAINERS =================================================================== --- 2.6.18-rc4-mm3.orig/MAINTAINERS +++ 2.6.18-rc4-mm3/MAINTAINERS @@ -3065,7 +3065,6 @@ M: [EMAIL PROTECTED] L: linux-usb-users@lists.sourceforge.net L: [EMAIL PROTECTED] S: Maintained -W: http://www.one-eyed-alien.net/~mdharm/linux-usb/ USB OHCI DRIVER P: Roman Weissgaerber ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users