diff options
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/cacheflush.h | 1 | ||||
-rw-r--r-- | arch/sh/mm/cache-sh4.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/include/cpu-sh4/cpu/cacheflush.h b/arch/sh/include/cpu-sh4/cpu/cacheflush.h index a28c542f517..0afcf94ae55 100644 --- a/arch/sh/include/cpu-sh4/cpu/cacheflush.h +++ b/arch/sh/include/cpu-sh4/cpu/cacheflush.h | |||
@@ -17,7 +17,6 @@ | |||
17 | * so we need them. | 17 | * so we need them. |
18 | */ | 18 | */ |
19 | void flush_cache_all(void); | 19 | void flush_cache_all(void); |
20 | void flush_dcache_all(void); | ||
21 | void flush_cache_mm(struct mm_struct *mm); | 20 | void flush_cache_mm(struct mm_struct *mm); |
22 | #define flush_cache_dup_mm(mm) flush_cache_mm(mm) | 21 | #define flush_cache_dup_mm(mm) flush_cache_mm(mm) |
23 | void flush_cache_range(struct vm_area_struct *vma, unsigned long start, | 22 | void flush_cache_range(struct vm_area_struct *vma, unsigned long start, |
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 4ac844b1432..4466787a52a 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c | |||
@@ -182,7 +182,7 @@ static void __uses_jump_to_uncached flush_icache_all(void) | |||
182 | local_irq_restore(flags); | 182 | local_irq_restore(flags); |
183 | } | 183 | } |
184 | 184 | ||
185 | void flush_dcache_all(void) | 185 | static inline void flush_dcache_all(void) |
186 | { | 186 | { |
187 | (*__flush_dcache_segment_fn)(0UL, boot_cpu_data.dcache.way_size); | 187 | (*__flush_dcache_segment_fn)(0UL, boot_cpu_data.dcache.way_size); |
188 | wmb(); | 188 | wmb(); |