* [PATCH] ARM: arch timer: Export 'read_current_timer' symbol
@ 2012-10-03 0:52 Mark A. Greer
2012-10-03 9:13 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Mark A. Greer @ 2012-10-03 0:52 UTC (permalink / raw)
To: linux-arm-kernel
From: "Mark A. Greer" <mgreer@animalcreek.com>
Commit 923df96b9f31b7d08d8438ff9677326d9537accf
(ARM: 7451/1: arch timer: implement read_current_timer and get_cycles)
modifies get_cycles() such that it calls read_current_timer().
Unfortunately, the 'read_current_timer' symbol is not exported so when
a driver that calls get_cycles() is built as a module, an undefined
reference error occurs.
A good example is the crypto/tcrypt.c (CONFIG_CRYPTO_TEST) driver
because it calls get_cycles() and can only be built as a module.
Fix this error by exporting the 'read_current_timer' symbol.
CC: Will Deacon <will.deacon@arm.com>
CC: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
---
This patch applies against current arm-soc/for-next branch.
arch/arm/kernel/armksyms.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c
index 60d3b73..e7a29fe 100644
--- a/arch/arm/kernel/armksyms.c
+++ b/arch/arm/kernel/armksyms.c
@@ -156,3 +156,7 @@ EXPORT_SYMBOL(__gnu_mcount_nc);
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT
EXPORT_SYMBOL(__pv_phys_offset);
#endif
+
+#ifdef CONFIG_ARM_ARCH_TIMER
+EXPORT_SYMBOL(read_current_timer);
+#endif
--
1.7.12
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: arch timer: Export 'read_current_timer' symbol
2012-10-03 0:52 [PATCH] ARM: arch timer: Export 'read_current_timer' symbol Mark A. Greer
@ 2012-10-03 9:13 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2012-10-03 9:13 UTC (permalink / raw)
To: linux-arm-kernel
Hi Mark,
On Wed, Oct 03, 2012 at 01:52:18AM +0100, Mark A. Greer wrote:
> From: "Mark A. Greer" <mgreer@animalcreek.com>
>
> Commit 923df96b9f31b7d08d8438ff9677326d9537accf
> (ARM: 7451/1: arch timer: implement read_current_timer and get_cycles)
> modifies get_cycles() such that it calls read_current_timer().
> Unfortunately, the 'read_current_timer' symbol is not exported so when
> a driver that calls get_cycles() is built as a module, an undefined
> reference error occurs.
>
> A good example is the crypto/tcrypt.c (CONFIG_CRYPTO_TEST) driver
> because it calls get_cycles() and can only be built as a module.
>
> Fix this error by exporting the 'read_current_timer' symbol.
This was already reported over on the kernel-janitors list, I assumed they'd
CC'd LAK, but it looks like it didn't happen.
http://marc.info/?l=kernel-janitors&m=134910841909057&w=2
Anyway, I've got a fix in the works (I don't think you need the ifdef).
Will
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-03 9:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03 0:52 [PATCH] ARM: arch timer: Export 'read_current_timer' symbol Mark A. Greer
2012-10-03 9:13 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).