From: carbonated beverage <ramune@net-ronin.org>
To: linux-kernel@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Subject: 2.4.24 link err for sparc64
Date: Sun, 15 Feb 2004 23:29:29 -0800 [thread overview]
Message-ID: <20040216072928.GA30923@net-ronin.org> (raw)
Hi all,
I ripped out sysctl support from a 2.4.24 kernel (stock
tarball from ftp.*.*.kernel.org) and the final link failed
with:
arch/sparc64/kernel/kernel.o(.text+0x19750): In function `sys32_sysctl':
: undefined reference to `do_sysctl'
I tossed an #ifndef CONFIG_SYSCTL...#else...#endif
guard around arch/sparc64/kernel/sys_sparc32.c file in the
sys32_sysctl() function so it returns -ENOTSUPP, but I'm not sure
that's the right fix. Should it be in do_sysctl() instead?
Can anyone comment on this?
--- arch/sparc64/kernel/sys_sparc32.c.old 2003-11-28 10:26:19.000000000 -0800
+++ arch/sparc64/kernel/sys_sparc32.c 2004-02-15 23:21:18.304035000 -0800
@@ -4454,6 +4454,9 @@
extern asmlinkage long sys32_sysctl(struct __sysctl_args32 *args)
{
+#ifndef CONFIG_SYSCTL
+ return -ENOTSUPP;
+#else
struct __sysctl_args32 tmp;
int error;
size_t oldlen, *oldlenp = NULL;
@@ -4488,4 +4491,5 @@
copy_to_user(args->__unused, tmp.__unused, sizeof(tmp.__unused));
}
return error;
+#endif
}
-- DN
Daniel
next reply other threads:[~2004-02-16 7:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-16 7:29 carbonated beverage [this message]
2004-02-17 6:29 ` David S. Miller
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=20040216072928.GA30923@net-ronin.org \
--to=ramune@net-ronin.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sparclinux@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®