From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: net/virtio-user: Fix missing brackets in if condition Date: Fri, 15 Jul 2016 09:29:12 +0800 Message-ID: <20160715012912.GC5146@yliu-dev.sh.intel.com> References: <1468315825-24089-1-git-send-email-maxime.coquelin@redhat.com> <20160714183111.4d44e564@jvn> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Maxime Coquelin , huawei.xie@intel.com, dev@dpdk.org, Jianfeng Tan To: viktorin@rehivetech.com Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id CD2D13978 for ; Fri, 15 Jul 2016 03:26:11 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20160714183111.4d44e564@jvn> 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" On Thu, Jul 14, 2016 at 06:31:11PM +0200, viktorin@rehivetech.com wrote: > On Tue, 12 Jul 2016 11:30:25 +0200 > Maxime Coquelin wrote: >=20 > > The error is reported using test build script: >=20 > I recommend to note that the error is reported only by GCC 6+. Agreed! --yliu >=20 > >=20 > > $ scripts/test-build.sh x86_64-native-linuxapp-gcc > > ... > > drivers/net/virtio/virtio_user_ethdev.c: In function =E2=80=98virtio_= user_pmd_devinit=E2=80=99: > > drivers/net/virtio/virtio_user_ethdev.c:345:2: error: this =E2=80=98i= f=E2=80=99 clause does not guard... [-Werror=3Dmisleading-indentation] > > if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_PATH) =3D=3D 1) > > ^~ > >=20 > > Fixes: 404bd6bfe360 ("net/virtio-user: fix return value not checked") > >=20 > > Cc: Jianfeng Tan > > Signed-off-by: Maxime Coquelin > > Acked-by: Yuanhan Liu > >=20 > Reviewed-by: Jan Viktorin