Skip to content

Commit 8e6b4dd

Browse files
James HoganJesper Nilsson
authored andcommitted
CRIS: use kbuild.h instead of defining macros in asm-offset.c
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>
1 parent f01af9f commit 8e6b4dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/cris/kernel/asm-offsets.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <linux/kbuild.h>
12
#include <linux/sched.h>
23
#include <asm/thread_info.h>
34

@@ -7,11 +8,6 @@
78
* and format the required data.
89
*/
910

10-
#define DEFINE(sym, val) \
11-
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
12-
13-
#define BLANK() asm volatile("\n->" : : )
14-
1511
#if !defined(CONFIG_ETRAX_ARCH_V10) && !defined(CONFIG_ETRAX_ARCH_V32)
1612
#error One of ARCH v10 and ARCH v32 must be true!
1713
#endif

0 commit comments

Comments
 (0)