File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 4
4
#define __ASM_CSKY_CMPXCHG_H
5
5
6
6
#ifdef CONFIG_SMP
7
+ #include <linux/bug.h>
7
8
#include <asm/barrier.h>
8
9
9
- extern void __bad_xchg (void );
10
-
11
10
#define __xchg_relaxed (new , ptr , size ) \
12
11
({ \
13
12
__typeof__(ptr) __ptr = (ptr); \
@@ -46,7 +45,7 @@ extern void __bad_xchg(void);
46
45
:); \
47
46
break; \
48
47
default: \
49
- __bad_xchg (); \
48
+ BUILD_BUG (); \
50
49
} \
51
50
__ret; \
52
51
})
@@ -76,7 +75,7 @@ extern void __bad_xchg(void);
76
75
:); \
77
76
break; \
78
77
default: \
79
- __bad_xchg (); \
78
+ BUILD_BUG (); \
80
79
} \
81
80
__ret; \
82
81
})
@@ -107,7 +106,7 @@ extern void __bad_xchg(void);
107
106
:); \
108
107
break; \
109
108
default: \
110
- __bad_xchg (); \
109
+ BUILD_BUG (); \
111
110
} \
112
111
__ret; \
113
112
})
@@ -139,7 +138,7 @@ extern void __bad_xchg(void);
139
138
:); \
140
139
break; \
141
140
default: \
142
- __bad_xchg (); \
141
+ BUILD_BUG (); \
143
142
} \
144
143
__ret; \
145
144
})
You can’t perform that action at this time.
0 commit comments