Skip to contentSkip to conversation

ARM: at91: Export at91_st_base

PATCH New Joachim Eastwood 2 participants 2 messages Apr 6, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: at91: Export at91_st_base

After commit 5e9cf5e18d4b "ARM: at91: make ST (System Timer) soc independent" building at91rm9200_wdt as a module fails with following message
ERROR: "at91_st_base" [drivers/watchdog/at91rm9200_wdt.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Export symbol to allow wdt driver to be built as a module again.

---
v2: Changed symbol export to GPL as per request from Jean-Christophe PLAGNIOL-VILLARD.

 arch/arm/mach-at91/at91rm9200_time.c |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-at91/at91rm9200_time.c +2 -0
index dd7f782..104ca40 100644
@@ -23,6 +23,7 @@
 #include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/clockchips.h>
+#include <linux/export.h>
 
 #include <asm/mach/time.h>
 
@@ -176,6 +177,7 @@ static struct clock_event_device clkevt = {
 };
 
 void __iomem *at91_st_base;
+EXPORT_SYMBOL_GPL(at91_st_base);
 
 void __init at91rm9200_ioremap_st(u32 addr)
 {
Signature · 1 line
1.7.9.6
#1 lore raw

PATCH v2 1/1 ARM: at91: Export at91_st_base

On 04/06/2012 02:21 PM, Joachim Eastwood :

Quoted 9 lines

After commit 5e9cf5e18d4b "ARM: at91: make ST (System Timer) soc independent" building at91rm9200_wdt as a module fails with following message
ERROR: "at91_st_base" [drivers/watchdog/at91rm9200_wdt.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Export symbol to allow wdt driver to be built as a module again.

I will carry it in our next at91-fixes batch for 3.4.

Thanks a lot. Best regards,

Quoted 26 lines

---
v2: Changed symbol export to GPL as per request from Jean-Christophe PLAGNIOL-VILLARD.

 arch/arm/mach-at91/at91rm9200_time.c |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-at91/at91rm9200_time.c +2 -0
index dd7f782..104ca40 100644
@@ -23,6 +23,7 @@
 #include <linux/interrupt.h>
 #include <linux/irq.h>
 #include <linux/clockchips.h>
+#include <linux/export.h>
 
 #include <asm/mach/time.h>
 
@@ -176,6 +177,7 @@ static struct clock_event_device clkevt = {
 };
 
 void __iomem *at91_st_base;
+EXPORT_SYMBOL_GPL(at91_st_base);
 
 void __init at91rm9200_ioremap_st(u32 addr)
 {
Signature · 1 line
Nicolas Ferre