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
c5ddd202
Commit
c5ddd202
authored
Mar 19, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch compat_sys_sysctl to COMPAT_SYSCALL_DEFINE
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6dd9148b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/compat_wrapper.S
+0
-4
arch/s390/kernel/syscalls.S
arch/s390/kernel/syscalls.S
+1
-1
kernel/sysctl_binary.c
kernel/sysctl_binary.c
+2
-2
No files found.
arch/s390/kernel/compat_wrapper.S
View file @
c5ddd202
...
@@ -793,10 +793,6 @@ ENTRY(sys32_stime_wrapper)
...
@@ -793,10 +793,6 @@ ENTRY(sys32_stime_wrapper)
llgtr
%
r2
,%
r2
#
long
*
llgtr
%
r2
,%
r2
#
long
*
jg
compat_sys_stime
#
branch
to
system
call
jg
compat_sys_stime
#
branch
to
system
call
ENTRY
(
sys32_sysctl_wrapper
)
llgtr
%
r2
,%
r2
#
struct
compat_sysctl_args
*
jg
compat_sys_sysctl
ENTRY
(
sys32_fstat64_wrapper
)
ENTRY
(
sys32_fstat64_wrapper
)
llgfr
%
r2
,%
r2
#
unsigned
long
llgfr
%
r2
,%
r2
#
unsigned
long
llgtr
%
r3
,%
r3
#
struct
stat64
*
llgtr
%
r3
,%
r3
#
struct
stat64
*
...
...
arch/s390/kernel/syscalls.S
View file @
c5ddd202
...
@@ -157,7 +157,7 @@ SYSCALL(sys_readv,sys_readv,compat_sys_readv_wrapper) /* 145 */
...
@@ -157,7 +157,7 @@ SYSCALL(sys_readv,sys_readv,compat_sys_readv_wrapper) /* 145 */
SYSCALL
(
sys_writev
,
sys_writev
,
compat_sys_writev_wrapper
)
SYSCALL
(
sys_writev
,
sys_writev
,
compat_sys_writev_wrapper
)
SYSCALL
(
sys_getsid
,
sys_getsid
,
sys32_getsid_wrapper
)
SYSCALL
(
sys_getsid
,
sys_getsid
,
sys32_getsid_wrapper
)
SYSCALL
(
sys_fdatasync
,
sys_fdatasync
,
sys32_fdatasync_wrapper
)
SYSCALL
(
sys_fdatasync
,
sys_fdatasync
,
sys32_fdatasync_wrapper
)
SYSCALL
(
sys_sysctl
,
sys_sysctl
,
sys32_sysctl_wrapper
)
SYSCALL
(
sys_sysctl
,
sys_sysctl
,
compat_sys_sysctl
)
SYSCALL
(
sys_mlock
,
sys_mlock
,
sys32_mlock_wrapper
)
/
*
150
*/
SYSCALL
(
sys_mlock
,
sys_mlock
,
sys32_mlock_wrapper
)
/
*
150
*/
SYSCALL
(
sys_munlock
,
sys_munlock
,
sys32_munlock_wrapper
)
SYSCALL
(
sys_munlock
,
sys_munlock
,
sys32_munlock_wrapper
)
SYSCALL
(
sys_mlockall
,
sys_mlockall
,
sys32_mlockall_wrapper
)
SYSCALL
(
sys_mlockall
,
sys_mlockall
,
sys32_mlockall_wrapper
)
...
...
kernel/sysctl_binary.c
View file @
c5ddd202
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include <linux/netdevice.h>
#include <linux/netdevice.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/compat.h>
#ifdef CONFIG_SYSCTL_SYSCALL
#ifdef CONFIG_SYSCTL_SYSCALL
...
@@ -1447,7 +1448,6 @@ SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args)
...
@@ -1447,7 +1448,6 @@ SYSCALL_DEFINE1(sysctl, struct __sysctl_args __user *, args)
#ifdef CONFIG_COMPAT
#ifdef CONFIG_COMPAT
#include <asm/compat.h>
struct
compat_sysctl_args
{
struct
compat_sysctl_args
{
compat_uptr_t
name
;
compat_uptr_t
name
;
...
@@ -1459,7 +1459,7 @@ struct compat_sysctl_args {
...
@@ -1459,7 +1459,7 @@ struct compat_sysctl_args {
compat_ulong_t
__unused
[
4
];
compat_ulong_t
__unused
[
4
];
};
};
asmlinkage
long
compat_sys_sysctl
(
struct
compat_sysctl_args
__user
*
args
)
COMPAT_SYSCALL_DEFINE1
(
sysctl
,
struct
compat_sysctl_args
__user
*
,
args
)
{
{
struct
compat_sysctl_args
tmp
;
struct
compat_sysctl_args
tmp
;
compat_size_t
__user
*
compat_oldlenp
;
compat_size_t
__user
*
compat_oldlenp
;
...
...
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