From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 62B301C52 for ; Tue, 12 Jul 2016 14:08:39 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 12 Jul 2016 05:08:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,351,1464678000"; d="scan'208";a="844797305" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga003.jf.intel.com with ESMTP; 12 Jul 2016 05:08:38 -0700 Date: Tue, 12 Jul 2016 20:11:14 +0800 From: Yuanhan Liu To: Maxime Coquelin Cc: huawei.xie@intel.com, dev@dpdk.org, Jianfeng Tan Message-ID: <20160712121114.GF26521@yliu-dev.sh.intel.com> References: <1468315825-24089-1-git-send-email-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1468315825-24089-1-git-send-email-maxime.coquelin@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] net/virtio-user: Fix missing brackets in if condition X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 12:08:44 -0000 On Tue, Jul 12, 2016 at 11:30:25AM +0200, Maxime Coquelin wrote: > The error is reported using test build script: > > $ scripts/test-build.sh x86_64-native-linuxapp-gcc > ... > drivers/net/virtio/virtio_user_ethdev.c: In function ‘virtio_user_pmd_devinit’: > drivers/net/virtio/virtio_user_ethdev.c:345:2: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] > if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_PATH) == 1) > ^~ > > Fixes: 404bd6bfe360 ("net/virtio-user: fix return value not checked") > > Cc: Jianfeng Tan > Signed-off-by: Maxime Coquelin Acked-by: Yuanhan Liu Thanks for the fix. --yliu