* linux-next: net tree build warning
@ 2009-09-04 4:28 Stephen Rothwell
2009-09-04 4:35 ` David Miller
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2009-09-04 4:28 UTC (permalink / raw)
To: David S. Miller; +Cc: linux-next, linux-kernel, roel kluin, netdev
[-- Attachment #1: Type: text/plain, Size: 583 bytes --]
Hi Dave,
Today's linux-next build (x86_64 allmodconfig gcc-4.4.0) produced this
warning:
drivers/net/wan/dscc4.c: In function 'dscc4_rx_skb':
drivers/net/wan/dscc4.c:670: warning: suggest parentheses around comparison in operand of '|'
which actually points out a bug, I think. It is doing
(x & (y | z)) != y | z
when it probably means
(x & (y | z)) != (y | z)
Introduced by commit 5de3fcab91b0e1809eec030355d15801daf25083 ("WAN: bit
and/or confusion").
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: linux-next: net tree build warning
2009-09-04 4:28 linux-next: net tree build warning Stephen Rothwell
@ 2009-09-04 4:35 ` David Miller
0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2009-09-04 4:35 UTC (permalink / raw)
To: sfr; +Cc: linux-next, linux-kernel, roel.kluin, netdev
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 4 Sep 2009 14:28:46 +1000
> Today's linux-next build (x86_64 allmodconfig gcc-4.4.0) produced this
> warning:
Thanks, just pushed the following out:
WAN: dscc4: Fix warning pointing out a bug.
Noticed by Stephen Rothwell:
Today's linux-next build (x86_64 allmodconfig gcc-4.4.0)
produced this warning:
drivers/net/wan/dscc4.c: In function 'dscc4_rx_skb':
drivers/net/wan/dscc4.c:670: warning: suggest parentheses around comparison in operand of '|'
which actually points out a bug, I think. It is doing
(x & (y | z)) != y | z
when it probably means
(x & (y | z)) != (y | z)
Introduced by commit 5de3fcab91b0e1809eec030355d15801daf25083
("WAN: bit and/or confusion").
Signed-off-by: David S. Miller <davem@davemloft.net>
---
drivers/net/wan/dscc4.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c
index b2247bd..81c8aec 100644
--- a/drivers/net/wan/dscc4.c
+++ b/drivers/net/wan/dscc4.c
@@ -667,7 +667,7 @@ static inline void dscc4_rx_skb(struct dscc4_dev_priv *dpriv,
else if (!(skb->data[pkt_len] & FrameCrc))
dev->stats.rx_crc_errors++;
else if ((skb->data[pkt_len] & (FrameVfr | FrameRab)) !=
- FrameVfr | FrameRab)
+ (FrameVfr | FrameRab))
dev->stats.rx_length_errors++;
dev->stats.rx_errors++;
dev_kfree_skb_irq(skb);
--
1.6.4.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* linux-next: net tree build warning
@ 2009-05-22 5:16 Stephen Rothwell
2009-05-22 6:30 ` David Miller
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2009-05-22 5:16 UTC (permalink / raw)
To: David S. Miller; +Cc: linux-next, linux-kernel, Neil Horman, netdev
[-- Attachment #1: Type: text/plain, Size: 591 bytes --]
Hi Dave,
Today's linux-next build (powerpc ppc64_defconfig) produced this warning:
net/core/netpoll.c: In function 'poll_one_napi':
net/core/netpoll.c:141: warning: passing argument 1 of 'trace_napi_poll' from incompatible pointer type
include/trace/napi.h:7: note: expected 'struct napi_struct *' but argument is of type 'struct net_device *'
Introduced by commit 4ea7e38696c7e798c47ebbecadfd392f23f814f9 ("dropmon:
add ability to detect when hardware dropsrxpackets").
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: linux-next: net tree build warning
2009-05-22 5:16 Stephen Rothwell
@ 2009-05-22 6:30 ` David Miller
2009-05-22 8:20 ` Stephen Rothwell
0 siblings, 1 reply; 6+ messages in thread
From: David Miller @ 2009-05-22 6:30 UTC (permalink / raw)
To: sfr; +Cc: linux-next, linux-kernel, nhorman, netdev
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 22 May 2009 15:16:42 +1000
> Hi Dave,
>
> Today's linux-next build (powerpc ppc64_defconfig) produced this warning:
>
> net/core/netpoll.c: In function 'poll_one_napi':
> net/core/netpoll.c:141: warning: passing argument 1 of 'trace_napi_poll' from incompatible pointer type
> include/trace/napi.h:7: note: expected 'struct napi_struct *' but argument is of type 'struct net_device *'
>
> Introduced by commit 4ea7e38696c7e798c47ebbecadfd392f23f814f9 ("dropmon:
> add ability to detect when hardware dropsrxpackets").
I just pushed the following to fix this:
net: Fix arg to trace_napi_poll() in netpoll.
Reproted by Stephen Rothwell.
Signed-off-by: David S. Miller <davem@davemloft.net>
---
net/core/netpoll.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 00b14e2..67b4f3e 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -138,7 +138,7 @@ static int poll_one_napi(struct netpoll_info *npinfo,
set_bit(NAPI_STATE_NPSVC, &napi->state);
work = napi->poll(napi, budget);
- trace_napi_poll(napi->dev);
+ trace_napi_poll(napi);
clear_bit(NAPI_STATE_NPSVC, &napi->state);
atomic_dec(&trapped);
--
1.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: linux-next: net tree build warning
2009-05-22 6:30 ` David Miller
@ 2009-05-22 8:20 ` Stephen Rothwell
2009-05-22 10:31 ` Neil Horman
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2009-05-22 8:20 UTC (permalink / raw)
To: David Miller; +Cc: linux-next, linux-kernel, nhorman, netdev
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
Hi Dave,
On Thu, 21 May 2009 23:30:38 -0700 (PDT) David Miller <davem@davemloft.net> wrote:
>
> I just pushed the following to fix this:
>
> net: Fix arg to trace_napi_poll() in netpoll.
Thanks. I remerged the net tree at the end of linux-next today in case
anyone was doing any testing over the weekend.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: linux-next: net tree build warning
2009-05-22 8:20 ` Stephen Rothwell
@ 2009-05-22 10:31 ` Neil Horman
0 siblings, 0 replies; 6+ messages in thread
From: Neil Horman @ 2009-05-22 10:31 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: David Miller, linux-next, linux-kernel, netdev
On Fri, May 22, 2009 at 06:20:24PM +1000, Stephen Rothwell wrote:
> Hi Dave,
>
> On Thu, 21 May 2009 23:30:38 -0700 (PDT) David Miller <davem@davemloft.net> wrote:
> >
> > I just pushed the following to fix this:
> >
> > net: Fix arg to trace_napi_poll() in netpoll.
>
> Thanks. I remerged the net tree at the end of linux-next today in case
> anyone was doing any testing over the weekend.
>
Damnit, thanks for the fixup guys.
Neil
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-04 4:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-04 4:28 linux-next: net tree build warning Stephen Rothwell
2009-09-04 4:35 ` David Miller
-- strict thread matches above, loose matches on Subject: below --
2009-05-22 5:16 Stephen Rothwell
2009-05-22 6:30 ` David Miller
2009-05-22 8:20 ` Stephen Rothwell
2009-05-22 10:31 ` Neil Horman
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).