Skip to content

Commit 0b445dc

Browse files
committed
sh: Don't export flush_dcache_all().
flush_dcache_all() is used internally by the SH-4 cache code, it is not part of the exported cache API, so make it static and don't export it. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 27d59ec commit 0b445dc

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/sh/include/cpu-sh4/cpu/cacheflush.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* so we need them.
1818
*/
1919
void flush_cache_all(void);
20-
void flush_dcache_all(void);
2120
void flush_cache_mm(struct mm_struct *mm);
2221
#define flush_cache_dup_mm(mm) flush_cache_mm(mm)
2322
void flush_cache_range(struct vm_area_struct *vma, unsigned long start,

‎arch/sh/mm/cache-sh4.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static void __uses_jump_to_uncached flush_icache_all(void)
182182
local_irq_restore(flags);
183183
}
184184

185-
void flush_dcache_all(void)
185+
static inline void flush_dcache_all(void)
186186
{
187187
(*__flush_dcache_segment_fn)(0UL, boot_cpu_data.dcache.way_size);
188188
wmb();

0 commit comments

Comments
 (0)