mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[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>
This commit is contained in:
parent
2caf190002
commit
d4264f1839
3 changed files with 6 additions and 9 deletions
|
@ -464,8 +464,8 @@ static void r4k_flush_data_cache_page(unsigned long addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct flush_icache_range_args {
|
struct flush_icache_range_args {
|
||||||
unsigned long __user start;
|
unsigned long start;
|
||||||
unsigned long __user end;
|
unsigned long end;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void local_r4k_flush_icache_range(void *args)
|
static inline void local_r4k_flush_icache_range(void *args)
|
||||||
|
@ -528,8 +528,7 @@ static inline void local_r4k_flush_icache_range(void *args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void r4k_flush_icache_range(unsigned long __user start,
|
static void r4k_flush_icache_range(unsigned long start, unsigned long end)
|
||||||
unsigned long __user end)
|
|
||||||
{
|
{
|
||||||
struct flush_icache_range_args args;
|
struct flush_icache_range_args args;
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,7 @@ void (*flush_cache_range)(struct vm_area_struct *vma, unsigned long start,
|
||||||
unsigned long end);
|
unsigned long end);
|
||||||
void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page,
|
void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page,
|
||||||
unsigned long pfn);
|
unsigned long pfn);
|
||||||
void (*flush_icache_range)(unsigned long __user start,
|
void (*flush_icache_range)(unsigned long start, unsigned long end);
|
||||||
unsigned long __user end);
|
|
||||||
void (*flush_icache_page)(struct vm_area_struct *vma, struct page *page);
|
void (*flush_icache_page)(struct vm_area_struct *vma, struct page *page);
|
||||||
|
|
||||||
/* MIPS specific cache operations */
|
/* MIPS specific cache operations */
|
||||||
|
@ -53,7 +52,7 @@ EXPORT_SYMBOL(_dma_cache_inv);
|
||||||
* We could optimize the case where the cache argument is not BCACHE but
|
* We could optimize the case where the cache argument is not BCACHE but
|
||||||
* that seems very atypical use ...
|
* that seems very atypical use ...
|
||||||
*/
|
*/
|
||||||
asmlinkage int sys_cacheflush(unsigned long __user addr,
|
asmlinkage int sys_cacheflush(unsigned long addr,
|
||||||
unsigned long bytes, unsigned int cache)
|
unsigned long bytes, unsigned int cache)
|
||||||
{
|
{
|
||||||
if (bytes == 0)
|
if (bytes == 0)
|
||||||
|
|
|
@ -49,8 +49,7 @@ static inline void flush_dcache_page(struct page *page)
|
||||||
|
|
||||||
extern void (*flush_icache_page)(struct vm_area_struct *vma,
|
extern void (*flush_icache_page)(struct vm_area_struct *vma,
|
||||||
struct page *page);
|
struct page *page);
|
||||||
extern void (*flush_icache_range)(unsigned long __user start,
|
extern void (*flush_icache_range)(unsigned long start, unsigned long end);
|
||||||
unsigned long __user end);
|
|
||||||
#define flush_cache_vmap(start, end) flush_cache_all()
|
#define flush_cache_vmap(start, end) flush_cache_all()
|
||||||
#define flush_cache_vunmap(start, end) flush_cache_all()
|
#define flush_cache_vunmap(start, end) flush_cache_all()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue