Commit | Line | Data |
---|---|---|
bcd94e19 MW |
1 | Fix the declarations of inlined atomic ops for mips. |
2 | ||
3 | This patch was copied from Debian. | |
4 | ||
5 | --- alsa-lib/include/iatomic.h.orig 2013-05-21 04:48:28.000000000 -0400 | |
6 | +++ alsa-lib/include/iatomic.h 2013-10-29 13:01:37.055995968 -0400 | |
7 | @@ -720,7 +720,7 @@ | |
8 | * Atomically adds @i to @v. Note that the guaranteed useful range | |
9 | * of an atomic_t is only 24 bits. | |
10 | */ | |
11 | -extern __inline__ void atomic_add(int i, atomic_t * v) | |
12 | +static __inline__ void atomic_add(int i, atomic_t * v) | |
13 | { | |
14 | unsigned long temp; | |
15 | ||
16 | @@ -744,7 +744,7 @@ | |
17 | * Atomically subtracts @i from @v. Note that the guaranteed | |
18 | * useful range of an atomic_t is only 24 bits. | |
19 | */ | |
20 | -extern __inline__ void atomic_sub(int i, atomic_t * v) | |
21 | +static __inline__ void atomic_sub(int i, atomic_t * v) | |
22 | { | |
23 | unsigned long temp; | |
24 | ||
25 | @@ -763,7 +763,7 @@ | |
26 | /* | |
27 | * Same as above, but return the result value | |
28 | */ | |
29 | -extern __inline__ int atomic_add_return(int i, atomic_t * v) | |
30 | +static __inline__ int atomic_add_return(int i, atomic_t * v) | |
31 | { | |
32 | unsigned long temp, result; | |
33 | ||
34 | @@ -784,7 +784,7 @@ | |
35 | return result; | |
36 | } | |
37 | ||
38 | -extern __inline__ int atomic_sub_return(int i, atomic_t * v) | |
39 | +static __inline__ int atomic_sub_return(int i, atomic_t * v) | |
40 | { | |
41 | unsigned long temp, result; | |
42 |