summaryrefslogtreecommitdiffstats
path: root/arch/x86/um
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-04-03 21:54:58 +0200
committerRichard Weinberger <richard@nod.at>2017-05-03 22:36:56 +0200
commit601b7b9147455a4d8d80d04f0e5a1eb222301bbe (patch)
tree58200dc562cfa04df9114c99595e189f6bcf2f62 /arch/x86/um
parentum: Fix PTRACE_POKEUSER on x86_64 (diff)
downloadlinux-601b7b9147455a4d8d80d04f0e5a1eb222301bbe.tar.xz
linux-601b7b9147455a4d8d80d04f0e5a1eb222301bbe.zip
um: Include kbuild.h instead of duplicating its macros
Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um')
-rw-r--r--arch/x86/um/shared/sysdep/kernel-offsets.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/um/shared/sysdep/kernel-offsets.h b/arch/x86/um/shared/sysdep/kernel-offsets.h
index 46a9df99f3c5..7e1d35b6ad5c 100644
--- a/arch/x86/um/shared/sysdep/kernel-offsets.h
+++ b/arch/x86/um/shared/sysdep/kernel-offsets.h
@@ -2,16 +2,9 @@
#include <linux/sched.h>
#include <linux/elf.h>
#include <linux/crypto.h>
+#include <linux/kbuild.h>
#include <asm/mman.h>
-#define DEFINE(sym, val) \
- asm volatile("\n->" #sym " %0 " #val : : "i" (val))
-
-#define BLANK() asm volatile("\n->" : : )
-
-#define OFFSET(sym, str, mem) \
- DEFINE(sym, offsetof(struct str, mem));
-
void foo(void)
{
#include <common-offsets.h>