diff options
Diffstat (limited to 'include/asm-frv/system.h')
-rw-r--r-- | include/asm-frv/system.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-frv/system.h b/include/asm-frv/system.h index 59be5443a68f..b400cea81487 100644 --- a/include/asm-frv/system.h +++ b/include/asm-frv/system.h | |||
@@ -14,6 +14,7 @@ | |||
14 | 14 | ||
15 | #include <linux/types.h> | 15 | #include <linux/types.h> |
16 | #include <linux/linkage.h> | 16 | #include <linux/linkage.h> |
17 | #include <linux/kernel.h> | ||
17 | 18 | ||
18 | struct thread_struct; | 19 | struct thread_struct; |
19 | 20 | ||
@@ -276,7 +277,7 @@ static inline unsigned long __cmpxchg_local(volatile void *ptr, | |||
276 | { | 277 | { |
277 | switch (size) { | 278 | switch (size) { |
278 | case 4: | 279 | case 4: |
279 | return cmpxchg(ptr, old, new); | 280 | return cmpxchg((unsigned long *)ptr, old, new); |
280 | default: | 281 | default: |
281 | return __cmpxchg_local_generic(ptr, old, new, size); | 282 | return __cmpxchg_local_generic(ptr, old, new, size); |
282 | } | 283 | } |