public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] BUILD FIX:hwspinlock: do not return any value from void funtion
@ 2011-11-07 12:58 Vaibhav Hiremath
  2011-11-07 13:07 ` Igor Grinberg
  2011-11-07 13:55 ` Ohad Ben-Cohen
  0 siblings, 2 replies; 7+ messages in thread
From: Vaibhav Hiremath @ 2011-11-07 12:58 UTC (permalink / raw)
  To: linux-omap; +Cc: tony, ohad, Vaibhav Hiremath

Fixes below compilation error -

  CC      arch/arm/mach-omap2/hwspinlock.o
  cc1: warnings being treated as errors
  In file included from arch/arm/mach-omap2/hwspinlock.c:22:0:
  include/linux/hwspinlock.h: In function '__hwspin_unlock':
  include/linux/hwspinlock.h:121:2: error: 'return' with a value, in function
  returning void
  make[1]: *** [arch/arm/mach-omap2/hwspinlock.o] Error 1
  make: *** [arch/arm/mach-omap2] Error 2

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
---
 include/linux/hwspinlock.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/hwspinlock.h b/include/linux/hwspinlock.h
index 08a2fee..192710a 100644
--- a/include/linux/hwspinlock.h
+++ b/include/linux/hwspinlock.h
@@ -118,7 +118,7 @@ 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;
+	return;
 }

 static inline int hwspin_lock_get_id(struct hwspinlock *hwlock)
--
1.7.0.4


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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 12:58 [PATCH] BUILD FIX:hwspinlock: do not return any value from void funtion Vaibhav Hiremath
2011-11-07 13:07 ` Igor Grinberg
2011-11-07 13:40   ` Hiremath, Vaibhav
2011-11-07 13:55 ` Ohad Ben-Cohen
2011-11-07 13:58   ` Hiremath, Vaibhav
2011-11-07 14:01     ` Ohad Ben-Cohen
2011-11-07 14:03   ` Hiremath, Vaibhav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox