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
6dd9148b
Commit
6dd9148b
authored
Mar 05, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unicore32: just use mmap_pgoff()...
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
91c2e0bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
arch/unicore32/kernel/sys.c
arch/unicore32/kernel/sys.c
+1
-9
No files found.
arch/unicore32/kernel/sys.c
View file @
6dd9148b
...
...
@@ -28,19 +28,11 @@
#include <asm/syscalls.h>
#include <asm/cacheflush.h>
/* Note: used by the compat code even in 64-bit Linux. */
SYSCALL_DEFINE6
(
mmap2
,
unsigned
long
,
addr
,
unsigned
long
,
len
,
unsigned
long
,
prot
,
unsigned
long
,
flags
,
unsigned
long
,
fd
,
unsigned
long
,
off_4k
)
{
return
sys_mmap_pgoff
(
addr
,
len
,
prot
,
flags
,
fd
,
off_4k
);
}
/* Provide the actual syscall number to call mapping. */
#undef __SYSCALL
#define __SYSCALL(nr, call) [nr] = (call),
#define sys_mmap2 sys_mmap_pgoff
/* Note that we don't include <linux/unistd.h> but <asm/unistd.h> */
void
*
sys_call_table
[
__NR_syscalls
]
=
{
[
0
...
__NR_syscalls
-
1
]
=
sys_ni_syscall
,
...
...
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