* [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
* Re: [PATCH] BUILD FIX:hwspinlock: do not return any value from void funtion
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
1 sibling, 1 reply; 7+ messages in thread
From: Igor Grinberg @ 2011-11-07 13:07 UTC (permalink / raw)
To: Vaibhav Hiremath; +Cc: linux-omap, tony, ohad
Hi Vaibhav,
On 11/07/11 14:58, Vaibhav Hiremath wrote:
> 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;
Isn't it better to just remove this line?
> }
>
> static inline int hwspin_lock_get_id(struct hwspinlock *hwlock)
--
Regards,
Igor.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] BUILD FIX:hwspinlock: do not return any value from void funtion
2011-11-07 13:07 ` Igor Grinberg
@ 2011-11-07 13:40 ` Hiremath, Vaibhav
0 siblings, 0 replies; 7+ messages in thread
From: Hiremath, Vaibhav @ 2011-11-07 13:40 UTC (permalink / raw)
To: Igor Grinberg
Cc: linux-omap@vger.kernel.org, tony@atomide.com, ohad@wizery.com
> -----Original Message-----
> From: Igor Grinberg [mailto:grinberg@compulab.co.il]
> Sent: Monday, November 07, 2011 6:37 PM
> To: Hiremath, Vaibhav
> Cc: linux-omap@vger.kernel.org; tony@atomide.com; ohad@wizery.com
> Subject: Re: [PATCH] BUILD FIX:hwspinlock: do not return any value from
> void funtion
>
> Hi Vaibhav,
>
> On 11/07/11 14:58, Vaibhav Hiremath wrote:
> > 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;
>
> Isn't it better to just remove this line?
>
[Hiremath, Vaibhav] Yeup, we can do that... Submitting it again.
Thanks,
Vaibhav
> > }
> >
> > static inline int hwspin_lock_get_id(struct hwspinlock *hwlock)
>
>
> --
> Regards,
> Igor.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] BUILD FIX:hwspinlock: do not return any value from void funtion
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:55 ` Ohad Ben-Cohen
2011-11-07 13:58 ` Hiremath, Vaibhav
2011-11-07 14:03 ` Hiremath, Vaibhav
1 sibling, 2 replies; 7+ messages in thread
From: Ohad Ben-Cohen @ 2011-11-07 13:55 UTC (permalink / raw)
To: Vaibhav Hiremath; +Cc: linux-omap, tony
On Mon, Nov 7, 2011 at 2:58 PM, Vaibhav Hiremath <hvaibhav@ti.com> wrote:
> Fixes below compilation error -
Thanks. We already have this fix queued up though (reported by Axel awhile ago).
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] BUILD FIX:hwspinlock: do not return any value from void funtion
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
1 sibling, 1 reply; 7+ messages in thread
From: Hiremath, Vaibhav @ 2011-11-07 13:58 UTC (permalink / raw)
To: Ohad Ben-Cohen; +Cc: linux-omap@vger.kernel.org, tony@atomide.com
> -----Original Message-----
> From: Ohad Ben-Cohen [mailto:ohad@wizery.com]
> Sent: Monday, November 07, 2011 7:25 PM
> To: Hiremath, Vaibhav
> Cc: linux-omap@vger.kernel.org; tony@atomide.com
> Subject: Re: [PATCH] BUILD FIX:hwspinlock: do not return any value from
> void funtion
>
> On Mon, Nov 7, 2011 at 2:58 PM, Vaibhav Hiremath <hvaibhav@ti.com> wrote:
> > Fixes below compilation error -
>
> Thanks. We already have this fix queued up though (reported by Axel awhile
> ago).
[Hiremath, Vaibhav] I did try to search before fixing this...but I did not find any patch for this. Can you point me to it?
If it is already queued up, no point in submitting it again.
Thanks,
Vaibhav
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] BUILD FIX:hwspinlock: do not return any value from void funtion
2011-11-07 13:58 ` Hiremath, Vaibhav
@ 2011-11-07 14:01 ` Ohad Ben-Cohen
0 siblings, 0 replies; 7+ messages in thread
From: Ohad Ben-Cohen @ 2011-11-07 14:01 UTC (permalink / raw)
To: Hiremath, Vaibhav; +Cc: linux-omap@vger.kernel.org, tony@atomide.com
On Mon, Nov 7, 2011 at 3:58 PM, Hiremath, Vaibhav <hvaibhav@ti.com> wrote:
> [Hiremath, Vaibhav] I did try to search before fixing this...but I did not find any patch for this. Can you point me to it?
http://comments.gmane.org/gmane.linux.kernel/1210678
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] BUILD FIX:hwspinlock: do not return any value from void funtion
2011-11-07 13:55 ` Ohad Ben-Cohen
2011-11-07 13:58 ` Hiremath, Vaibhav
@ 2011-11-07 14:03 ` Hiremath, Vaibhav
1 sibling, 0 replies; 7+ messages in thread
From: Hiremath, Vaibhav @ 2011-11-07 14:03 UTC (permalink / raw)
To: Ohad Ben-Cohen; +Cc: linux-omap@vger.kernel.org, tony@atomide.com
> -----Original Message-----
> From: Ohad Ben-Cohen [mailto:ohad@wizery.com]
> Sent: Monday, November 07, 2011 7:25 PM
> To: Hiremath, Vaibhav
> Cc: linux-omap@vger.kernel.org; tony@atomide.com
> Subject: Re: [PATCH] BUILD FIX:hwspinlock: do not return any value from
> void funtion
>
> On Mon, Nov 7, 2011 at 2:58 PM, Vaibhav Hiremath <hvaibhav@ti.com> wrote:
> > Fixes below compilation error -
>
> Thanks. We already have this fix queued up though (reported by Axel awhile
> ago).
Found it...
http://comments.gmane.org/gmane.linux.kernel/1210678
Thanks,
Vaibhav
^ permalink raw reply [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