Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 601b7b91 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Richard Weinberger
Browse files

um: Include kbuild.h instead of duplicating its macros

parent 9abc74a2
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -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>