Message ID | 50744586.6010806@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Oct 09, 2012 at 04:40:54PM +0100, Jonathan Austin wrote: > Hi Arnd, > > On 09/10/12 16:22, Arnd Bergmann wrote: > > diff --git a/arch/arm/lib/delay.c b/arch/arm/lib/delay.c > > index 9d0a300..0dc5385 100644 > > --- a/arch/arm/lib/delay.c > > +++ b/arch/arm/lib/delay.c > > @@ -45,6 +45,7 @@ int read_current_timer(unsigned long *timer_val) > > *timer_val = delay_timer->read_current_timer(); > > return 0; > > } > > +EXPORT_SYMBOL_GPL(read_current_timer); > > > Perhaps this fits better in armksyms.c? That way it lives with > arm_delay_ops and friends. It's always much better to put things next to where they're defined rather than spreading them around. armksyms.c is a reminant of the 1.x days of doing things... but still remains to allow what are mostly assembly symbols to be exported.
Am 09.10.2012 18:06, schrieb Russell King - ARM Linux: > On Tue, Oct 09, 2012 at 04:40:54PM +0100, Jonathan Austin wrote: >> Hi Arnd, >> >> On 09/10/12 16:22, Arnd Bergmann wrote: >>> diff --git a/arch/arm/lib/delay.c b/arch/arm/lib/delay.c >>> index 9d0a300..0dc5385 100644 >>> --- a/arch/arm/lib/delay.c >>> +++ b/arch/arm/lib/delay.c >>> @@ -45,6 +45,7 @@ int read_current_timer(unsigned long *timer_val) >>> *timer_val = delay_timer->read_current_timer(); >>> return 0; >>> } >>> +EXPORT_SYMBOL_GPL(read_current_timer); >> >> >> Perhaps this fits better in armksyms.c? That way it lives with >> arm_delay_ops and friends. > > It's always much better to put things next to where they're defined > rather than spreading them around. > > armksyms.c is a reminant of the 1.x days of doing things... but still > remains to allow what are mostly assembly symbols to be exported. I needed that to build udlfb as a module. For the 3.6 stable kernels this has to be done in arch/arm/kernel/arch_timer.c (along with an #include <linux/export.h>) So I'm not sure if an Cc: <stable@vger.kernel.org> can be used here, but a patch should be submitted for inclusion into the 3.6 stable series too. Regards, Alexander
diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c index 60d3b73..6a37f8d 100644 --- a/arch/arm/kernel/armksyms.c +++ b/arch/arm/kernel/armksyms.c @@ -50,6 +50,7 @@ extern void fpundefinstr(void); /* platform dependent support */ EXPORT_SYMBOL(arm_delay_ops); +EXPORT_SYMBOL(read_current_timer); /* networking */ EXPORT_SYMBOL(csum_partial);