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
8ccb0046
Commit
8ccb0046
authored
Mar 19, 2018
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert compat sync_file_range() to COMPAT_SYSCALL_DEFINE
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a0d32ad3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
arch/sparc/kernel/sys_sparc32.c
arch/sparc/kernel/sys_sparc32.c
+4
-3
arch/sparc/kernel/systbls.h
arch/sparc/kernel/systbls.h
+3
-3
arch/sparc/kernel/systbls_64.S
arch/sparc/kernel/systbls_64.S
+1
-1
No files found.
arch/sparc/kernel/sys_sparc32.c
View file @
8ccb0046
...
...
@@ -233,11 +233,12 @@ COMPAT_SYSCALL_DEFINE6(fadvise64_64, int, fd, u32, offhi, u32, offlo,
advice
);
}
long
sys32_sync_file_range
(
unsigned
int
fd
,
unsigned
long
off_high
,
unsigned
long
off_low
,
unsigned
long
nb_high
,
unsigned
long
nb_low
,
unsigned
int
flags
)
COMPAT_SYSCALL_DEFINE6
(
sync_file_range
,
unsigned
int
,
fd
,
u32
,
off_high
,
u32
,
off_low
,
u32
,
nb_high
,
u32
,
nb_low
,
unsigned
int
,
flags
)
{
return
sys_sync_file_range
(
fd
,
(
off_high
<<
32
)
|
off_low
,
(
nb_high
<<
32
)
|
nb_low
,
(
(
u64
)
off_high
<<
32
)
|
off_low
,
(
(
u64
)
nb_high
<<
32
)
|
nb_low
,
flags
);
}
...
...
arch/sparc/kernel/systbls.h
View file @
8ccb0046
...
...
@@ -87,9 +87,9 @@ long compat_sys_fadvise64_64(int fd,
unsigned
offhi
,
unsigned
offlo
,
unsigned
lenhi
,
unsigned
lenlo
,
int
advice
);
long
sys32
_sync_file_range
(
unsigned
int
fd
,
unsigned
long
off_high
,
unsigned
long
off_low
,
unsigned
long
nb_high
,
unsigned
long
nb_low
,
long
compat_sys
_sync_file_range
(
unsigned
int
fd
,
unsigned
off_high
,
unsigned
off_low
,
unsigned
nb_high
,
unsigned
nb_low
,
unsigned
int
flags
);
asmlinkage
long
compat_sys_fallocate
(
int
fd
,
int
mode
,
u32
offhi
,
u32
offlo
,
u32
lenhi
,
u32
lenlo
);
...
...
arch/sparc/kernel/systbls_64.S
View file @
8ccb0046
...
...
@@ -70,7 +70,7 @@ sys_call_table32:
/*
240
*/
.
word
sys_munlockall
,
sys_sched_setparam
,
sys_sched_getparam
,
sys_sched_setscheduler
,
sys_sched_getscheduler
.
word
sys_sched_yield
,
sys_sched_get_priority_max
,
sys_sched_get_priority_min
,
compat_sys_sched_rr_get_interval
,
compat_sys_nanosleep
/*
250
*/
.
word
sys_mremap
,
compat_sys_sysctl
,
sys_getsid
,
sys_fdatasync
,
sys_nis_syscall
.
word
sys32
_sync_file_range
,
compat_sys_clock_settime
,
compat_sys_clock_gettime
,
compat_sys_clock_getres
,
compat_sys_clock_nanosleep
.
word
compat_sys
_sync_file_range
,
compat_sys_clock_settime
,
compat_sys_clock_gettime
,
compat_sys_clock_getres
,
compat_sys_clock_nanosleep
/*
260
*/
.
word
compat_sys_sched_getaffinity
,
compat_sys_sched_setaffinity
,
compat_sys_timer_settime
,
compat_sys_timer_gettime
,
sys_timer_getoverrun
.
word
sys_timer_delete
,
compat_sys_timer_create
,
sys_ni_syscall
,
compat_sys_io_setup
,
sys_io_destroy
/*
270
*/
.
word
compat_sys_io_submit
,
sys_io_cancel
,
compat_sys_io_getevents
,
compat_sys_mq_open
,
sys_mq_unlink
...
...
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