File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 7
7
#include <linux/mm.h>
8
8
#include <linux/module.h>
9
9
#include <linux/irq.h>
10
+ #include <linux/stringify.h>
10
11
11
12
#include <asm/processor.h>
12
13
#include <asm/ptrace.h>
150
151
#define PRECISION_S 0
151
152
#define PRECISION_D 1
152
153
153
- #define STR (x ) XSTR(x)
154
- #define XSTR (x ) #x
155
-
156
154
#define DECLARE_UNPRIVILEGED_LOAD_FUNCTION (type , insn ) \
157
155
static inline type load_##type(const type *addr) \
158
156
{ \
@@ -207,9 +205,9 @@ static inline ulong get_insn(ulong mepc)
207
205
asm ("and %[tmp], %[addr], 2\n"
208
206
"bnez %[tmp], 1f\n"
209
207
#if defined(CONFIG_64BIT )
210
- STR (LWU ) " %[insn], (%[addr])\n"
208
+ __stringify (LWU ) " %[insn], (%[addr])\n"
211
209
#else
212
- STR (LW ) " %[insn], (%[addr])\n"
210
+ __stringify (LW ) " %[insn], (%[addr])\n"
213
211
#endif
214
212
"and %[tmp], %[insn], %[rvc_mask]\n"
215
213
"beq %[tmp], %[rvc_mask], 2f\n"
You can’t perform that action at this time.
0 commit comments