netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: ilyal@mellanox.com
Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, kafai@fb.com,
	borisp@mellanox.com
Subject: Re: [PATCH v2 1/1] tcp: Honor the eor bit in tcp_mtu_probe
Date: Tue, 06 Feb 2018 11:24:13 -0500 (EST)	[thread overview]
Message-ID: <20180206.112413.190156140626568457.davem@davemloft.net> (raw)
In-Reply-To: <20180205181832.95136-1-ilyal@mellanox.com>

From: Ilya Lesokhin <ilyal@mellanox.com>
Date: Mon,  5 Feb 2018 20:18:32 +0200

> Avoid SKB coalescing if eor bit is set in one of the relevant
> SKBs.
> 
> Fixes: c134ecb87817 ("tcp: Make use of MSG_EOR in tcp_sendmsg")
> Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>

This adds a build warning, please fix:

  CC      net/ipv4/tcp_output.o
In file included from ./include/linux/tcp.h:21:0,
                 from ./include/net/tcp.h:24,
                 from net/ipv4/tcp_output.c:39:
net/ipv4/tcp_output.c: In function ‘tcp_write_xmit’:
./include/linux/skbuff.h:3196:12: warning: ‘skb’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   for (tmp = skb->next;      \
            ^
net/ipv4/tcp_output.c:2043:18: note: ‘skb’ was declared here
  struct sk_buff *skb, *nskb, *next;
                  ^~~

This is with:

[davem@dhcp-10-15-49-227 net]$ gcc --version
gcc (GCC) 7.3.1 20180130 (Red Hat 7.3.1-2)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[davem@dhcp-10-15-49-227 net]$

      parent reply	other threads:[~2018-02-06 16:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-05 18:18 [PATCH v2 1/1] tcp: Honor the eor bit in tcp_mtu_probe Ilya Lesokhin
2018-02-05 18:44 ` Eric Dumazet
2018-02-06 16:24 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180206.112413.190156140626568457.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=borisp@mellanox.com \
    --cc=eric.dumazet@gmail.com \
    --cc=ilyal@mellanox.com \
    --cc=kafai@fb.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).