DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Maxime Coquelin <maxime.coquelin@redhat.com>,
	dev@dpdk.org, xiangxia.m.yue@gmail.com, thomas@monjalon.net,
	tredaelli@redhat.com, arybchenko@solarflare.com
Subject: Re: [dpdk-dev] [PATCH] vhost: fix build issue caused by unchecked returned values
Date: Fri, 30 Mar 2018 16:31:52 +0100	[thread overview]
Message-ID: <97a85cd7-0144-5996-42c2-5632c131d1e3@intel.com> (raw)
In-Reply-To: <20180330151641.20715-1-maxime.coquelin@redhat.com>

On 3/30/2018 4:16 PM, Maxime Coquelin wrote:
> This patch fixes below build issue seen with some compilers
> or build options:
> 
> lib/librte_vhost/fd_man.c: In function ‘fdset_pipe_read_cb’:
> lib/librte_vhost/fd_man.c:284:2: error: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Werror=unused-result]
>   read(readfd, charbuf, sizeof(charbuf));
>   ^
> lib/librte_vhost/fd_man.c: In function ‘fdset_pipe_notify’:
> lib/librte_vhost/fd_man.c:324:2: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]
>   write(fdset->u.writefd, "1", 1);
>   ^
> 
> Reported-by: Andrew Rybchenko <arybchenko@solarflare.com>
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Squashed into relevant commit [1] in next-net, thanks.

(comment s/read()/write()/ fixed while applying)

[1]
7b23d25feb92 ("vhost: add pipe event for optimizing negotiating")

      parent reply	other threads:[~2018-03-30 15:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-30 15:16 Maxime Coquelin
2018-03-30 15:18 ` Andrew Rybchenko
2018-03-30 15:21   ` Ferruh Yigit
2018-03-30 15:26     ` Maxime Coquelin
2018-03-30 15:31 ` Ferruh Yigit [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=97a85cd7-0144-5996-42c2-5632c131d1e3@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=arybchenko@solarflare.com \
    --cc=dev@dpdk.org \
    --cc=maxime.coquelin@redhat.com \
    --cc=thomas@monjalon.net \
    --cc=tredaelli@redhat.com \
    --cc=xiangxia.m.yue@gmail.com \
    /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).