Skip to content

Commit

Permalink
hwspinlock: Don't return a value in __hwspin_unlock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Ohad Ben-Cohen committed Nov 8, 2011
1 parent 1ea6b8f commit 816af3b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/hwspinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 816af3b

Please sign in to comment.