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
nexedi
linux
Commits
611c94d1
Commit
611c94d1
authored
Oct 30, 2004
by
David S. Miller
Committed by
Linus Torvalds
Oct 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Add __must_check to user copy routines.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
e301ee88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
include/asm-sparc64/uaccess.h
include/asm-sparc64/uaccess.h
+19
-15
No files found.
include/asm-sparc64/uaccess.h
View file @
611c94d1
...
...
@@ -253,12 +253,13 @@ __asm__ __volatile__( \
extern
int
__get_user_bad
(
void
);
extern
unsigned
long
___copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
size
);
extern
unsigned
long
__must_check
___copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
size
);
extern
unsigned
long
copy_from_user_fixup
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
size
);
static
inline
unsigned
long
copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
size
)
static
inline
unsigned
long
__must_check
copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
size
)
{
unsigned
long
ret
=
___copy_from_user
(
to
,
from
,
size
);
...
...
@@ -268,12 +269,13 @@ static inline unsigned long copy_from_user(void *to, const void __user *from,
}
#define __copy_from_user copy_from_user
extern
unsigned
long
___copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
size
);
extern
unsigned
long
__must_check
___copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
size
);
extern
unsigned
long
copy_to_user_fixup
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
size
);
static
inline
unsigned
long
copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
size
)
static
inline
unsigned
long
__must_check
copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
size
)
{
unsigned
long
ret
=
___copy_to_user
(
to
,
from
,
size
);
...
...
@@ -283,12 +285,13 @@ static inline unsigned long copy_to_user(void __user *to, const void *from,
}
#define __copy_to_user copy_to_user
extern
unsigned
long
___copy_in_user
(
void
__user
*
to
,
const
void
__user
*
from
,
unsigned
long
size
);
extern
unsigned
long
__must_check
___copy_in_user
(
void
__user
*
to
,
const
void
__user
*
from
,
unsigned
long
size
);
extern
unsigned
long
copy_in_user_fixup
(
void
__user
*
to
,
void
__user
*
from
,
unsigned
long
size
);
static
inline
unsigned
long
copy_in_user
(
void
__user
*
to
,
void
__user
*
from
,
unsigned
long
size
)
static
inline
unsigned
long
__must_check
copy_in_user
(
void
__user
*
to
,
void
__user
*
from
,
unsigned
long
size
)
{
unsigned
long
ret
=
___copy_in_user
(
to
,
from
,
size
);
...
...
@@ -298,9 +301,10 @@ static inline unsigned long copy_in_user(void __user *to, void __user *from,
}
#define __copy_in_user copy_in_user
extern
unsigned
long
__bzero_noasi
(
void
__user
*
,
unsigned
long
);
extern
unsigned
long
__
must_check
__
bzero_noasi
(
void
__user
*
,
unsigned
long
);
static
inline
unsigned
long
__clear_user
(
void
__user
*
addr
,
unsigned
long
size
)
static
inline
unsigned
long
__must_check
__clear_user
(
void
__user
*
addr
,
unsigned
long
size
)
{
return
__bzero_noasi
(
addr
,
size
);
...
...
@@ -308,7 +312,7 @@ static inline unsigned long __clear_user(void __user *addr, unsigned long size)
#define clear_user __clear_user
extern
long
__strncpy_from_user
(
char
*
dest
,
const
char
__user
*
src
,
long
count
);
extern
long
__
must_check
__
strncpy_from_user
(
char
*
dest
,
const
char
__user
*
src
,
long
count
);
#define strncpy_from_user __strncpy_from_user
...
...
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