linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tigran Aivazian <tigran@veritas.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [patch] hotplug fixes Re: test11-pre6
Date: Fri, 17 Nov 2000 11:51:03 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0011171148310.8176-100000@saturn.homenet> (raw)
In-Reply-To: <Pine.LNX.4.10.10011161832460.803-100000@penguin.transmeta.com>

On Thu, 16 Nov 2000, Linus Torvalds wrote:

> 
> The log-file says it all..
> 
> 		Linus

No, I am sorry but it does not mention hotplug things in net/core/dev.c
and they are broken. The fix below.

Regards,
Tigran

diff -urN -X dontdiff linux/init/main.c work/init/main.c
--- linux/init/main.c	Fri Nov 17 10:29:34 2000
+++ work/init/main.c	Fri Nov 17 11:27:27 2000
@@ -712,11 +712,13 @@
 	init_pcmcia_ds();		/* Do this last */
 #endif
 
+#ifdef CONFIG_HOTPLUG
 	/* do this after other 'do this last' stuff, because we want
 	 * to minimize spurious executions of /sbin/hotplug
 	 * during boot-up
 	 */
 	net_notifier_init();
+#endif
 
 	/* Mount the root filesystem.. */
 	mount_root();
diff -urN -X dontdiff linux/net/core/dev.c work/net/core/dev.c
--- linux/net/core/dev.c	Fri Nov 17 10:29:34 2000
+++ work/net/core/dev.c	Fri Nov 17 11:27:15 2000
@@ -2704,6 +2704,7 @@
 	return 0;
 }
 
+#ifdef CONFIG_HOTPLUG
 
 /* Notify userspace when a netdevice event occurs,
  * by running '/sbin/hotplug net' with certain
@@ -2765,3 +2766,4 @@
 		printk (KERN_WARNING "unable to register netdev notifier\n"
 			KERN_WARNING "/sbin/hotplug will not be run.\n");
 }
+#endif


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      parent reply	other threads:[~2000-11-17 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-17  2:33 test11-pre6 Linus Torvalds
2000-11-17  3:45 ` test11-pre6 Jeff V. Merkey
2000-11-17  7:30   ` test11-pre6 Erik Andersen
2000-11-17  8:30     ` test11-pre6 David Lang
2000-11-17  8:53     ` test11-pre6 Jeff V. Merkey
2000-11-17 16:11     ` test11-pre6 Mike A. Harris
2000-11-17  7:33 ` test11-pre6 Chris Wedgwood
2000-11-17 11:57   ` test11-pre6 Jeff Garzik
2000-11-17  9:06 ` [PATCH-2.4.0-10] vgacon.c jani
2000-11-17 10:37 ` test11-pre6 David Woodhouse
2000-11-17 11:51 ` Tigran Aivazian [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.21.0011171148310.8176-100000@saturn.homenet \
    --to=tigran@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).