netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: linux-next: Tree for May 26 (drivers/net/caif)
       [not found] <20110526163941.7dfcad1a.sfr@canb.auug.org.au>
@ 2011-05-26 19:07 ` Randy Dunlap
  2011-05-26 21:15   ` Sjur Brændeland
  2011-05-27  1:01   ` linux-next: Tree for May 26 (drivers/net/caif) Stephen Rothwell
  0 siblings, 2 replies; 6+ messages in thread
From: Randy Dunlap @ 2011-05-26 19:07 UTC (permalink / raw)
  To: Stephen Rothwell, netdev; +Cc: linux-next, LKML, Sjur Braendeland

On Thu, 26 May 2011 16:39:41 +1000 Stephen Rothwell wrote:

> Hi all,
> 
> [The kernel.org mirroring is being slow today]


(not new)

drivers/net/caif/caif_serial.c:194: warning: 'return' with no value, in function returning non-void
drivers/net/caif/caif_serial.c:202: warning: 'return' with no value, in function returning non-void


I'm curious:  how do warnings like this get overlooked?
too much noise in the build messages?  or it wasn't overlooked, just ignored?


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

* Re: linux-next: Tree for May 26 (drivers/net/caif)
  2011-05-26 19:07 ` linux-next: Tree for May 26 (drivers/net/caif) Randy Dunlap
@ 2011-05-26 21:15   ` Sjur Brændeland
  2011-05-26 21:30     ` Randy Dunlap
  2011-05-27  1:01   ` linux-next: Tree for May 26 (drivers/net/caif) Stephen Rothwell
  1 sibling, 1 reply; 6+ messages in thread
From: Sjur Brændeland @ 2011-05-26 21:15 UTC (permalink / raw)
  To: Randy Dunlap, balbi; +Cc: Stephen Rothwell, netdev, linux-next, LKML, gregkh

Hi Randy,

[Randy]
> (not new)
>
> drivers/net/caif/caif_serial.c:194: warning: 'return' with no value, in function returning non-void
> drivers/net/caif/caif_serial.c:202: warning: 'return' with no value, in function returning non-void
>
>
> I'm curious:  how do warnings like this get overlooked?
> too much noise in the build messages?  or it wasn't overlooked, just ignored?

The patch introducing this problem is "tty: make receive_buf()
return the amout of bytes received" by Felipe Balbi <balbi@ti.com>.
It seems that this patch has been posted to linux-serial and not to
the netdev list or the gits net-next-2.6 or net-2.6 that I follow.
It's probably no excuse, but this problem is news to me.

Should I post a patch on linux-next anyway for this issue?

Regards,
Sjur

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

* Re: linux-next: Tree for May 26 (drivers/net/caif)
  2011-05-26 21:15   ` Sjur Brændeland
@ 2011-05-26 21:30     ` Randy Dunlap
  2011-05-27  8:09       ` [PATCH] caif: Fix compile warning in caif_serial.c Sjur Brændeland
  0 siblings, 1 reply; 6+ messages in thread
From: Randy Dunlap @ 2011-05-26 21:30 UTC (permalink / raw)
  To: Sjur Brændeland
  Cc: balbi, Stephen Rothwell, netdev, linux-next, LKML, gregkh

On Thu, 26 May 2011 23:15:34 +0200 Sjur Brændeland wrote:

> Hi Randy,
> 
> [Randy]
> > (not new)
> >
> > drivers/net/caif/caif_serial.c:194: warning: 'return' with no value, in function returning non-void
> > drivers/net/caif/caif_serial.c:202: warning: 'return' with no value, in function returning non-void
> >
> >
> > I'm curious:  how do warnings like this get overlooked?
> > too much noise in the build messages?  or it wasn't overlooked, just ignored?
> 
> The patch introducing this problem is "tty: make receive_buf()
> return the amout of bytes received" by Felipe Balbi <balbi@ti.com>.
> It seems that this patch has been posted to linux-serial and not to
> the netdev list or the gits net-next-2.6 or net-2.6 that I follow.
> It's probably no excuse, but this problem is news to me.

I see.  Thanks for the explanation.

> Should I post a patch on linux-next anyway for this issue?

You or Felipe should, but he recently sent this note to the USB
mailing list:

"I'll be away until 31st of May on a business travel. Don't expect me to
look into patches during that period."

so it looks like it would better for you to do it, please.

thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

* Re: linux-next: Tree for May 26 (drivers/net/caif)
  2011-05-26 19:07 ` linux-next: Tree for May 26 (drivers/net/caif) Randy Dunlap
  2011-05-26 21:15   ` Sjur Brændeland
@ 2011-05-27  1:01   ` Stephen Rothwell
  1 sibling, 0 replies; 6+ messages in thread
From: Stephen Rothwell @ 2011-05-27  1:01 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: netdev, linux-next, LKML, Sjur Braendeland

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

Hi Randy,

On Thu, 26 May 2011 12:07:02 -0700 Randy Dunlap <randy.dunlap@oracle.com> wrote:
>
> drivers/net/caif/caif_serial.c:194: warning: 'return' with no value, in function returning non-void
> drivers/net/caif/caif_serial.c:202: warning: 'return' with no value, in function returning non-void
> 
> I'm curious:  how do warnings like this get overlooked?
> too much noise in the build messages?  or it wasn't overlooked, just ignored?

For me, too much noise :-(  I catch some, but not all.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

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

* [PATCH] caif: Fix compile warning in caif_serial.c
  2011-05-26 21:30     ` Randy Dunlap
@ 2011-05-27  8:09       ` Sjur Brændeland
  2011-05-27 15:37         ` Randy Dunlap
  0 siblings, 1 reply; 6+ messages in thread
From: Sjur Brændeland @ 2011-05-27  8:09 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Randy Dunlap, linux-next, balbi, netdev, Sjur Brændeland

Fix the compile warning introduced by the patch:
"tty: make receive_buf() return the amout of bytes received"

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
---
Note: Fixes compile issue in linux-next (no issue in net-2.6).

 drivers/net/caif/caif_serial.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.c
index 73c7e03..751ebbd 100644
--- a/drivers/net/caif/caif_serial.c
+++ b/drivers/net/caif/caif_serial.c
@@ -191,7 +191,7 @@ static unsigned int ldisc_receive(struct tty_struct *tty,
 		dev_info(&ser->dev->dev,
 			"Bytes received before initial transmission -"
 			"bytes discarded.\n");
-		return;
+		return count;
 	}
 
 	BUG_ON(ser->dev == NULL);
@@ -199,7 +199,7 @@ static unsigned int ldisc_receive(struct tty_struct *tty,
 	/* Get a suitable caif packet and copy in data. */
 	skb = netdev_alloc_skb(ser->dev, count+1);
 	if (skb == NULL)
-		return;
+		return 0;
 	p = skb_put(skb, count);
 	memcpy(p, data, count);
 
-- 
1.7.0.4


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

* Re: [PATCH] caif: Fix compile warning in caif_serial.c
  2011-05-27  8:09       ` [PATCH] caif: Fix compile warning in caif_serial.c Sjur Brændeland
@ 2011-05-27 15:37         ` Randy Dunlap
  0 siblings, 0 replies; 6+ messages in thread
From: Randy Dunlap @ 2011-05-27 15:37 UTC (permalink / raw)
  To: Sjur Brændeland; +Cc: Stephen Rothwell, linux-next, balbi, netdev

On 05/27/11 01:09, Sjur Brændeland wrote:
> Fix the compile warning introduced by the patch:
> "tty: make receive_buf() return the amout of bytes received"
> 
> Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
> ---
> Note: Fixes compile issue in linux-next (no issue in net-2.6).

Acked-by: Randy Dunlap <randy.dunlap@oracle.com>

Thanks much, Sjur.

>  drivers/net/caif/caif_serial.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.c
> index 73c7e03..751ebbd 100644
> --- a/drivers/net/caif/caif_serial.c
> +++ b/drivers/net/caif/caif_serial.c
> @@ -191,7 +191,7 @@ static unsigned int ldisc_receive(struct tty_struct *tty,
>  		dev_info(&ser->dev->dev,
>  			"Bytes received before initial transmission -"
>  			"bytes discarded.\n");
> -		return;
> +		return count;
>  	}
>  
>  	BUG_ON(ser->dev == NULL);
> @@ -199,7 +199,7 @@ static unsigned int ldisc_receive(struct tty_struct *tty,
>  	/* Get a suitable caif packet and copy in data. */
>  	skb = netdev_alloc_skb(ser->dev, count+1);
>  	if (skb == NULL)
> -		return;
> +		return 0;
>  	p = skb_put(skb, count);
>  	memcpy(p, data, count);
>  


-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

end of thread, other threads:[~2011-05-27 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20110526163941.7dfcad1a.sfr@canb.auug.org.au>
2011-05-26 19:07 ` linux-next: Tree for May 26 (drivers/net/caif) Randy Dunlap
2011-05-26 21:15   ` Sjur Brændeland
2011-05-26 21:30     ` Randy Dunlap
2011-05-27  8:09       ` [PATCH] caif: Fix compile warning in caif_serial.c Sjur Brændeland
2011-05-27 15:37         ` Randy Dunlap
2011-05-27  1:01   ` linux-next: Tree for May 26 (drivers/net/caif) Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).