summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-11-03 07:45:48 +0100
committerOhad Ben-Cohen <ohad@wizery.com>2011-11-08 08:28:27 +0100
commit816af3bb5022c1468b3d826c645ddc2cac45bc97 (patch)
tree1b2a6abc75c00366f71c820ae946f4bdce4d90d9 /include
parentLinux 3.2-rc1 (diff)
downloadlinux-816af3bb5022c1468b3d826c645ddc2cac45bc97.tar.xz
linux-816af3bb5022c1468b3d826c645ddc2cac45bc97.zip
hwspinlock: Don't return a value in __hwspin_unlock
Fix below build warning: CC arch/arm/mach-omap2/hwspinlock.o In file included from arch/arm/mach-omap2/hwspinlock.c:22: include/linux/hwspinlock.h: In function '__hwspin_unlock': include/linux/hwspinlock.h:121: warning: 'return' with a value, in function returning void Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/hwspinlock.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/hwspinlock.h b/include/linux/hwspinlock.h
index 08a2fee40659..aad6bd4b3efd 100644
--- a/include/linux/hwspinlock.h
+++ b/include/linux/hwspinlock.h
@@ -118,7 +118,6 @@ int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags)
static inline
void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags)
{
- return 0;
}
static inline int hwspin_lock_get_id(struct hwspinlock *hwlock)