All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] x86, xen, vdso: fix build error, add sysctl_vsyscall32
@ 2008-07-11 20:34 Ingo Molnar
  2008-07-11 20:41 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Ingo Molnar @ 2008-07-11 20:34 UTC (permalink / raw)
  To: linux-kernel, Jeremy Fitzhardinge

commit c187263834465c2beededb4d19e7f6bab18cc757
Author: Ingo Molnar <mingo@elte.hu>
Date:   Fri Jul 11 22:34:26 2008 +0200

    x86, xen, vdso: fix build error, add sysctl_vsyscall32
    
    Xen recently tried to make use of sysctl_vsyscall32, with this result:
    
     arch/x86/xen/built-in.o: In function `xen_enable_syscall':
     (.cpuinit.text+0xdb): undefined reference to `sysctl_vsyscall32'
    
    turns out when sysctl_vsyscall32 use was introduced, the variable
    was not defined anywhere.
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/vdso/vdso32-setup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
index 0bce542..0645fe9 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -377,6 +377,8 @@ __initcall(sysenter_setup);
 /* Register vsyscall32 into the ABI table */
 #include <linux/sysctl.h>
 
+int sysctl_vsyscall32;
+
 static ctl_table abi_table2[] = {
 	{
 		.procname	= "vsyscall32",

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

* Re: [patch] x86, xen, vdso: fix build error, add sysctl_vsyscall32
  2008-07-11 20:34 [patch] x86, xen, vdso: fix build error, add sysctl_vsyscall32 Ingo Molnar
@ 2008-07-11 20:41 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-07-11 20:41 UTC (permalink / raw)
  To: linux-kernel, Jeremy Fitzhardinge


* Ingo Molnar <mingo@elte.hu> wrote:

> +int sysctl_vsyscall32;
> +

ah, the trick is:

#ifdef CONFIG_X86_64
#define vdso_enabled                    sysctl_vsyscall32
#define arch_setup_additional_pages     syscall32_setup_pages
#endif

so disregard my patch. The real fix is the one below, for tip/xen-64bit.

	Ingo

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

end of thread, other threads:[~2008-07-11 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-11 20:34 [patch] x86, xen, vdso: fix build error, add sysctl_vsyscall32 Ingo Molnar
2008-07-11 20:41 ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.