Skip to contentSkip to conversation

flush_icache_range: Export symbol to fix build errors

PATCH In review Pranith Kumar 5 participants 5 messages Aug 18, 2014 – Aug 21, 2014

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

PATCH v2 1/1 flush_icache_range: Export symbol to fix build errors

Fix building errors occuring due to a missing export of flush_icache_range() in

kisskb.ellerman.id.au/kisskb/buildresult/11677809/

ERROR: "flush_icache_range" [drivers/misc/lkdtm.ko] undefined!

---
 arch/arc/mm/cache_arc700.c | 1 +
 arch/hexagon/mm/cache.c    | 1 +
 arch/sh/mm/cache.c         | 1 +
 arch/tile/kernel/smp.c     | 1 +
 arch/xtensa/kernel/smp.c   | 1 +
 5 files changed, 5 insertions(+)
arch/arc/mm/cache_arc700.c +1 -0
index 4670afc..e88ddbf 100644
@@ -581,6 +581,7 @@ void flush_icache_range(unsigned long kstart, unsigned long kend)
 		tot_sz -= sz;
 	}
 }
+EXPORT_SYMBOL(flush_icache_range);
 
 /*
  * General purpose helper to make I and D cache lines consistent.
arch/hexagon/mm/cache.c +1 -0
index fe14ccf..0c76c80 100644
@@ -68,6 +68,7 @@ void flush_icache_range(unsigned long start, unsigned long end)
 	);
 	local_irq_restore(flags);
 }
+EXPORT_SYMBOL(flush_icache_range);
 
 void hexagon_clean_dcache_range(unsigned long start, unsigned long end)
 {
arch/sh/mm/cache.c +1 -0
index 097c2cd..f770e39 100644
@@ -229,6 +229,7 @@ void flush_icache_range(unsigned long start, unsigned long end)
 
 	cacheop_on_each_cpu(local_flush_icache_range, (void *)&data, 1);
 }
+EXPORT_SYMBOL(flush_icache_range);
 
 void flush_icache_page(struct vm_area_struct *vma, struct page *page)
 {
arch/tile/kernel/smp.c +1 -0
index 01e8ab2..19eaa62 100644
@@ -183,6 +183,7 @@ void flush_icache_range(unsigned long start, unsigned long end)
 		preempt_enable();
 	}
 }
+EXPORT_SYMBOL(flush_icache_range);
 
 
 /* Called when smp_send_reschedule() triggers IRQ_RESCHEDULE. */
arch/xtensa/kernel/smp.c +1 -0
index 40b5a37..4d02e38 100644
@@ -571,6 +571,7 @@ void flush_icache_range(unsigned long start, unsigned long end)
 	};
 	on_each_cpu(ipi_flush_icache_range, &fd, 1);
 }
+EXPORT_SYMBOL(flush_icache_range);
 
 /* ------------------------------------------------------------------------- */
 
Signature · 1 line
1.9.1
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 9 lines · Pranith Kumar

Fix building errors occuring due to a missing export of flush_icache_range() in

kisskb.ellerman.id.au/kisskb/buildresult/11677809/

ERROR: "flush_icache_range" [drivers/misc/lkdtm.ko] undefined!

Quoted 7 lines
---
 arch/arc/mm/cache_arc700.c | 1 +
 arch/hexagon/mm/cache.c    | 1 +
 arch/sh/mm/cache.c         | 1 +
 arch/tile/kernel/smp.c     | 1 +
 arch/xtensa/kernel/smp.c   | 1 +
 5 files changed, 5 insertions(+)

For xtensa

Signature · 2 lines
Thanks.
-- Max
Acked-by on v2 1/1
#2 lore raw
In reply to Pranith Kumar
Quoted 22 lines · Pranith Kumar

Fix building errors occuring due to a missing export of flush_icache_range() in

kisskb.ellerman.id.au/kisskb/buildresult/11677809/

ERROR: "flush_icache_range" [drivers/misc/lkdtm.ko] undefined!

---
 arch/arc/mm/cache_arc700.c | 1 +
 arch/hexagon/mm/cache.c    | 1 +
 arch/sh/mm/cache.c         | 1 +
 arch/tile/kernel/smp.c     | 1 +
 arch/xtensa/kernel/smp.c   | 1 +
 5 files changed, 5 insertions(+)
arch/arc/mm/cache_arc700.c +0 -0
index 4670afc..e88ddbf 100644

arch/arc/mm/cache_arc700.c void flush_icache_range(unsigned long kstart, unsigned long kend) · line 584

Quoted 4 lines
arch/arc/mm/cache_arc700.c +1 -0
@@ -581,6 +581,7 @@ void flush_icache_range(unsigned long kstart, unsigned long kend)
 		tot_sz -= sz;
 	}
 }
+EXPORT_SYMBOL(flush_icache_range);

thx,
-Vineet

Acked-by on v2 1/1
#3 lore raw
In reply to Pranith Kumar
Quoted 9 lines · Pranith Kumar

Fix building errors occuring due to a missing export of flush_icache_range() in

kisskb.ellerman.id.au/kisskb/buildresult/11677809/

ERROR: "flush_icache_range" [drivers/misc/lkdtm.ko] undefined!

Quoted 8 lines
---
 arch/arc/mm/cache_arc700.c | 1 +
 arch/hexagon/mm/cache.c    | 1 +
 arch/sh/mm/cache.c         | 1 +
 arch/tile/kernel/smp.c     | 1 +
 arch/xtensa/kernel/smp.c   | 1 +
 5 files changed, 5 insertions(+)

For Hexagon,

Signature · 3 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
Acked-by on v2 1/1
#4 lore raw
In reply to Pranith Kumar
Quoted 11 lines

-----Original Message-----
Fix building errors occuring due to a missing export of flush_icache_range() in

kisskb.ellerman.id.au/kisskb/buildresult/11677809/

ERROR: "flush_icache_range" [drivers/misc/lkdtm.ko] undefined!

Quoted 8 lines

---

arch/arc/mm/cache_arc700.c | 1 +
arch/hexagon/mm/cache.c    | 1 +
arch/sh/mm/cache.c         | 1 +
arch/tile/kernel/smp.c     | 1 +
arch/xtensa/kernel/smp.c   | 1 +
5 files changed, 5 insertions(+)

For Tile,