All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Re: 2.6.8.1-kjt1
@ 2004-08-15 17:04 Domen Puncer
  2004-08-15 18:21 ` maximilian attems
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Domen Puncer @ 2004-08-15 17:04 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 971 bytes --]

On 15/08/04 15:55 +0200, maximilian attems wrote:
> msleep-drivers_net_slip.patch

  CC [M]  drivers/net/slip.o
  drivers/net/slip.c: In function `slip_exit':
  drivers/net/slip.c:1394: warning: implicit declaration of function `msleep'


Added include, to fix this:


Original from Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>

--- c/drivers/net/slip.c	Sat Aug 14 10:56:36 2004
+++ a/drivers/net/slip.c	Sun Aug 15 18:58:28 2004
@@ -74,6 +74,7 @@
 #include <linux/if_arp.h>
 #include <linux/if_slip.h>
 #include <linux/init.h>
+#include <linux/delay.h>
 #include "slip.h"
 #ifdef CONFIG_INET
 #include <linux/ip.h>
@@ -1390,10 +1391,8 @@ static void __exit slip_exit(void)
 	/* First of all: check for active disciplines and hangup them.
 	 */
 	do {
-		if (busy) {
-			set_current_state(TASK_INTERRUPTIBLE);
-			schedule_timeout(HZ / 10);
-		}
+		if (busy)
+			msleep(100);
 
 		busy = 0;
 		for (i = 0; i < slip_maxdev; i++) {

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-17 10:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 17:04 [Kernel-janitors] Re: 2.6.8.1-kjt1 Domen Puncer
2004-08-15 18:21 ` maximilian attems
2004-08-17  9:21 ` Domen Puncer
2004-08-17 10:45 ` maximilian attems

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.