All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwspinlock: Don't return a value in __hwspin_unlock
@ 2011-11-03  6:45 Axel Lin
  2011-11-03  7:10 ` Ohad Ben-Cohen
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-11-03  6:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ohad Ben-Cohen

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>
---
 include/linux/hwspinlock.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/include/linux/hwspinlock.h b/include/linux/hwspinlock.h
index 08a2fee..aad6bd4 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)
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwspinlock: Don't return a value in __hwspin_unlock
  2011-11-03  6:45 [PATCH] hwspinlock: Don't return a value in __hwspin_unlock Axel Lin
@ 2011-11-03  7:10 ` Ohad Ben-Cohen
  0 siblings, 0 replies; 2+ messages in thread
From: Ohad Ben-Cohen @ 2011-11-03  7:10 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel

On Thu, Nov 3, 2011 at 8:45 AM, Axel Lin <axel.lin@gmail.com> wrote:
> Fix below build warning:

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-03  7:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-03  6:45 [PATCH] hwspinlock: Don't return a value in __hwspin_unlock Axel Lin
2011-11-03  7:10 ` Ohad Ben-Cohen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.