Commit d4264f183967db9c2dae4275abb98eb1f79facb2
Committed by
Ralf Baechle
1 parent
2caf190002
Exists in
master
and in
7 other branches
[MIPS] Remove wrong __user tags.
This fixes sparse warnings 'dereference of noderef expression'. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Showing 3 changed files with 6 additions and 9 deletions Side-by-side Diff
arch/mips/mm/c-r4k.c
... | ... | @@ -464,8 +464,8 @@ |
464 | 464 | } |
465 | 465 | |
466 | 466 | struct flush_icache_range_args { |
467 | - unsigned long __user start; | |
468 | - unsigned long __user end; | |
467 | + unsigned long start; | |
468 | + unsigned long end; | |
469 | 469 | }; |
470 | 470 | |
471 | 471 | static inline void local_r4k_flush_icache_range(void *args) |
... | ... | @@ -528,8 +528,7 @@ |
528 | 528 | } |
529 | 529 | } |
530 | 530 | |
531 | -static void r4k_flush_icache_range(unsigned long __user start, | |
532 | - unsigned long __user end) | |
531 | +static void r4k_flush_icache_range(unsigned long start, unsigned long end) | |
533 | 532 | { |
534 | 533 | struct flush_icache_range_args args; |
535 | 534 |
arch/mips/mm/cache.c
... | ... | @@ -25,8 +25,7 @@ |
25 | 25 | unsigned long end); |
26 | 26 | void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page, |
27 | 27 | unsigned long pfn); |
28 | -void (*flush_icache_range)(unsigned long __user start, | |
29 | - unsigned long __user end); | |
28 | +void (*flush_icache_range)(unsigned long start, unsigned long end); | |
30 | 29 | void (*flush_icache_page)(struct vm_area_struct *vma, struct page *page); |
31 | 30 | |
32 | 31 | /* MIPS specific cache operations */ |
... | ... | @@ -53,7 +52,7 @@ |
53 | 52 | * We could optimize the case where the cache argument is not BCACHE but |
54 | 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 | 56 | unsigned long bytes, unsigned int cache) |
58 | 57 | { |
59 | 58 | if (bytes == 0) |
include/asm-mips/cacheflush.h
... | ... | @@ -49,8 +49,7 @@ |
49 | 49 | |
50 | 50 | extern void (*flush_icache_page)(struct vm_area_struct *vma, |
51 | 51 | struct page *page); |
52 | -extern void (*flush_icache_range)(unsigned long __user start, | |
53 | - unsigned long __user end); | |
52 | +extern void (*flush_icache_range)(unsigned long start, unsigned long end); | |
54 | 53 | #define flush_cache_vmap(start, end) flush_cache_all() |
55 | 54 | #define flush_cache_vunmap(start, end) flush_cache_all() |
56 | 55 |