mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
consolidate compat lookup_dcookie()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
76b021d053
commit
d5dc77bfee
18 changed files with 20 additions and 60 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <linux/dcookies.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/path.h>
|
||||
#include <linux/compat.h>
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
/* The dcookies are allocated from a kmem_cache and
|
||||
|
|
@ -202,6 +203,17 @@ out:
|
|||
return err;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_COMPAT
|
||||
COMPAT_SYSCALL_DEFINE4(lookup_dcookie, u32, w0, u32, w1, char __user *, buf, size_t, len)
|
||||
{
|
||||
#ifdef __BIG_ENDIAN
|
||||
return sys_lookup_dcookie(((u64)w0 << 32) | w1, buf, len);
|
||||
#else
|
||||
return sys_lookup_dcookie(((u64)w1 << 32) | w0, buf, len);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static int dcookie_init(void)
|
||||
{
|
||||
struct list_head * d;
|
||||
|
|
|
|||
Loading…
Reference in a new issue