Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1615527 > unrolled thread

[PATCH] um: Include kbuild.h instead of duplicating its macros

Started byMatthias Kaehlcke <mka@chromium.org>
First post2017-04-03 22:00 +0200
Last post2017-04-03 22:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] um: Include kbuild.h instead of duplicating its macros Matthias Kaehlcke <mka@chromium.org> - 2017-04-03 22:00 +0200

#1615527 — [PATCH] um: Include kbuild.h instead of duplicating its macros

FromMatthias Kaehlcke <mka@chromium.org>
Date2017-04-03 22:00 +0200
Subject[PATCH] um: Include kbuild.h instead of duplicating its macros
Message-ID<tsgiS-2PU-23@gated-at.bofh.it>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
 arch/x86/um/shared/sysdep/kernel-offsets.h | 9 +--------
 1 file changed, 1 insertion(+), 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>
-- 
2.12.2.564.g063fe858b8-goog

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web