Skip to content

Commit 601b7b9

Browse files
Matthias Kaehlckerichardweinberger
authored andcommitted
um: Include kbuild.h instead of duplicating its macros
Signed-off-by: Matthias Kaehlcke <[email protected]> Reviewed-by: Masahiro Yamada <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 9abc74a commit 601b7b9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

arch/x86/um/shared/sysdep/kernel-offsets.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@
22
#include <linux/sched.h>
33
#include <linux/elf.h>
44
#include <linux/crypto.h>
5+
#include <linux/kbuild.h>
56
#include <asm/mman.h>
67

7-
#define DEFINE(sym, val) \
8-
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
9-
10-
#define BLANK() asm volatile("\n->" : : )
11-
12-
#define OFFSET(sym, str, mem) \
13-
DEFINE(sym, offsetof(struct str, mem));
14-
158
void foo(void)
169
{
1710
#include <common-offsets.h>

0 commit comments

Comments
 (0)