diff options
Diffstat (limited to 'arch/mips/mm')
| -rw-r--r-- | arch/mips/mm/c-r4k.c | 7 | ||||
| -rw-r--r-- | arch/mips/mm/cache.c | 5 |
2 files changed, 5 insertions, 7 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) |
