Commit 91b37b34 authored by Al Viro's avatar Al Viro Committed by Kleber Sacilotto de Souza

new helper: uaccess_kernel()

BugLink: https://bugs.launchpad.net/bugs/1810958

commit db68ce10 upstream.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
[only take the include/linux/uaccess.h portion - gregkh]
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent fd527084
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
#define __LINUX_UACCESS_H__ #define __LINUX_UACCESS_H__
#include <linux/sched.h> #include <linux/sched.h>
#define uaccess_kernel() segment_eq(get_fs(), KERNEL_DS)
#include <asm/uaccess.h> #include <asm/uaccess.h>
static __always_inline void pagefault_disabled_inc(void) static __always_inline void pagefault_disabled_inc(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment