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
86944ee1
Commit
86944ee1
authored
Mar 28, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c6x: switch to RAW_COPY_USER
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
dcecd936
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
arch/c6x/Kconfig
arch/c6x/Kconfig
+1
-0
arch/c6x/include/asm/uaccess.h
arch/c6x/include/asm/uaccess.h
+6
-6
No files found.
arch/c6x/Kconfig
View file @
86944ee1
...
...
@@ -18,6 +18,7 @@ config C6X
select GENERIC_CLOCKEVENTS
select MODULES_USE_ELF_RELA
select ARCH_NO_COHERENT_DMA_MMAP
select ARCH_HAS_RAW_COPY_USER
config MMU
def_bool n
...
...
arch/c6x/include/asm/uaccess.h
View file @
86944ee1
...
...
@@ -14,12 +14,10 @@
#include <linux/string.h>
/*
* __copy_from_user/copy_to_user are based on ones in asm-generic/uaccess.h
*
* C6X supports unaligned 32 and 64 bit loads and stores.
*/
static
inline
__must_check
long
__copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
n
)
static
inline
__must_check
unsigned
long
raw_copy_from_user
(
void
*
to
,
const
void
__user
*
from
,
unsigned
long
n
)
{
u32
tmp32
;
u64
tmp64
;
...
...
@@ -54,8 +52,8 @@ static inline __must_check long __copy_from_user(void *to,
return
0
;
}
static
inline
__must_check
long
__copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
n
)
static
inline
__must_check
unsigned
long
raw_copy_to_user
(
void
__user
*
to
,
const
void
*
from
,
unsigned
long
n
)
{
u32
tmp32
;
u64
tmp64
;
...
...
@@ -89,6 +87,8 @@ static inline __must_check long __copy_to_user(void __user *to,
memcpy
((
void
__force
*
)
to
,
from
,
n
);
return
0
;
}
#define INLINE_COPY_FROM_USER
#define INLINE_COPY_TO_USER
extern
int
_access_ok
(
unsigned
long
addr
,
unsigned
long
size
);
#ifdef CONFIG_ACCESS_CHECK
...
...
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