From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH] virtio: fix missing curly braces Date: Wed, 13 Jul 2016 11:27:18 +0200 Message-ID: <7046512f-49fa-30b4-9238-318617cc04be@redhat.com> References: <20160713092419.14425-1-viktorin@rehivetech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Jianfeng Tan , Yuanhan Liu , Huawei Xie To: Jan Viktorin , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id DFFAA1C52 for ; Wed, 13 Jul 2016 11:27:22 +0200 (CEST) In-Reply-To: <20160713092419.14425-1-viktorin@rehivetech.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Jan, On 07/13/2016 11:24 AM, Jan Viktorin wrote: > GCC 6 is complaining and seems to be correct here. > > virtio_user_ethdev.c:345:2: error: > this =E2=80=98if=E2=80=99 clause does not guard... [-Werror=3Dmisleadi= ng-indentation] > if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_PATH) =3D=3D 1) > ^~ > > virtio_user_ethdev.c:348:3: note: > ...this statement, but the latter is misleadingly indented > as if it is guarded by the =E2=80=98if=E2=80=99 > if (ret < 0) { > > Fixes: 404bd6bfe360 ("net/virtio-user: fix return value not checked") > Signed-off-by: Jan Viktorin > --- > I already fixed it yesterday: http://dpdk.org/dev/patchwork/patch/14780/ Thanks, Maxime