* [PATCH] Kernel doesn't compile with CONFIG_HOTPLUG && !CONFIG_NET
@ 2006-04-18 22:44 Nigel Cunningham
2006-04-18 23:16 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Nigel Cunningham @ 2006-04-18 22:44 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
Hi.
2.6.17-rc1 doesn't compile if networking support is disabled but hotplug is
enabled. This patch addresses that issue.
Please consider applying.
Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
sysctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -ruNp 9904.patch-old/kernel/sysctl.c 9904.patch-new/kernel/sysctl.c
--- 9904.patch-old/kernel/sysctl.c 2006-04-19 08:40:47.000000000 +1000
+++ 9904.patch-new/kernel/sysctl.c 2006-04-17 21:06:23.000000000 +1000
@@ -401,7 +401,7 @@ static ctl_table kern_table[] = {
.strategy = &sysctl_string,
},
#endif
-#ifdef CONFIG_HOTPLUG
+#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
{
.ctl_name = KERN_HOTPLUG,
.procname = "hotplug",
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Kernel doesn't compile with CONFIG_HOTPLUG && !CONFIG_NET
2006-04-18 22:44 [PATCH] Kernel doesn't compile with CONFIG_HOTPLUG && !CONFIG_NET Nigel Cunningham
@ 2006-04-18 23:16 ` Andrew Morton
2006-04-18 23:17 ` Nigel Cunningham
2006-04-19 0:25 ` Greg KH
0 siblings, 2 replies; 4+ messages in thread
From: Andrew Morton @ 2006-04-18 23:16 UTC (permalink / raw)
To: Nigel Cunningham; +Cc: gregkh, linux-kernel
Nigel Cunningham <ncunningham@cyclades.com> wrote:
>
> --- 9904.patch-old/kernel/sysctl.c 2006-04-19 08:40:47.000000000 +1000
> +++ 9904.patch-new/kernel/sysctl.c 2006-04-17 21:06:23.000000000 +1000
> @@ -401,7 +401,7 @@ static ctl_table kern_table[] = {
> .strategy = &sysctl_string,
> },
> #endif
> -#ifdef CONFIG_HOTPLUG
> +#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
I've had this in -mm for a couple of weeks now but rmk points out that it's
rather silly. Because if you have CONFIG_HOTPLUG=y, CONFIG_NET=n then the
kernel cannot deliver hotplug events to userspace..
So perhaps CONFIG_HOTPLUG should depend upon CONFIG_NET or, better,
CONFIG_NETLINK.
Dunno. I left this in Greg's lap, but he's hiding.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Kernel doesn't compile with CONFIG_HOTPLUG && !CONFIG_NET
2006-04-18 23:16 ` Andrew Morton
@ 2006-04-18 23:17 ` Nigel Cunningham
2006-04-19 0:25 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: Nigel Cunningham @ 2006-04-18 23:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: gregkh, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 895 bytes --]
Hi.
On Wednesday 19 April 2006 09:16, Andrew Morton wrote:
> Nigel Cunningham <ncunningham@cyclades.com> wrote:
> > --- 9904.patch-old/kernel/sysctl.c 2006-04-19 08:40:47.000000000 +1000
> > +++ 9904.patch-new/kernel/sysctl.c 2006-04-17 21:06:23.000000000 +1000
> > @@ -401,7 +401,7 @@ static ctl_table kern_table[] = {
> > .strategy = &sysctl_string,
> > },
> > #endif
> > -#ifdef CONFIG_HOTPLUG
> > +#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
>
> I've had this in -mm for a couple of weeks now but rmk points out that it's
> rather silly. Because if you have CONFIG_HOTPLUG=y, CONFIG_NET=n then the
> kernel cannot deliver hotplug events to userspace..
>
> So perhaps CONFIG_HOTPLUG should depend upon CONFIG_NET or, better,
> CONFIG_NETLINK.
>
> Dunno. I left this in Greg's lap, but he's hiding.
:) Ah okay. I guess he's been busy with those mini summits.
Regards,
Nigel
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Kernel doesn't compile with CONFIG_HOTPLUG && !CONFIG_NET
2006-04-18 23:16 ` Andrew Morton
2006-04-18 23:17 ` Nigel Cunningham
@ 2006-04-19 0:25 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2006-04-19 0:25 UTC (permalink / raw)
To: Andrew Morton; +Cc: Nigel Cunningham, linux-kernel
On Tue, Apr 18, 2006 at 04:16:14PM -0700, Andrew Morton wrote:
> Nigel Cunningham <ncunningham@cyclades.com> wrote:
> >
> > --- 9904.patch-old/kernel/sysctl.c 2006-04-19 08:40:47.000000000 +1000
> > +++ 9904.patch-new/kernel/sysctl.c 2006-04-17 21:06:23.000000000 +1000
> > @@ -401,7 +401,7 @@ static ctl_table kern_table[] = {
> > .strategy = &sysctl_string,
> > },
> > #endif
> > -#ifdef CONFIG_HOTPLUG
> > +#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
>
> I've had this in -mm for a couple of weeks now but rmk points out that it's
> rather silly. Because if you have CONFIG_HOTPLUG=y, CONFIG_NET=n then the
> kernel cannot deliver hotplug events to userspace..
>
> So perhaps CONFIG_HOTPLUG should depend upon CONFIG_NET or, better,
> CONFIG_NETLINK.
I have a patch in the queue from Kay that should fix this. Hopefully...
Will get to it tomorrow.
> Dunno. I left this in Greg's lap, but he's hiding.
Hiding? A -stable release a day sure isn't hiding :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-19 0:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-18 22:44 [PATCH] Kernel doesn't compile with CONFIG_HOTPLUG && !CONFIG_NET Nigel Cunningham
2006-04-18 23:16 ` Andrew Morton
2006-04-18 23:17 ` Nigel Cunningham
2006-04-19 0:25 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox