diff options
-rw-r--r-- | arch/mips/mm/c-r4k.c | 7 | ||||
-rw-r--r-- | arch/mips/mm/cache.c | 5 | ||||
-rw-r--r-- | include/asm-mips/cacheflush.h | 3 |
3 files changed, 6 insertions, 9 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 422b55fab07a..e51c38cef88e 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -464,8 +464,8 @@ static void r4k_flush_data_cache_page(unsigned long addr) | |||
464 | } | 464 | } |
465 | 465 | ||
466 | struct flush_icache_range_args { | 466 | struct flush_icache_range_args { |
467 | unsigned long __user start; | 467 | unsigned long start; |
468 | unsigned long __user end; | 468 | unsigned long end; |
469 | }; | 469 | }; |
470 | 470 | ||
471 | static inline void local_r4k_flush_icache_range(void *args) | 471 | static inline void local_r4k_flush_icache_range(void *args) |
@@ -528,8 +528,7 @@ static inline void local_r4k_flush_icache_range(void *args) | |||
528 | } | 528 | } |
529 | } | 529 | } |
530 | 530 | ||
531 | static void r4k_flush_icache_range(unsigned long __user start, | 531 | static void r4k_flush_icache_range(unsigned long start, unsigned long end) |
532 | unsigned long __user end) | ||
533 | { | 532 | { |
534 | struct flush_icache_range_args args; | 533 | struct flush_icache_range_args args; |
535 | 534 | ||
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 314701a66b13..591c22b080e4 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c | |||
@@ -25,8 +25,7 @@ void (*flush_cache_range)(struct vm_area_struct *vma, unsigned long start, | |||
25 | unsigned long end); | 25 | unsigned long end); |
26 | void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page, | 26 | void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page, |
27 | unsigned long pfn); | 27 | unsigned long pfn); |
28 | void (*flush_icache_range)(unsigned long __user start, | 28 | void (*flush_icache_range)(unsigned long start, unsigned long end); |
29 | unsigned long __user end); | ||
30 | void (*flush_icache_page)(struct vm_area_struct *vma, struct page *page); | 29 | void (*flush_icache_page)(struct vm_area_struct *vma, struct page *page); |
31 | 30 | ||
32 | /* MIPS specific cache operations */ | 31 | /* MIPS specific cache operations */ |
@@ -53,7 +52,7 @@ EXPORT_SYMBOL(_dma_cache_inv); | |||
53 | * We could optimize the case where the cache argument is not BCACHE but | 52 | * We could optimize the case where the cache argument is not BCACHE but |
54 | * that seems very atypical use ... | 53 | * that seems very atypical use ... |
55 | */ | 54 | */ |
56 | asmlinkage int sys_cacheflush(unsigned long __user addr, | 55 | asmlinkage int sys_cacheflush(unsigned long addr, |
57 | unsigned long bytes, unsigned int cache) | 56 | unsigned long bytes, unsigned int cache) |
58 | { | 57 | { |
59 | if (bytes == 0) | 58 | if (bytes == 0) |
diff --git a/include/asm-mips/cacheflush.h b/include/asm-mips/cacheflush.h index a18ba2edc0b6..aeae9fabf4a9 100644 --- a/include/asm-mips/cacheflush.h +++ b/include/asm-mips/cacheflush.h | |||
@@ -49,8 +49,7 @@ static inline void flush_dcache_page(struct page *page) | |||
49 | 49 | ||
50 | extern void (*flush_icache_page)(struct vm_area_struct *vma, | 50 | extern void (*flush_icache_page)(struct vm_area_struct *vma, |
51 | struct page *page); | 51 | struct page *page); |
52 | extern void (*flush_icache_range)(unsigned long __user start, | 52 | extern void (*flush_icache_range)(unsigned long start, unsigned long end); |
53 | unsigned long __user end); | ||
54 | #define flush_cache_vmap(start, end) flush_cache_all() | 53 | #define flush_cache_vmap(start, end) flush_cache_all() |
55 | #define flush_cache_vunmap(start, end) flush_cache_all() | 54 | #define flush_cache_vunmap(start, end) flush_cache_all() |
56 | 55 | ||