Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2840f0fc
Commit
2840f0fc
authored
Apr 09, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sparc]: Add missing const qualifiers to uaccess.h
parent
2b726f26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/asm-sparc/uaccess.h
include/asm-sparc/uaccess.h
+5
-5
No files found.
include/asm-sparc/uaccess.h
View file @
2840f0fc
...
@@ -292,9 +292,9 @@ __asm__ __volatile__( \
...
@@ -292,9 +292,9 @@ __asm__ __volatile__( \
extern
int
__get_user_bad
(
void
);
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
))
if
(
n
&&
__access_ok
((
unsigned
long
)
to
,
n
))
return
__copy_user
((
void
*
)
to
,
from
,
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
...
@@ -302,12 +302,12 @@ static inline unsigned long copy_to_user(void __user *to, void *from, unsigned l
return
n
;
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
);
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
))
if
(
n
&&
__access_ok
((
unsigned
long
)
from
,
n
))
return
__copy_user
(
to
,
(
void
*
)
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
...
@@ -315,7 +315,7 @@ static inline unsigned long copy_from_user(void *to, void __user *from, unsigned
return
n
;
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
);
return
__copy_user
(
to
,
(
void
*
)
from
,
n
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment