Re: _proxy_pda still makes linking modules fail

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Sunday, March 11, 2007 - 6:19 pm

Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl> writes:

Hmm, it probably needs a EXPORT_SYMBOL. The previous change only
fixed the in kernel build.

Does it work with this patch?

-Andi

Export _proxy_pda for gcc 4.2

The symbol is not actually used, but the compiler unforunately generates
a (unused) reference to it. This can happen even in modules. So export it.

Signed-off-by: Andi Kleen <ak@suse.de>

Index: linux/arch/i386/kernel/i386_ksyms.c
===================================================================
--- linux.orig/arch/i386/kernel/i386_ksyms.c
+++ linux/arch/i386/kernel/i386_ksyms.c
@@ -28,3 +28,5 @@ EXPORT_SYMBOL(__read_lock_failed);
 #endif
 
 EXPORT_SYMBOL(csum_partial);
+
+EXPORT_SYMBOL(_proxy_pda);
Index: linux/arch/x86_64/kernel/x8664_ksyms.c
===================================================================
--- linux.orig/arch/x86_64/kernel/x8664_ksyms.c
+++ linux/arch/x86_64/kernel/x8664_ksyms.c
@@ -61,3 +61,4 @@ EXPORT_SYMBOL(empty_zero_page);
 EXPORT_SYMBOL(init_level4_pgt);
 EXPORT_SYMBOL(load_gs_index);
 
+EXPORT_SYMBOL(_proxy_pda);
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
_proxy_pda still makes linking modules fail, Marcin 'Qrczak' Kowa ..., (Wed Mar 7, 5:57 pm)
Re: _proxy_pda still makes linking modules fail, Adrian Bunk, (Sat Mar 10, 8:03 am)
Re: _proxy_pda still makes linking modules fail, Marcin 'Qrczak' Kowa ..., (Sun Mar 11, 7:06 am)
Re: _proxy_pda still makes linking modules fail, Jeremy Fitzhardinge, (Sun Mar 11, 5:25 pm)
Re: _proxy_pda still makes linking modules fail, Andi Kleen, (Sun Mar 11, 6:19 pm)
Re: _proxy_pda still makes linking modules fail, Andi Kleen, (Mon Mar 12, 2:48 am)
Re: _proxy_pda still makes linking modules fail, Jeremy Fitzhardinge, (Mon Mar 12, 7:45 am)
Re: _proxy_pda still makes linking modules fail, Andi Kleen, (Mon Mar 12, 8:45 am)
Re: _proxy_pda still makes linking modules fail, Marcin 'Qrczak' Kowa ..., (Mon Mar 12, 11:47 am)
Re: _proxy_pda still makes linking modules fail, Rusty Russell, (Mon Mar 12, 2:58 pm)
Re: _proxy_pda still makes linking modules fail, Rusty Russell, (Mon Mar 12, 11:23 pm)
Re: _proxy_pda still makes linking modules fail, Paul Mackerras, (Tue Mar 13, 2:04 am)
Re: _proxy_pda still makes linking modules fail, Jeremy Fitzhardinge, (Tue Mar 13, 8:31 am)
Re: _proxy_pda still makes linking modules fail, Andi Kleen, (Tue Mar 13, 8:57 am)
Re: _proxy_pda still makes linking modules fail, Paul Mackerras, (Tue Mar 13, 4:50 pm)
Re: _proxy_pda still makes linking modules fail, Rusty Russell, (Tue Mar 13, 6:12 pm)
Re: _proxy_pda still makes linking modules fail, Rusty Russell, (Tue Mar 13, 7:17 pm)