Skip to contentSkip to conversation

Support kernel/hotplug sysctl variable when !CONFIG_NET

PATCH In review Ian Abbott 3 participants 7 messages Jun 7, 2010 Proc sysctl

lore
Share & tools
lore

Ian Abbott

author
#0 lore raw

PATCH 1/1 Support kernel/hotplug sysctl variable when !CONFIG_NET

From: Ian Abbott <[email protected]>

The kernel/hotplug sysctl variable (/proc/sys/kernel/hotplug file) was made conditional on CONFIG_NET by commit f743ca5e10f4145e0b3e6d11b9b46171e16af7ce (applied in 2.6.18) to fix problems with undefined references in 2.6.16 when CONFIG_HOTPLUG=y && !CONFIG_NET, but this restriction is no longer needed.

This patch makes the kernel/hotplug sysctl variable depend only on CONFIG_HOTPLUG.

---
 kernel/sysctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sysctl.c +1 -1
index 702709b..70bc796 100644
@@ -567,7 +567,7 @@ static struct ctl_table kern_table[] = {
 		.extra2		= &one,
 	},
 #endif
-#if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
+#ifdef CONFIG_HOTPLUG
 	{
 		.procname	= "hotplug",
 		.data		= &uevent_helper,
Signature · 1 line
1.7.1
author
#1 lore raw
Quoted 1 line · Ian Abbott

The kernel/hotplug sysctl variable (/proc/sys/kernel/hotplug file) was

      ^^^^^^^^^^^^^^

That should read "kernel.hotplug" of course!

Signature · 2 lines
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-
#2 lore raw
In reply to Ian Abbott
Quoted 7 lines · Ian Abbott

From: Ian Abbott <[email protected]>

The kernel/hotplug sysctl variable (/proc/sys/kernel/hotplug file) was made conditional on CONFIG_NET by commit f743ca5e10f4145e0b3e6d11b9b46171e16af7ce (applied in 2.6.18) to fix problems with undefined references in 2.6.16 when CONFIG_HOTPLUG=y && !CONFIG_NET, but this restriction is no longer needed.

Why is this restriction no longer needed? What changed?

Quoted 2 lines

This patch makes the kernel/hotplug sysctl variable depend only on CONFIG_HOTPLUG.

Why is this needed? Are you really running without a network and still want to change the default /sbin/hotplug binary?

confused,

greg k-h

#3 lore raw
Quoted 8 lines · On Mon, 7 Jun 2010 10:43:50 -0700 Greg KH wrote:
Quoted 7 lines · Ian Abbott

From: Ian Abbott <[email protected]>

The kernel/hotplug sysctl variable (/proc/sys/kernel/hotplug file) was made conditional on CONFIG_NET by commit f743ca5e10f4145e0b3e6d11b9b46171e16af7ce (applied in 2.6.18) to fix problems with undefined references in 2.6.16 when CONFIG_HOTPLUG=y && !CONFIG_NET, but this restriction is no longer needed.

Ack, builds for me on x86_64 when CONFIG_NET is not enabled.

Quoted 1 line

Why is this restriction no longer needed? What changed?

commit cd3772e6898c6386f21d2958346d6dd57d4204f5

Author: Ming Lei <[email protected]>
Date:   Sun Nov 16 18:22:09 2008 +0800

kernel/ksysfs.c:fix dependence on CONFIG_NET

Access to uevent_seqnum and uevent_helper does not need to depend on CONFIG_NET, so remove it.

Quoted 7 lines
Quoted 2 lines

This patch makes the kernel/hotplug sysctl variable depend only on CONFIG_HOTPLUG.

Why is this needed? Are you really running without a network and still want to change the default /sbin/hotplug binary?

confused,

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#4 lore raw
Quoted 20 lines · Randy Dunlap
Quoted 8 lines · On Mon, 7 Jun 2010 10:43:50 -0700 Greg KH wrote:
Quoted 7 lines · Ian Abbott

From: Ian Abbott <[email protected]>

The kernel/hotplug sysctl variable (/proc/sys/kernel/hotplug file) was made conditional on CONFIG_NET by commit f743ca5e10f4145e0b3e6d11b9b46171e16af7ce (applied in 2.6.18) to fix problems with undefined references in 2.6.16 when CONFIG_HOTPLUG=y && !CONFIG_NET, but this restriction is no longer needed.

Ack, builds for me on x86_64 when CONFIG_NET is not enabled.

Quoted 1 line

Why is this restriction no longer needed? What changed?

commit cd3772e6898c6386f21d2958346d6dd57d4204f5

Author: Ming Lei <[email protected]>
Date:   Sun Nov 16 18:22:09 2008 +0800
Quoted 8 lines

kernel/ksysfs.c:fix dependence on CONFIG_NET

Access to uevent_seqnum and uevent_helper does not need to depend on CONFIG_NET, so remove it.

So something back in 2008 changed which requires a change now?

I'm still confused, what use case calls for the original patch here being made? Who wants to modify this option with CONFIG_NET disabled on their machine?

thanks,

greg k-h

#5 lore raw
Quoted 23 lines · Greg KH
Quoted 22 lines · Randy Dunlap
Quoted 8 lines · On Mon, 7 Jun 2010 10:43:50 -0700 Greg KH wrote:
Quoted 7 lines · Ian Abbott

From: Ian Abbott <[email protected]>

The kernel/hotplug sysctl variable (/proc/sys/kernel/hotplug file) was made conditional on CONFIG_NET by commit f743ca5e10f4145e0b3e6d11b9b46171e16af7ce (applied in 2.6.18) to fix problems with undefined references in 2.6.16 when CONFIG_HOTPLUG=y && !CONFIG_NET, but this restriction is no longer needed.

Ack, builds for me on x86_64 when CONFIG_NET is not enabled.

Quoted 1 line

Why is this restriction no longer needed? What changed?

commit cd3772e6898c6386f21d2958346d6dd57d4204f5

Author: Ming Lei <[email protected]>
Date:   Sun Nov 16 18:22:09 2008 +0800

kernel/ksysfs.c:fix dependence on CONFIG_NET

Quoted 8 lines
Quoted 6 lines

Access to uevent_seqnum and uevent_helper does not need to depend on CONFIG_NET, so remove it.

So something back in 2008 changed which requires a change now?

"requires" is too strong of a word to use here. "allows" a change.

Quoted 3 lines

I'm still confused, what use case calls for the original patch here being made? Who wants to modify this option with CONFIG_NET disabled on their machine?

Are you trying to slow down on kernel patches for some reason?

Using CONFIG_NET is more restrictive than is needed here, so remove it.

Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#6 lore raw
Quoted 33 lines · Randy Dunlap
Quoted 23 lines · Greg KH
Quoted 22 lines · Randy Dunlap
Quoted 8 lines · On Mon, 7 Jun 2010 10:43:50 -0700 Greg KH wrote:
Quoted 7 lines · Ian Abbott

From: Ian Abbott <[email protected]>

The kernel/hotplug sysctl variable (/proc/sys/kernel/hotplug file) was made conditional on CONFIG_NET by commit f743ca5e10f4145e0b3e6d11b9b46171e16af7ce (applied in 2.6.18) to fix problems with undefined references in 2.6.16 when CONFIG_HOTPLUG=y && !CONFIG_NET, but this restriction is no longer needed.

Ack, builds for me on x86_64 when CONFIG_NET is not enabled.

Quoted 1 line

Why is this restriction no longer needed? What changed?

commit cd3772e6898c6386f21d2958346d6dd57d4204f5

Author: Ming Lei <[email protected]>
Date:   Sun Nov 16 18:22:09 2008 +0800

kernel/ksysfs.c:fix dependence on CONFIG_NET

Quoted 8 lines
Quoted 6 lines

Access to uevent_seqnum and uevent_helper does not need to depend on CONFIG_NET, so remove it.

So something back in 2008 changed which requires a change now?

Quoted 8 lines

"requires" is too strong of a word to use here. "allows" a change.

Quoted 3 lines

I'm still confused, what use case calls for the original patch here being made? Who wants to modify this option with CONFIG_NET disabled on their machine?

Are you trying to slow down on kernel patches for some reason?

Heh, no, I'm trying to see where to put this, in my "for .35" queue, or my "for .36" queue.

Quoted 1 line

Using CONFIG_NET is more restrictive than is needed here, so remove it.

Fair enough, I'll queue it up.

thanks,

greg k-h