From: Ian Abbott <abbotti@mev.co.uk>
To: <linux-kernel@vger.kernel.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>, Ian Abbott <abbotti@mev.co.uk>
Subject: [PATCH] Support kernel/hotplug sysctl variable when !CONFIG_NET
Date: Mon, 7 Jun 2010 12:57:12 +0100 [thread overview]
Message-ID: <1275911832-11667-1-git-send-email-abbotti@mev.co.uk> (raw)
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
next reply other threads:[~2010-06-07 11:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-07 11:57 Ian Abbott [this message]
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
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=1275911832-11667-1-git-send-email-abbotti@mev.co.uk \
--to=abbotti@mev.co.uk \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®