Skip to content

Commit

Permalink
um: Include kbuild.h instead of duplicating its macros
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Matthias Kaehlcke authored and Richard Weinberger committed May 3, 2017
1 parent 9abc74a commit 601b7b9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions arch/x86/um/shared/sysdep/kernel-offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 601b7b9

Please sign in to comment.