summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-15 11:22:50 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-08-15 11:22:50 +0900
commit0b445dcaf3adda5bec5cc494925bc689fcc59a0e (patch)
tree1d29422238cea24f33c78d2137ecf75d1b8bf255
parent27d59ec1709817a90aa3ab7169f60994a89ad2f5 (diff)
downloadblackbird-op-linux-0b445dcaf3adda5bec5cc494925bc689fcc59a0e.tar.gz
blackbird-op-linux-0b445dcaf3adda5bec5cc494925bc689fcc59a0e.zip
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>
-rw-r--r--arch/sh/include/cpu-sh4/cpu/cacheflush.h1
-rw-r--r--arch/sh/mm/cache-sh4.c2
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 a28c542f5179..0afcf94ae554 100644
--- a/arch/sh/include/cpu-sh4/cpu/cacheflush.h
+++ b/arch/sh/include/cpu-sh4/cpu/cacheflush.h
@@ -17,7 +17,6 @@
* so we need them.
*/
void flush_cache_all(void);
-void flush_dcache_all(void);
void flush_cache_mm(struct mm_struct *mm);
#define flush_cache_dup_mm(mm) flush_cache_mm(mm)
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 4ac844b1432f..4466787a52aa 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)
local_irq_restore(flags);
}
-void flush_dcache_all(void)
+static inline void flush_dcache_all(void)
{
(*__flush_dcache_segment_fn)(0UL, boot_cpu_data.dcache.way_size);
wmb();
OpenPOWER on IntegriCloud