diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-05-09 12:25:27 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-05-09 12:30:57 -0400 |
commit | de2a852cc0d4c4d6a9c22a597c9cc231f2e6ceb4 (patch) | |
tree | e4d86c107073f9dedaf1886f9f1deeacebb7ca45 /arch/arc | |
parent | 4102b53392d6397d80b6e09b516517efacf7ea77 (diff) |
ARC: [mm] Aliasing VIPT dcache support 3/4
Fix the one zillion warnings
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/include/asm/cacheflush.h | 4 | ||||
-rw-r--r-- | arch/arc/mm/cache_arc700.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/arc/include/asm/cacheflush.h b/arch/arc/include/asm/cacheflush.h index d692fbb17254..14a0fea0029e 100644 --- a/arch/arc/include/asm/cacheflush.h +++ b/arch/arc/include/asm/cacheflush.h | |||
@@ -33,7 +33,9 @@ void flush_cache_all(void); | |||
33 | void flush_icache_range(unsigned long start, unsigned long end); | 33 | void flush_icache_range(unsigned long start, unsigned long end); |
34 | void __sync_icache_dcache(unsigned long paddr, unsigned long vaddr, int len); | 34 | void __sync_icache_dcache(unsigned long paddr, unsigned long vaddr, int len); |
35 | void __inv_icache_page(unsigned long paddr, unsigned long vaddr); | 35 | void __inv_icache_page(unsigned long paddr, unsigned long vaddr); |
36 | void __flush_dcache_page(unsigned long paddr, unsigned long vaddr); | 36 | void ___flush_dcache_page(unsigned long paddr, unsigned long vaddr); |
37 | #define __flush_dcache_page(p, v) \ | ||
38 | ___flush_dcache_page((unsigned long)p, (unsigned long)v) | ||
37 | 39 | ||
38 | #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 | 40 | #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 |
39 | 41 | ||
diff --git a/arch/arc/mm/cache_arc700.c b/arch/arc/mm/cache_arc700.c index 9887195379ef..2f12bca8aef3 100644 --- a/arch/arc/mm/cache_arc700.c +++ b/arch/arc/mm/cache_arc700.c | |||
@@ -624,7 +624,7 @@ void __inv_icache_page(unsigned long paddr, unsigned long vaddr) | |||
624 | * wrapper to clearout kernel or userspace mappings of a page | 624 | * wrapper to clearout kernel or userspace mappings of a page |
625 | * For kernel mappings @vaddr == @paddr | 625 | * For kernel mappings @vaddr == @paddr |
626 | */ | 626 | */ |
627 | void __flush_dcache_page(unsigned long paddr, unsigned long vaddr) | 627 | void ___flush_dcache_page(unsigned long paddr, unsigned long vaddr) |
628 | { | 628 | { |
629 | __dc_line_op(paddr, vaddr & PAGE_MASK, PAGE_SIZE, OP_FLUSH_N_INV); | 629 | __dc_line_op(paddr, vaddr & PAGE_MASK, PAGE_SIZE, OP_FLUSH_N_INV); |
630 | } | 630 | } |