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
0c41bbc8
Commit
0c41bbc8
authored
May 30, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: missing __user annotations noticed by stricter checks.
parent
1fbd4d92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
arch/ppc64/kernel/process.c
arch/ppc64/kernel/process.c
+3
-3
arch/ppc64/kernel/time.c
arch/ppc64/kernel/time.c
+2
-2
No files found.
arch/ppc64/kernel/process.c
View file @
0c41bbc8
...
...
@@ -332,8 +332,8 @@ void start_thread(struct pt_regs *regs, unsigned long fdptr, unsigned long sp)
* entry is the TOC value we need to use.
*/
set_fs
(
USER_DS
);
__get_user
(
entry
,
(
unsigned
long
*
)
fdptr
);
__get_user
(
toc
,
(
unsigned
long
*
)
fdptr
+
1
);
__get_user
(
entry
,
(
unsigned
long
__user
*
)
fdptr
);
__get_user
(
toc
,
(
unsigned
long
__user
*
)
fdptr
+
1
);
/* Check whether the e_entry function descriptor entries
* need to be relocated before we can use them.
...
...
@@ -386,7 +386,7 @@ int get_fpexc_mode(struct task_struct *tsk, unsigned long adr)
unsigned
int
val
;
val
=
__unpack_fe01
(
tsk
->
thread
.
fpexc_mode
);
return
put_user
(
val
,
(
unsigned
int
*
)
adr
);
return
put_user
(
val
,
(
unsigned
int
__user
*
)
adr
);
}
int
sys_clone
(
unsigned
long
clone_flags
,
unsigned
long
p2
,
unsigned
long
p3
,
...
...
arch/ppc64/kernel/time.c
View file @
0c41bbc8
...
...
@@ -430,7 +430,7 @@ EXPORT_SYMBOL(do_settimeofday);
* fields itself. This way, the fields which are used for
* do_settimeofday get updated too.
*/
long
ppc64_sys32_stime
(
int
*
tptr
)
long
ppc64_sys32_stime
(
int
__user
*
tptr
)
{
int
value
;
struct
timespec
myTimeval
;
...
...
@@ -455,7 +455,7 @@ long ppc64_sys32_stime(int* tptr)
* fields itself. This way, the fields which are used for
* do_settimeofday get updated too.
*/
long
ppc64_sys_stime
(
long
*
tptr
)
long
ppc64_sys_stime
(
long
__user
*
tptr
)
{
long
value
;
struct
timespec
myTimeval
;
...
...
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