diff options
Diffstat (limited to 'arch/tile/include/asm/spinlock_64.h')
-rw-r--r-- | arch/tile/include/asm/spinlock_64.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/include/asm/spinlock_64.h b/arch/tile/include/asm/spinlock_64.h index 5f8b6a095fd8..9a12b9c7e5d3 100644 --- a/arch/tile/include/asm/spinlock_64.h +++ b/arch/tile/include/asm/spinlock_64.h | |||
@@ -27,7 +27,7 @@ | |||
27 | * Return the "current" portion of a ticket lock value, | 27 | * Return the "current" portion of a ticket lock value, |
28 | * i.e. the number that currently owns the lock. | 28 | * i.e. the number that currently owns the lock. |
29 | */ | 29 | */ |
30 | static inline int arch_spin_current(u32 val) | 30 | static inline u32 arch_spin_current(u32 val) |
31 | { | 31 | { |
32 | return val >> __ARCH_SPIN_CURRENT_SHIFT; | 32 | return val >> __ARCH_SPIN_CURRENT_SHIFT; |
33 | } | 33 | } |
@@ -36,7 +36,7 @@ static inline int arch_spin_current(u32 val) | |||
36 | * Return the "next" portion of a ticket lock value, | 36 | * Return the "next" portion of a ticket lock value, |
37 | * i.e. the number that the next task to try to acquire the lock will get. | 37 | * i.e. the number that the next task to try to acquire the lock will get. |
38 | */ | 38 | */ |
39 | static inline int arch_spin_next(u32 val) | 39 | static inline u32 arch_spin_next(u32 val) |
40 | { | 40 | { |
41 | return val & __ARCH_SPIN_NEXT_MASK; | 41 | return val & __ARCH_SPIN_NEXT_MASK; |
42 | } | 42 | } |