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
908d6d81
Commit
908d6d81
authored
May 30, 2004
by
Alexander Viro
Committed by
Linus Torvalds
May 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: amd64 - more trivial annotations
parent
7c3f26b7
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
63 deletions
+65
-63
arch/x86_64/ia32/sys_ia32.c
arch/x86_64/ia32/sys_ia32.c
+56
-55
arch/x86_64/ia32/tls32.c
arch/x86_64/ia32/tls32.c
+7
-6
include/asm-x86_64/checksum.h
include/asm-x86_64/checksum.h
+2
-2
No files found.
arch/x86_64/ia32/sys_ia32.c
View file @
908d6d81
This diff is collapsed.
Click to expand it.
arch/x86_64/ia32/tls32.c
View file @
908d6d81
...
...
@@ -28,7 +28,7 @@ static int get_free_idx(void)
* Set a given TLS descriptor:
* When you want addresses > 32bit use arch_prctl()
*/
int
do_set_thread_area
(
struct
thread_struct
*
t
,
struct
user_desc
*
u_info
)
int
do_set_thread_area
(
struct
thread_struct
*
t
,
struct
user_desc
__user
*
u_info
)
{
struct
user_desc
info
;
struct
n_desc_struct
*
desc
;
...
...
@@ -75,7 +75,7 @@ int do_set_thread_area(struct thread_struct *t, struct user_desc *u_info)
return
0
;
}
asmlinkage
long
sys32_set_thread_area
(
struct
user_desc
*
u_info
)
asmlinkage
long
sys32_set_thread_area
(
struct
user_desc
__user
*
u_info
)
{
return
do_set_thread_area
(
&
current
->
thread
,
u_info
);
}
...
...
@@ -102,7 +102,7 @@ asmlinkage long sys32_set_thread_area(struct user_desc *u_info)
#define GET_USEABLE(desc) (((desc)->b >> 20) & 1)
#define GET_LONGMODE(desc) (((desc)->b >> 21) & 1)
int
do_get_thread_area
(
struct
thread_struct
*
t
,
struct
user_desc
*
u_info
)
int
do_get_thread_area
(
struct
thread_struct
*
t
,
struct
user_desc
__user
*
u_info
)
{
struct
user_desc
info
;
struct
n_desc_struct
*
desc
;
...
...
@@ -132,7 +132,7 @@ int do_get_thread_area(struct thread_struct *t, struct user_desc *u_info)
return
0
;
}
asmlinkage
long
sys32_get_thread_area
(
struct
user_desc
*
u_info
)
asmlinkage
long
sys32_get_thread_area
(
struct
user_desc
__user
*
u_info
)
{
return
do_get_thread_area
(
&
current
->
thread
,
u_info
);
}
...
...
@@ -141,10 +141,11 @@ asmlinkage long sys32_get_thread_area(struct user_desc *u_info)
int
ia32_child_tls
(
struct
task_struct
*
p
,
struct
pt_regs
*
childregs
)
{
struct
n_desc_struct
*
desc
;
struct
user_desc
info
,
*
cp
;
struct
user_desc
info
;
struct
user_desc
__user
*
cp
;
int
idx
;
cp
=
(
void
*
)
childregs
->
rsi
;
cp
=
(
void
__user
*
)
childregs
->
rsi
;
if
(
copy_from_user
(
&
info
,
cp
,
sizeof
(
info
)))
return
-
EFAULT
;
if
(
LDT_empty
(
&
info
))
...
...
include/asm-x86_64/checksum.h
View file @
908d6d81
...
...
@@ -139,9 +139,9 @@ extern unsigned long csum_partial_copy_generic(const char *src, const char *dst,
int
*
src_err_ptr
,
int
*
dst_err_ptr
);
extern
unsigned
int
csum_partial_copy_from_user
(
const
char
*
src
,
char
*
dst
,
extern
unsigned
int
csum_partial_copy_from_user
(
const
char
__user
*
src
,
char
*
dst
,
int
len
,
unsigned
int
isum
,
int
*
errp
);
extern
unsigned
int
csum_partial_copy_to_user
(
const
char
*
src
,
char
*
dst
,
extern
unsigned
int
csum_partial_copy_to_user
(
const
char
*
src
,
char
__user
*
dst
,
int
len
,
unsigned
int
isum
,
int
*
errp
);
extern
unsigned
int
csum_partial_copy_nocheck
(
const
char
*
src
,
char
*
dst
,
int
len
,
unsigned
int
sum
);
...
...
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