From: Matt Tolentino <metolent@snoqualmie.dp.intel.com>
To: ak@muc.de
Cc: linux-kernel@vger.kernel.org
Subject: [patch] minor syctl fix in vsyscall_init
Date: Wed, 13 Apr 2005 10:45:18 -0700 [thread overview]
Message-ID: <200504131745.j3DHjIVE017612@snoqualmie.dp.intel.com> (raw)
Andi,
If CONFIG_SYCTL is not enabled then the x86-64 tree
fails to build due to use of a symbol that is not
compiled in. Don't bother compiling in the sysctl
register call if not building with sysctl.
matt
Signed-off-by: Matt Tolentino <matthew.e.tolentino@intel.com>
diff -urNp linux-2.6.12-rc2/arch/x86_64/kernel/vsyscall.c linux-2.6.12-rc2-m/arch/x86_64/kernel/vsyscall.c
--- linux-2.6.12-rc2/arch/x86_64/kernel/vsyscall.c 2005-04-04 12:39:06.000000000 -0400
+++ linux-2.6.12-rc2-m/arch/x86_64/kernel/vsyscall.c 2005-04-13 09:28:47.000000000 -0400
@@ -218,7 +218,9 @@ static int __init vsyscall_init(void)
BUG_ON((VSYSCALL_ADDR(0) != __fix_to_virt(VSYSCALL_FIRST_PAGE)));
map_vsyscall();
sysctl_vsyscall = 1;
+#ifdef CONFIG_SYSCTL
register_sysctl_table(kernel_root_table2, 0);
+#endif
return 0;
}
next reply other threads:[~2005-04-13 16:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-13 17:45 Matt Tolentino [this message]
2005-04-13 18:29 ` Andi Kleen
2005-04-21 16:16 ` Benoit Boissinot
2005-04-22 11:31 ` Andi Kleen
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=200504131745.j3DHjIVE017612@snoqualmie.dp.intel.com \
--to=metolent@snoqualmie.dp.intel.com \
--cc=ak@muc.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®