Skip to contentSkip to conversation

export symbol ds1287_regs

PATCH New Molnar Bence 1 participant 1 message Jun 1, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 export symbol ds1287_regs

Just a small patch, applies cleanly on 2.6.16.19. (Maybe it would be nicer to put it in sparc64_ksyms.c?)

Symptom:
CONFIG_PCI=y
CONFIG_RTC=m

# modprobe rtc
FATAL: Error inserting rtc (/lib/modules/.../rtc.ko): Unknown symbol
in module, or unknown parameter (see dmesg)
# dmesg
rtc: Unknown symbol ds1287_regs

--- linux-2.6.16/arch/sparc64/kernel/time.c 2006-03-20
05:53:29.000000000 +0000
+++ linux-2.6.16/arch/sparc64/kernel/time.c 2006-03-22
14:36:57.000000000 +0000
@@ -51,6 +51,7 @@
void __iomem *mstk48t02_regs = NULL;
#ifdef CONFIG_PCI
unsigned long ds1287_regs = 0UL;
+EXPORT_SYMBOL(ds1287_regs);
#endif

extern unsigned long wall_jiffies;