From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 6219623A for ; Mon, 16 Jul 2018 09:16:31 +0200 (CEST) Received: from rsa59-2-82-233-193-189.fbx.proxad.net ([82.233.193.189] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fexkr-0007Ba-RQ; Mon, 16 Jul 2018 09:17:11 +0200 Received: by droids-corp.org (sSMTP sendmail emulation); Mon, 16 Jul 2018 09:16:29 +0200 Date: Mon, 16 Jul 2018 09:16:29 +0200 From: Olivier Matz To: Andy Green Cc: dev@dpdk.org Message-ID: <20180716071629.yavjmh6yztvfgrsk@platinum> References: <152749815575.44120.3090426090234773551.stgit@localhost.localdomain> <152749822351.44120.16656625173859188832.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152749822351.44120.16656625173859188832.stgit@localhost.localdomain> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v2 2/2] ring: fix sign conversion warning 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: Mon, 16 Jul 2018 07:16:31 -0000 On Mon, May 28, 2018 at 05:03:43PM +0800, Andy Green wrote: > On gcc 5.4.0 / native aarch64 from Ubuntu 16.04: > > /home/agreen/lagopus/src/dpdk/build/include/rte_ring.h: > In function '__rte_ring_do_dequeue': > /home/agreen/lagopus/src/dpdk/build/include/rte_ring.h: > 385:35: warning: conversion to 'int' from 'unsigned int' > may change the sign of the result [-Wsign-conversion] > n = __rte_ring_move_cons_head(r, is_sc, n, behavior, > ^ > > Signed-off-by: Andy Green > Fixes: e8ed5056c8 ("ring: remove signed type flip-flopping") Acked-by: Olivier Matz