* 2.4.0-test11-pre6 fails compile (dev.c)
@ 2000-11-17 2:56 Pete Clements
2000-11-17 3:08 ` Neil Brown
0 siblings, 1 reply; 3+ messages in thread
From: Pete Clements @ 2000-11-17 2:56 UTC (permalink / raw)
To: linux-kernel
FYI:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.0-test11/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o dev.o dev.c
dev.c: In function `run_sbin_hotplug':
dev.c:2736: `hotplug_path' undeclared (first use in this function)
dev.c:2736: (Each undeclared identifier is reported only once
dev.c:2736: for each function it appears in.)
make[3]: *** [dev.o] Error 1
make[3]: Leaving directory `/sda3/usr/src/linux-2.4.0-test11/net/core'
make[2]: *** [first_rule] Error 2
--
Pete Clements
clem@clem.digital.net
-
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.4.0-test11-pre6 fails compile (dev.c)
2000-11-17 2:56 2.4.0-test11-pre6 fails compile (dev.c) Pete Clements
@ 2000-11-17 3:08 ` Neil Brown
2000-11-17 5:25 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Neil Brown @ 2000-11-17 3:08 UTC (permalink / raw)
To: Pete Clements; +Cc: linux-kernel, Linus Torvalds
On Thursday November 16, clem@clem.digital.net wrote:
> FYI:
>
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.0-test11/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o dev.o dev.c
> dev.c: In function `run_sbin_hotplug':
> dev.c:2736: `hotplug_path' undeclared (first use in this function)
> dev.c:2736: (Each undeclared identifier is reported only once
> dev.c:2736: for each function it appears in.)
> make[3]: *** [dev.o] Error 1
> make[3]: Leaving directory `/sda3/usr/src/linux-2.4.0-test11/net/core'
> make[2]: *** [first_rule] Error 2
>
> --
> Pete Clements
> clem@clem.digital.net
> -
> 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/
The following works for me.... and even looks right.
NeilBrown
--- ./init/main.c 2000/11/17 03:03:23 1.1
+++ ./init/main.c 2000/11/17 03:03:33
@@ -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();
--- ./net/core/dev.c 2000/11/17 03:00:42 1.1
+++ ./net/core/dev.c 2000/11/17 03:03:53
@@ -2704,7 +2704,7 @@
return 0;
}
-
+#ifdef CONFIG_HOTPLUG
/* Notify userspace when a netdevice event occurs,
* by running '/sbin/hotplug net' with certain
* environment variables set.
@@ -2765,3 +2765,5 @@
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.4.0-test11-pre6 fails compile (dev.c)
2000-11-17 3:08 ` Neil Brown
@ 2000-11-17 5:25 ` Jeff Garzik
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2000-11-17 5:25 UTC (permalink / raw)
To: Neil Brown; +Cc: Pete Clements, linux-kernel, Linus Torvalds
Neil Brown wrote:
>
> On Thursday November 16, clem@clem.digital.net wrote:
> > FYI:
> >
> > gcc -D__KERNEL__ -I/usr/src/linux-2.4.0-test11/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o dev.o dev.c
> > dev.c: In function `run_sbin_hotplug':
> > dev.c:2736: `hotplug_path' undeclared (first use in this function)
> > dev.c:2736: (Each undeclared identifier is reported only once
> > dev.c:2736: for each function it appears in.)
> > make[3]: *** [dev.o] Error 1
> > make[3]: Leaving directory `/sda3/usr/src/linux-2.4.0-test11/net/core'
> > make[2]: *** [first_rule] Error 2
> The following works for me.... and even looks right.
Thanks for taking care of one of my "fix after applying" items :)
Looks ok to me, though I prefer that #endif include a comment following
it that names the cpp symbol it encloses. Applied...
Jeff
--
Jeff Garzik |
Building 1024 | The chief enemy of creativity is "good" sense
MandrakeSoft | -- Picasso
-
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-11-17 5:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-17 2:56 2.4.0-test11-pre6 fails compile (dev.c) Pete Clements
2000-11-17 3:08 ` Neil Brown
2000-11-17 5:25 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox