public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Support kernel/hotplug sysctl variable when !CONFIG_NET
@ 2010-06-07 11:57 Ian Abbott
  2010-06-07 12:14 ` Ian Abbott
  2010-06-07 17:43 ` Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: Ian Abbott @ 2010-06-07 11:57 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Kroah-Hartman, Ian Abbott

From: Ian Abbott <abbotti@mev.co.uk>

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.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
---
 kernel/sysctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 702709b..70bc796 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -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,
-- 
1.7.1


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

end of thread, other threads:[~2010-06-07 18:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-07 11:57 [PATCH] Support kernel/hotplug sysctl variable when !CONFIG_NET Ian Abbott
2010-06-07 12:14 ` Ian Abbott
2010-06-07 17:43 ` Greg KH
2010-06-07 18:11   ` Randy Dunlap
2010-06-07 18:16     ` Greg KH
2010-06-07 18:26       ` Randy Dunlap
2010-06-07 18:49         ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox