Skip to contentSkip to conversation

ARM: EXYNOS: Fixed undefined symbol compilation error.

PATCH RESEND New Pankaj Dubey 2 participants 2 messages Nov 15, 2011 – Dec 1, 2011

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

PATCH RESEND 1/1 ARM: EXYNOS: Fixed undefined symbol compilation error.

Many drivers will fail to compile if compiled as module due to undefined symbol exynos4_ioremap.
Fix has been added by exporting the same in cpu.c file.

---
 arch/arm/mach-exynos/cpu.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/cpu.c +2 -0
index 8e09f34..027f65471 100644
@@ -8,6 +8,7 @@
  * published by the Free Software Foundation.
 */
 
+#include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/sysdev.h>
 #include <linux/of.h>
@@ -164,6 +165,7 @@ void __iomem *exynos4_ioremap(unsigned long phy, size_t size, unsigned int type)
 
 	return __arm_ioremap(phy, size, type);
 }
+EXPORT_SYMBOL(exynos4_ioremap);
 
 static void exynos_idle(void)
 {
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH RESEND 1/1 ARM: EXYNOS: Fixed undefined symbol compilation error.

Quoted 30 lines · Pankaj Dubey

Many drivers will fail to compile if compiled as module due to undefined symbol exynos4_ioremap.
Fix has been added by exporting the same in cpu.c file.

---
 arch/arm/mach-exynos/cpu.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/cpu.c +2 -0
index 8e09f34..027f65471 100644
@@ -8,6 +8,7 @@
  * published by the Free Software Foundation.
 */
 
+#include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/sysdev.h>
 #include <linux/of.h>
@@ -164,6 +165,7 @@ void __iomem *exynos4_ioremap(unsigned long phy,
 size_t size, unsigned int type)
 
 	return __arm_ioremap(phy, size, type);
 }
+EXPORT_SYMBOL(exynos4_ioremap);
 
 static void exynos_idle(void)
Quoted 3 lines

{
--
1.7.4.1

Hi Pankaj,

As we discussed internally, since Nicolas Pitre's vmalloc patch series this can be dropped.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.