From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 78EF58D9F for ; Fri, 27 Apr 2018 11:25:47 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EA40521BCF; Fri, 27 Apr 2018 05:25:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 27 Apr 2018 05:25:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=byDmk/HGI4VLCFHHNqB91DoCsq xi8A+K/MfGsRZfVls=; b=nU9Iar2LPXxyQHa9gDO8rk8eP2bExnncgjf0Nsc+8k BUVutSSUI6xzdXqkMvY1QoojkfgQMas3xoZCCjHrUigzaGEHfkOpcrLbOZbNbQnm qgrp/f19zin4HzozPNxMuFQoxhTFOAZ+cOj21V5YWyg7A+dztNSfMbbnGQPy2HWE 4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=byDmk/ HGI4VLCFHHNqB91DoCsqxi8A+K/MfGsRZfVls=; b=HCxSrBVaN08ANwA4+Kv8+B 4Fi+wo7ePL6nSoFhJmzHiDUK0sHi3C94Wpc0F4Zf4l8g47C5QFRh837HrQKiga3J cThBZuIB6se1rWaZwHuLrS7EFyKS3uyj/Qfsgxpoq/6nnPedWU9VCXKjgcFFzqyX 5yBdj+yYWIbcpcvZFOmZBAEP3cjRK4JfDdgI07ozRZeDxC5Yb17BPc9RTZF4kD93 Yf+aRR2Sg7SGBccjwIRU8U4LDQneljumqCdPi9ckMOydl/KGKiWCHtcycJRvZ5yG 5A7/iW/7VnHlwvFnRXnkMka8YR310L6aBgrT5E6SNCX994Jvm05vGpP5pTsmfqqw == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 2C6A4E5082; Fri, 27 Apr 2018 05:25:46 -0400 (EDT) From: Thomas Monjalon To: Maxime Coquelin Cc: dev@dpdk.org, jianfeng.tan@intel.com, roy.fan.zhang@intel.com Date: Fri, 27 Apr 2018 11:25:45 +0200 Message-ID: <2855253.2u4rUxKpDl@xps> In-Reply-To: <20180427090438.31506-1-maxime.coquelin@redhat.com> References: <20180427090438.31506-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] vhost/crypto: fix build issue with GCC 4.7.2 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2018 09:25:47 -0000 27/04/2018 11:04, Maxime Coquelin: > Build error has been reported by Intel build system: > SUSE12SP3_64 / Linux 3.7.10-1 / GCC 4.7.2 > lib/librte_vhost/vhost_crypto.c: In function =E2=80=98rte_vhost_crypto_se= t_zero_copy=E2=80=99: > lib/librte_vhost/vhost_crypto.c:1192:2: error: comparison of unsigned exp= ression < 0 is always false [-Werror=3Dtype-limits] >=20 > As enums can be either signed or unsigned, this patch removes > the negative check and cast to unsigned the upper limit check. >=20 > Fixes: 939066d96563 ("vhost/crypto: add public function implementation") >=20 > Signed-off-by: Maxime Coquelin Applied, thanks