Commit 2840f0fc authored by David S. Miller's avatar David S. Miller

[sparc]: Add missing const qualifiers to uaccess.h

parent 2b726f26
......@@ -292,9 +292,9 @@ __asm__ __volatile__( \
extern int __get_user_bad(void);
extern unsigned long __copy_user(void *to, void *from, unsigned long size);
extern unsigned long __copy_user(void *to, const void *from, unsigned long size);
static inline unsigned long copy_to_user(void __user *to, void *from, unsigned long n)
static inline unsigned long copy_to_user(void __user *to, const void *from, unsigned long n)
{
if (n && __access_ok((unsigned long) to, n))
return __copy_user((void *) to, from, n);
......@@ -302,12 +302,12 @@ static inline unsigned long copy_to_user(void __user *to, void *from, unsigned l
return n;
}
static inline unsigned long __copy_to_user(void __user *to, void *from, unsigned long n)
static inline unsigned long __copy_to_user(void __user *to, const void *from, unsigned long n)
{
return __copy_user((void *)to, from, n);
}
static inline unsigned long copy_from_user(void *to, void __user *from, unsigned long n)
static inline unsigned long copy_from_user(void *to, const void __user *from, unsigned long n)
{
if (n && __access_ok((unsigned long) from, n))
return __copy_user(to, (void *) from, n);
......@@ -315,7 +315,7 @@ static inline unsigned long copy_from_user(void *to, void __user *from, unsigned
return n;
}
static inline unsigned long __copy_from_user(void *to, void __user *from, unsigned long n)
static inline unsigned long __copy_from_user(void *to, const void __user *from, unsigned long n)
{
return __copy_user(to, (void *)from, n);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment