Skip to content

Commit

Permalink
sh: Don't export flush_dcache_all().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Aug 15, 2009
1 parent 27d59ec commit 0b445dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion arch/sh/include/cpu-sh4/cpu/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/mm/cache-sh4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0b445dc

Please sign in to comment.