File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44#define __ASM_CSKY_CMPXCHG_H
55
66#ifdef CONFIG_SMP
7+ #include <linux/bug.h>
78#include <asm/barrier.h>
89
9- extern void __bad_xchg (void );
10-
1110#define __xchg_relaxed (new , ptr , size ) \
1211({ \
1312 __typeof__(ptr) __ptr = (ptr); \
@@ -46,7 +45,7 @@ extern void __bad_xchg(void);
4645 :); \
4746 break; \
4847 default: \
49- __bad_xchg (); \
48+ BUILD_BUG (); \
5049 } \
5150 __ret; \
5251})
@@ -76,7 +75,7 @@ extern void __bad_xchg(void);
7675 :); \
7776 break; \
7877 default: \
79- __bad_xchg (); \
78+ BUILD_BUG (); \
8079 } \
8180 __ret; \
8281})
@@ -107,7 +106,7 @@ extern void __bad_xchg(void);
107106 :); \
108107 break; \
109108 default: \
110- __bad_xchg (); \
109+ BUILD_BUG (); \
111110 } \
112111 __ret; \
113112})
@@ -139,7 +138,7 @@ extern void __bad_xchg(void);
139138 :); \
140139 break; \
141140 default: \
142- __bad_xchg (); \
141+ BUILD_BUG (); \
143142 } \
144143 __ret; \
145144})
You can’t perform that action at this time.
0 commit comments