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
be56f07f
Commit
be56f07f
authored
Dec 07, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_ppc64_work
parents
05d43c5f
84f2d288
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
arch/ppc64/kernel/ppc_ksyms.c
arch/ppc64/kernel/ppc_ksyms.c
+2
-0
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+16
-14
No files found.
arch/ppc64/kernel/ppc_ksyms.c
View file @
be56f07f
...
@@ -246,5 +246,7 @@ EXPORT_SYMBOL(debugger_fault_handler);
...
@@ -246,5 +246,7 @@ EXPORT_SYMBOL(debugger_fault_handler);
EXPORT_SYMBOL
(
tb_ticks_per_usec
);
EXPORT_SYMBOL
(
tb_ticks_per_usec
);
#ifdef CONFIG_PROFILING
EXPORT_SYMBOL_GPL
(
register_profile_notifier
);
EXPORT_SYMBOL_GPL
(
register_profile_notifier
);
EXPORT_SYMBOL_GPL
(
unregister_profile_notifier
);
EXPORT_SYMBOL_GPL
(
unregister_profile_notifier
);
#endif
arch/ppc64/kernel/sys_ppc32.c
View file @
be56f07f
...
@@ -208,40 +208,42 @@ static long do_readv_writev32(int type, struct file *file,
...
@@ -208,40 +208,42 @@ static long do_readv_writev32(int type, struct file *file,
asmlinkage
long
sys32_readv
(
int
fd
,
struct
iovec32
*
vector
,
u32
count
)
asmlinkage
long
sys32_readv
(
int
fd
,
struct
iovec32
*
vector
,
u32
count
)
{
{
struct
file
*
file
;
struct
file
*
file
;
int
ret
;
int
ret
=
-
EBADF
;
file
=
fget
(
fd
);
file
=
fget
(
fd
);
if
(
!
file
)
if
(
!
file
||
!
(
file
->
f_mode
&
FMODE_READ
)
)
return
-
EBADF
;
goto
out
;
if
(
!
(
file
->
f_mode
&
FMODE_READ
))
ret
=
-
EINVAL
;
return
-
EBADF
;
if
(
!
file
->
f_op
||
(
!
file
->
f_op
->
readv
&&
!
file
->
f_op
->
read
))
if
(
!
file
->
f_op
||
(
!
file
->
f_op
->
readv
&&
!
file
->
f_op
->
read
))
return
-
EINVAL
;
goto
out
;
ret
=
do_readv_writev32
(
READ
,
file
,
vector
,
count
);
ret
=
do_readv_writev32
(
READ
,
file
,
vector
,
count
);
fput
(
file
);
out:
if
(
file
)
fput
(
file
);
return
ret
;
return
ret
;
}
}
asmlinkage
long
sys32_writev
(
int
fd
,
struct
iovec32
*
vector
,
u32
count
)
asmlinkage
long
sys32_writev
(
int
fd
,
struct
iovec32
*
vector
,
u32
count
)
{
{
struct
file
*
file
;
struct
file
*
file
;
int
ret
;
int
ret
=
-
EBADF
;
file
=
fget
(
fd
);
file
=
fget
(
fd
);
if
(
!
file
)
if
(
!
file
||
!
(
file
->
f_mode
&
FMODE_WRITE
)
)
return
-
EBADF
;
goto
out
;
if
(
!
(
file
->
f_mode
&
FMODE_WRITE
))
ret
=
-
EINVAL
;
return
-
EBADF
;
if
(
!
file
->
f_op
||
(
!
file
->
f_op
->
writev
&&
!
file
->
f_op
->
write
))
if
(
!
file
->
f_op
||
(
!
file
->
f_op
->
writev
&&
!
file
->
f_op
->
write
))
return
-
EINVAL
;
goto
out
;
ret
=
do_readv_writev32
(
WRITE
,
file
,
vector
,
count
);
ret
=
do_readv_writev32
(
WRITE
,
file
,
vector
,
count
);
fput
(
file
);
out:
if
(
file
)
fput
(
file
);
return
ret
;
return
ret
;
}
}
...
...
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