Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
6dd9148b
Commit
6dd9148b
authored
12 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
unicore32: just use mmap_pgoff()...
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
91c2e0bc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/unicore32/kernel/sys.c
+1
-9
1 addition, 9 deletions
arch/unicore32/kernel/sys.c
with
1 addition
and
9 deletions
arch/unicore32/kernel/sys.c
+
1
−
9
View file @
6dd9148b
...
@@ -28,19 +28,11 @@
...
@@ -28,19 +28,11 @@
#include
<asm/syscalls.h>
#include
<asm/syscalls.h>
#include
<asm/cacheflush.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. */
/* Provide the actual syscall number to call mapping. */
#undef __SYSCALL
#undef __SYSCALL
#define __SYSCALL(nr, call) [nr] = (call),
#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> */
/* Note that we don't include <linux/unistd.h> but <asm/unistd.h> */
void
*
sys_call_table
[
__NR_syscalls
]
=
{
void
*
sys_call_table
[
__NR_syscalls
]
=
{
[
0
...
__NR_syscalls
-
1
]
=
sys_ni_syscall
,
[
0
...
__NR_syscalls
-
1
]
=
sys_ni_syscall
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment