Skip to content

Commit

Permalink
CRIS: 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: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
James Hogan authored and Jesper Nilsson committed Dec 20, 2012
1 parent f01af9f commit 8e6b4dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/cris/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <linux/kbuild.h>
#include <linux/sched.h>
#include <asm/thread_info.h>

Expand All @@ -7,11 +8,6 @@
* and format the required data.
*/

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

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

#if !defined(CONFIG_ETRAX_ARCH_V10) && !defined(CONFIG_ETRAX_ARCH_V32)
#error One of ARCH v10 and ARCH v32 must be true!
#endif
Expand Down

0 comments on commit 8e6b4dd

Please sign in to comment.