From: Stephen Rothwell <sfr@canb.auug.org.au>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: linux-next: sysctl tree build failure
Date: Thu, 12 Nov 2009 18:48:05 +1100 [thread overview]
Message-ID: <20091112184805.1c0720cb.sfr@canb.auug.org.au> (raw)
Hi Eric,
Today's linux-next build (powerpc allnoconfig) failed like this:
kernel/built-in.o: In function `get_sysctl':
sysctl_binary.c:(.text+0x100d4): undefined reference to `dev_get_by_index'
Caused by commit 26a7034b40ba80f82f64fa251a2cbf49f9971c6a ("sysctl:
Reduce sys_sysctl to a compatibility wrapper around /proc/sys").
CONFIG_NET is not set for this build.
I have used this patch for today:
(It does produce this warning, though:
kernel/sysctl_binary.c:1253: warning: unused variable 'net'
so needs more work.)
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 12 Nov 2009 18:43:35 +1100
Subject: [PATCH] sysctl: fix build dependency on CONFIG_NET
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
kernel/sysctl_binary.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c
index 471438b..4f58ea7 100644
--- a/kernel/sysctl_binary.c
+++ b/kernel/sysctl_binary.c
@@ -1270,6 +1270,7 @@ repeat:
if (ctl_name == table->ctl_name)
procname = table->procname;
+#ifdef CONFIG_NET
/*
* For a wild card entry map from ifindex to network
* device name.
@@ -1279,6 +1280,7 @@ repeat:
if (dev)
procname = dev->name;
}
+#endif
if (procname) {
int len;
--
1.6.5.2
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
next reply other threads:[~2009-11-12 7:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 7:48 Stephen Rothwell [this message]
2009-11-12 8:08 ` Eric W. Biederman
2009-11-12 8:14 ` Stephen Rothwell
2009-11-12 9:11 ` Eric W. Biederman
2009-11-12 10:47 ` Stephen Rothwell
2009-11-12 12:10 ` Eric W. Biederman
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=20091112184805.1c0720cb.sfr@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@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®