* [PATCH 0/2] Fixes for errors reported by 0day on net-next tree @ 2017-07-03 11:50 Elena Reshetova 2017-07-03 11:50 ` [PATCH 1/2] net, iucv: fixing error from refcount conversion Elena Reshetova ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Elena Reshetova @ 2017-07-03 11:50 UTC (permalink / raw) To: davem; +Cc: netdev, linux-kernel, keescook, Elena Reshetova Despite the fact that we have automatic testing enabled on all our branches, there s390-config related errors got through. I will investigate separately why it happened. Sorry for the inconvince and please pull. Elena Reshetova (2): net, iucv: fixing error from refcount conversion drivers, s390: fix errors resulting from refcount conversions drivers/s390/net/ctcm_fsms.c | 12 ++++++------ net/iucv/af_iucv.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) -- 2.7.4 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] net, iucv: fixing error from refcount conversion 2017-07-03 11:50 [PATCH 0/2] Fixes for errors reported by 0day on net-next tree Elena Reshetova @ 2017-07-03 11:50 ` Elena Reshetova 2017-07-03 11:50 ` [PATCH 2/2] drivers, s390: fix errors resulting from refcount conversions Elena Reshetova 2017-07-03 12:52 ` [PATCH 0/2] Fixes for errors reported by 0day on net-next tree David Miller 2 siblings, 0 replies; 4+ messages in thread From: Elena Reshetova @ 2017-07-03 11:50 UTC (permalink / raw) To: davem; +Cc: netdev, linux-kernel, keescook, Elena Reshetova Fixing "net/iucv/af_iucv.c:405:22: error: passing argument 1 of 'atomic_read' from incompatible pointer type" --- net/iucv/af_iucv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index ac033e4..1485331 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -402,7 +402,7 @@ static void iucv_sock_destruct(struct sock *sk) } WARN_ON(atomic_read(&sk->sk_rmem_alloc)); - WARN_ON(atomic_read(&sk->sk_wmem_alloc)); + WARN_ON(refcount_read(&sk->sk_wmem_alloc)); WARN_ON(sk->sk_wmem_queued); WARN_ON(sk->sk_forward_alloc); } -- 2.7.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] drivers, s390: fix errors resulting from refcount conversions 2017-07-03 11:50 [PATCH 0/2] Fixes for errors reported by 0day on net-next tree Elena Reshetova 2017-07-03 11:50 ` [PATCH 1/2] net, iucv: fixing error from refcount conversion Elena Reshetova @ 2017-07-03 11:50 ` Elena Reshetova 2017-07-03 12:52 ` [PATCH 0/2] Fixes for errors reported by 0day on net-next tree David Miller 2 siblings, 0 replies; 4+ messages in thread From: Elena Reshetova @ 2017-07-03 11:50 UTC (permalink / raw) To: davem; +Cc: netdev, linux-kernel, keescook, Elena Reshetova For some reason it looks like our tree hasn't been tested with s390-default_defconfig, so this commit fixes errors reported from it. --- drivers/s390/net/ctcm_fsms.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/s390/net/ctcm_fsms.c b/drivers/s390/net/ctcm_fsms.c index e9847ce..570ae3b 100644 --- a/drivers/s390/net/ctcm_fsms.c +++ b/drivers/s390/net/ctcm_fsms.c @@ -217,7 +217,7 @@ void ctcm_purge_skb_queue(struct sk_buff_head *q) CTCM_DBF_TEXT(TRACE, CTC_DBF_DEBUG, __func__); while ((skb = skb_dequeue(q))) { - atomic_dec(&skb->users); + refcount_dec(&skb->users); dev_kfree_skb_any(skb); } } @@ -271,7 +271,7 @@ static void chx_txdone(fsm_instance *fi, int event, void *arg) priv->stats.tx_bytes += 2; first = 0; } - atomic_dec(&skb->users); + refcount_dec(&skb->users); dev_kfree_skb_irq(skb); } spin_lock(&ch->collect_lock); @@ -297,7 +297,7 @@ static void chx_txdone(fsm_instance *fi, int event, void *arg) skb_put(ch->trans_skb, skb->len), skb->len); priv->stats.tx_packets++; priv->stats.tx_bytes += skb->len - LL_HEADER_LENGTH; - atomic_dec(&skb->users); + refcount_dec(&skb->users); dev_kfree_skb_irq(skb); i++; } @@ -1248,7 +1248,7 @@ static void ctcmpc_chx_txdone(fsm_instance *fi, int event, void *arg) priv->stats.tx_bytes += 2; first = 0; } - atomic_dec(&skb->users); + refcount_dec(&skb->users); dev_kfree_skb_irq(skb); } spin_lock(&ch->collect_lock); @@ -1298,7 +1298,7 @@ static void ctcmpc_chx_txdone(fsm_instance *fi, int event, void *arg) data_space -= skb->len; priv->stats.tx_packets++; priv->stats.tx_bytes += skb->len; - atomic_dec(&skb->users); + refcount_dec(&skb->users); dev_kfree_skb_any(skb); peekskb = skb_peek(&ch->collect_queue); if (peekskb->len > data_space) @@ -1795,7 +1795,7 @@ static void ctcmpc_chx_send_sweep(fsm_instance *fsm, int event, void *arg) fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); goto done; } else { - atomic_inc(&skb->users); + refcount_inc(&skb->users); skb_queue_tail(&wch->io_queue, skb); } -- 2.7.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Fixes for errors reported by 0day on net-next tree 2017-07-03 11:50 [PATCH 0/2] Fixes for errors reported by 0day on net-next tree Elena Reshetova 2017-07-03 11:50 ` [PATCH 1/2] net, iucv: fixing error from refcount conversion Elena Reshetova 2017-07-03 11:50 ` [PATCH 2/2] drivers, s390: fix errors resulting from refcount conversions Elena Reshetova @ 2017-07-03 12:52 ` David Miller 2 siblings, 0 replies; 4+ messages in thread From: David Miller @ 2017-07-03 12:52 UTC (permalink / raw) To: elena.reshetova; +Cc: netdev, linux-kernel, keescook From: Elena Reshetova <elena.reshetova@intel.com> Date: Mon, 3 Jul 2017 14:50:26 +0300 > Despite the fact that we have automatic testing enabled > on all our branches, there s390-config related errors got through. > I will investigate separately why it happened. > Sorry for the inconvince and please pull. Update your net-next tree I already fixed this stuff. Thanks. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-03 12:52 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-07-03 11:50 [PATCH 0/2] Fixes for errors reported by 0day on net-next tree Elena Reshetova 2017-07-03 11:50 ` [PATCH 1/2] net, iucv: fixing error from refcount conversion Elena Reshetova 2017-07-03 11:50 ` [PATCH 2/2] drivers, s390: fix errors resulting from refcount conversions Elena Reshetova 2017-07-03 12:52 ` [PATCH 0/2] Fixes for errors reported by 0day on net-next tree David Miller
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).