Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Remove the symbol __flush_icache_range

And now the function flush_icache_range() is just a wrapper which
only invoke the function __flush_icache_range() directly. So we
don't have reason to keep it anymore.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Kevin Hao and committed by
Benjamin Herrenschmidt
3b04c300 abb29c3b

+3 -9
+1 -6
arch/powerpc/include/asm/cacheflush.h
··· 32 32 33 33 extern void __flush_disable_L1(void); 34 34 35 - extern void __flush_icache_range(unsigned long, unsigned long); 36 - static inline void flush_icache_range(unsigned long start, unsigned long stop) 37 - { 38 - __flush_icache_range(start, stop); 39 - } 40 - 35 + extern void flush_icache_range(unsigned long, unsigned long); 41 36 extern void flush_icache_user_range(struct vm_area_struct *vma, 42 37 struct page *page, unsigned long addr, 43 38 int len);
+1 -1
arch/powerpc/kernel/misc_32.S
··· 327 327 * 328 328 * flush_icache_range(unsigned long start, unsigned long stop) 329 329 */ 330 - _KPROBE(__flush_icache_range) 330 + _KPROBE(flush_icache_range) 331 331 BEGIN_FTR_SECTION 332 332 isync 333 333 blr /* for 601, do nothing */
+1 -1
arch/powerpc/kernel/misc_64.S
··· 67 67 * flush all bytes from start through stop-1 inclusive 68 68 */ 69 69 70 - _KPROBE(__flush_icache_range) 70 + _KPROBE(flush_icache_range) 71 71 BEGIN_FTR_SECTION 72 72 blr 73 73 END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE)
-1
arch/powerpc/kernel/ppc_ksyms.c
··· 111 111 #ifndef CONFIG_PPC64 112 112 EXPORT_SYMBOL(flush_instruction_cache); 113 113 #endif 114 - EXPORT_SYMBOL(__flush_icache_range); 115 114 EXPORT_SYMBOL(flush_dcache_range); 116 115 117 116 #ifdef CONFIG_SMP