summaryrefslogtreecommitdiff
path: root/arch/tile/include/asm/spinlock_64.h
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-08-09 20:53:50 (GMT)
committerChris Metcalf <cmetcalf@tilera.com>2013-08-30 15:56:50 (GMT)
commit6fbeee29a2b87574527897c3ded1f92e236518c7 (patch)
treef42ed3f1b9e21f21213b32d0a52504098b55a324 /arch/tile/include/asm/spinlock_64.h
parente56059f2d3b8a053c965a51587a4a3328ac00a47 (diff)
downloadlinux-6fbeee29a2b87574527897c3ded1f92e236518c7.tar.xz
tile: fix some -Wsign-compare warnings
Normally the build doesn't include these warnings, but at one point I built with -Wsign-compare, and noticed a few things that are technically bugs. This change fixes those things. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/include/asm/spinlock_64.h')
-rw-r--r--arch/tile/include/asm/spinlock_64.h4
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 5f8b6a0..9a12b9c 100644
--- a/arch/tile/include/asm/spinlock_64.h
+++ b/arch/tile/include/asm/spinlock_64.h
@@ -27,7 +27,7 @@
* Return the "current" portion of a ticket lock value,
* i.e. the number that currently owns the lock.
*/
-static inline int arch_spin_current(u32 val)
+static inline u32 arch_spin_current(u32 val)
{
return val >> __ARCH_SPIN_CURRENT_SHIFT;
}
@@ -36,7 +36,7 @@ static inline int arch_spin_current(u32 val)
* Return the "next" portion of a ticket lock value,
* i.e. the number that the next task to try to acquire the lock will get.
*/
-static inline int arch_spin_next(u32 val)
+static inline u32 arch_spin_next(u32 val)
{
return val & __ARCH_SPIN_NEXT_MASK;
}