ARM: arch timer: Export 'read_current_timer' symbol
PATCH 1/1 ARM: arch timer: Export 'read_current_timer' symbol
From: "Mark A. Greer" <[email protected]>
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 patch applies against current arm-soc/for-next branch.
arch/arm/kernel/armksyms.c | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/kernel/armksyms.c +4 -0
@@ -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
Signature · 1 line
1.7.12
PATCH 1/1 ARM: arch timer: Export 'read_current_timer' symbol
Hi Mark,
Quoted 9 lines · Mark A. Greer
From: "Mark A. Greer" <[email protected]>
Commit
923df96b9f31b7d08d8438ff9677326d9537accf
(ARM: 7451/1: arch timer: implementread_current_timerandget_cycles) modifiesget_cycles()such that it callsread_current_timer(). Unfortunately, the 'read_current_timer' symbol is not exported so when a driver that callsget_cycles()is built as a module, an undefined reference error occurs.
Quoted 4 lines
A good example is the
crypto/tcrypt.c(CONFIG_CRYPTO_TEST) driver because it callsget_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