Subject: [PATCH 42/91] um: merge kernel_offsets_*.h
Signed-off-by Al Viro <[email protected]>
--- arch/um/sys-x86/shared/sysdep/kernel-offsets.h | 26 +++++++++++++++++---- arch/um/sys-x86/shared/sysdep/kernel-offsets_32.h | 21 ----------------- arch/um/sys-x86/shared/sysdep/kernel-offsets_64.h | 23 ------------------ 3 files changed, 21 insertions(+), 49 deletions(-) delete mode 100644 arch/um/sys-x86/shared/sysdep/kernel-offsets_32.h delete mode 100644 arch/um/sys-x86/shared/sysdep/kernel-offsets_64.h
arch/um/sys-x86/shared/sysdep/kernel-offsets.h +21 -5
@@ -1,5 +1,21 @@ -#ifdef __i386__ -#include "kernel-offsets_32.h" -#else -#include "kernel-offsets_64.h" -#endif +#include <linux/stddef.h> +#include <linux/sched.h> +#include <linux/elf.h> +#include <linux/crypto.h> +#include <asm/mman.h> + +#define DEFINE (sym, val) \ + asm volatile("\n->" #sym " %0 " #val : : "i" (val)) + +#define STR (x) #x +#define DEFINE_STR (sym, val) asm volatile("\n->" #sym " " STR(val) " " #val: : ) + +#define BLANK () asm volatile("\n->" : : ) + +#define OFFSET (sym, str, mem) \ + DEFINE(sym, offsetof(struct str, mem)); + +void foo (void ) +{ +#include <common-offsets.h> +}
arch/um/sys-x86/shared/sysdep/kernel-offsets_32.h deleted +0 -21
@@ -1,21 +0,0 @@ -#include <linux/stddef.h> -#include <linux/sched.h> -#include <linux/elf.h> -#include <linux/crypto.h> -#include <asm/mman.h> - -#define DEFINE (sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - -#define STR (x) #x -#define DEFINE_STR (sym, val) asm volatile("\n->" #sym " " STR(val) " " #val: : ) - -#define BLANK () asm volatile("\n->" : : ) - -#define OFFSET (sym, str, mem) \ - DEFINE(sym, offsetof(struct str, mem)); - -void foo (void ) -{ -#include <common-offsets.h> -}
arch/um/sys-x86/shared/sysdep/kernel-offsets_64.h deleted +0 -23
@@ -1,23 +0,0 @@ -#include <linux/stddef.h> -#include <linux/sched.h> -#include <linux/time.h> -#include <linux/elf.h> -#include <linux/crypto.h> -#include <asm/page.h> -#include <asm/mman.h> - -#define DEFINE (sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - -#define DEFINE_STR1 (x) #x -#define DEFINE_STR (sym, val) asm volatile("\n->" #sym " " DEFINE_STR1(val) " " #val: : ) - -#define BLANK () asm volatile("\n->" : : ) - -#define OFFSET (sym, str, mem) \ - DEFINE(sym, offsetof(struct str, mem)); - -void foo (void ) -{ -#include <common-offsets.h> -}
Signature · 1 line
1.7.2.5