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

Commit 634bd40a authored by James Hogan's avatar James Hogan Committed by Jonas Bonn
Browse files

openrisc: use kbuild.h instead of defining macros in asm-offset.c



This is modelled on commits such as the one below:

Commit fc1c3a00 ("sh: use kbuild.h
instead of defining macros in asm-offsets.c") introduced in v2.6.26.

Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
Signed-off-by: default avatarJonas Bonn <jonas@southpole.se>
parent d48444cf
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -34,15 +34,11 @@
#include <linux/mm.h>
#include <linux/io.h>
#include <linux/thread_info.h>
#include <linux/kbuild.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/processor.h>

#define DEFINE(sym, val) \
		asm volatile("\n->" #sym " %0 " #val : : "i" (val))

#define BLANK() asm volatile("\n->" : : )

int main(void)
{
	/* offsets into the task_struct */