Skip to content

Commit

Permalink
openrisc: use kbuild.h instead of defining macros in asm-offset.c
Browse files Browse the repository at this point in the history
This is modelled on commits such as the one below:

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

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Jonas Bonn <jonas@southpole.se>
  • Loading branch information
James Hogan authored and Jonas Bonn committed Oct 25, 2012
1 parent d48444c commit 634bd40
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/openrisc/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 634bd40

Please sign in to comment.