* linux-next: build warning after merge of the tree
@ 2010-08-17 2:24 Stephen Rothwell
2010-08-17 9:31 ` Mark Brown
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2010-08-17 2:24 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood; +Cc: linux-next, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
Hi all,
After merging the slab tree, today's linux-next build (x86_64
allmodconfig) produced this warning:
sound/soc/codecs/wm8974.c: In function 'wm8974_probe':
sound/soc/codecs/wm8974.c:610: warning: unused variable 'wm8974'
Introduced by commit af3751a0bfe4d461e0567961dc06448f2128e26f ("ASoC:
Remove unneeded control_data management from Wolfson drivers").
--
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] 7+ messages in thread* linux-next: build warning after merge of the tree
@ 2010-03-28 23:31 Stephen Rothwell
2010-03-29 0:15 ` Stephen Rothwell
2010-03-29 1:57 ` David Miller
0 siblings, 2 replies; 7+ messages in thread
From: Stephen Rothwell @ 2010-03-28 23:31 UTC (permalink / raw)
To: David Miller, netdev; +Cc: linux-next, linux-kernel, Kyle McMartin
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
Hi Dave,
After merging the tree, today's linux-next build (x86_64 allmodconfig)
produced this warning:
drivers/net/tulip/uli526x.c: In function 'uli526x_rx_packet':
drivers/net/tulip/uli526x.c:861: warning: assignment makes pointer from integer without a cast
Introduced by commit ac90a149361a331f697d5aa500bedcff22054669 ("tulip:
Fix null dereference in uli526x_rx_packet()") from the net-current tree.
There is a missing set of parentheses around an assignment in an "if"
condition ...
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
P.S. this commit is missing a SOB from its purported author
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: linux-next: build warning after merge of the tree
2010-03-28 23:31 Stephen Rothwell
@ 2010-03-29 0:15 ` Stephen Rothwell
2010-03-29 1:57 ` David Miller
1 sibling, 0 replies; 7+ messages in thread
From: Stephen Rothwell @ 2010-03-29 0:15 UTC (permalink / raw)
To: David Miller, netdev; +Cc: linux-next, linux-kernel, Kyle McMartin
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
On Mon, 29 Mar 2010 10:31:39 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi Dave,
Of course I meant the net-current tree ...
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warning after merge of the tree
2010-03-28 23:31 Stephen Rothwell
2010-03-29 0:15 ` Stephen Rothwell
@ 2010-03-29 1:57 ` David Miller
2010-03-29 2:15 ` Joe Perches
2010-04-04 7:26 ` Stephen Rothwell
1 sibling, 2 replies; 7+ messages in thread
From: David Miller @ 2010-03-29 1:57 UTC (permalink / raw)
To: sfr; +Cc: netdev, linux-next, linux-kernel, kyle
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 29 Mar 2010 10:31:39 +1100
> Hi Dave,
>
> After merging the tree, today's linux-next build (x86_64 allmodconfig)
> produced this warning:
>
> drivers/net/tulip/uli526x.c: In function 'uli526x_rx_packet':
> drivers/net/tulip/uli526x.c:861: warning: assignment makes pointer from integer without a cast
>
> Introduced by commit ac90a149361a331f697d5aa500bedcff22054669 ("tulip:
> Fix null dereference in uli526x_rx_packet()") from the net-current tree.
> There is a missing set of parentheses around an assignment in an "if"
> condition ...
Strange, it didn't warn here.
I just committed the following, let me know if it fixes
this.
Thanks!
tulip: Add missing parens.
As reported by Stephen Rothwell.
drivers/net/tulip/uli526x.c: In function 'uli526x_rx_packet':
drivers/net/tulip/uli526x.c:861: warning: assignment makes pointer from integer without a cast
Signed-off-by: David S. Miller <davem@davemloft.net>
---
drivers/net/tulip/uli526x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c
index 90be57b..a4f09d4 100644
--- a/drivers/net/tulip/uli526x.c
+++ b/drivers/net/tulip/uli526x.c
@@ -858,7 +858,7 @@ static void uli526x_rx_packet(struct net_device *dev, struct uli526x_board_info
/* Good packet, send to upper layer */
/* Shorst packet used new SKB */
if ((rxlen < RX_COPY_SIZE) &&
- ((new_skb = dev_alloc_skb(rxlen + 2) != NULL))) {
+ (((new_skb = dev_alloc_skb(rxlen + 2)) != NULL))) {
skb = new_skb;
/* size less than COPY_SIZE, allocate a rxlen SKB */
skb_reserve(skb, 2); /* 16byte align */
--
1.7.0.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: linux-next: build warning after merge of the tree
2010-03-29 1:57 ` David Miller
@ 2010-03-29 2:15 ` Joe Perches
2010-04-04 7:26 ` Stephen Rothwell
1 sibling, 0 replies; 7+ messages in thread
From: Joe Perches @ 2010-03-29 2:15 UTC (permalink / raw)
To: David Miller; +Cc: sfr, netdev, linux-next, linux-kernel, kyle
On Sun, 2010-03-28 at 18:57 -0700, David Miller wrote:
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> > After merging the tree, today's linux-next build (x86_64 allmodconfig)
> > produced this warning:
> > drivers/net/tulip/uli526x.c: In function 'uli526x_rx_packet':
> > drivers/net/tulip/uli526x.c:861: warning: assignment makes pointer from integer without a cast
> I just committed the following, let me know if it fixes
> this.
> - ((new_skb = dev_alloc_skb(rxlen + 2) != NULL))) {
> + (((new_skb = dev_alloc_skb(rxlen + 2)) != NULL))) {
You've an extra () there.
A close paren could have been moved from after
the NULL to after the "+ 2"
I think it's more readable as:
(new_skb = dev_alloc_skb(rxlen + 2))) {
cheers, Joe
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: linux-next: build warning after merge of the tree
2010-03-29 1:57 ` David Miller
2010-03-29 2:15 ` Joe Perches
@ 2010-04-04 7:26 ` Stephen Rothwell
1 sibling, 0 replies; 7+ messages in thread
From: Stephen Rothwell @ 2010-04-04 7:26 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-next, linux-kernel, kyle
[-- Attachment #1: Type: text/plain, Size: 342 bytes --]
Hi Dave,
On Sun, 28 Mar 2010 18:57:07 -0700 (PDT) David Miller <davem@davemloft.net> wrote:
>
> Strange, it didn't warn here.
>
> I just committed the following, let me know if it fixes
> this.
Yeah, that did it, thanks
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-08-17 9:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 2:24 linux-next: build warning after merge of the tree Stephen Rothwell
2010-08-17 9:31 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2010-03-28 23:31 Stephen Rothwell
2010-03-29 0:15 ` Stephen Rothwell
2010-03-29 1:57 ` David Miller
2010-03-29 2:15 ` Joe Perches
2010-04-04 7:26 ` Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox