From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 7AF605942 for ; Thu, 17 May 2018 10:30:11 +0200 (CEST) Received: from core.dev.6wind.com (unknown [10.0.0.1]) by proxy.6wind.com (Postfix) with ESMTPS id 1AFE7178D6A; Thu, 17 May 2018 10:27:01 +0200 (CEST) Received: from [10.16.0.195] (helo=6wind.com) by core.dev.6wind.com with smtp (Exim 4.84_2) (envelope-from ) id 1fJEIP-0002aI-BJ; Thu, 17 May 2018 10:29:58 +0200 Received: by 6wind.com (sSMTP sendmail emulation); Thu, 17 May 2018 10:29:57 +0200 Date: Thu, 17 May 2018 10:29:57 +0200 From: Olivier Matz To: Andy Green Cc: dev@dpdk.org Message-ID: <20180517082957.4jhfjsb24tww6lhs@glumotte.dev.6wind.com> References: <152627436523.53156.4398253089110011263.stgit@localhost.localdomain> <152627460274.53156.14436567362656342224.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152627460274.53156.14436567362656342224.stgit@localhost.localdomain> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v4 07/23] rte_ring.h: remove signed type flipflopping 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: Thu, 17 May 2018 08:30:11 -0000 On Mon, May 14, 2018 at 01:10:02PM +0800, Andy Green wrote: > /projects/lagopus/src/dpdk/build/include/rte_ring.h:350:46: > warning: conversion to 'uint32_t' {aka 'unsigned int'} > from 'int' may change the sign of the result > [-Wsign-conversion] > update_tail(&r->prod, prod_head, prod_next, is_sp, 1); > > The visible apis take unsigned int, then call a private > api taking an int, which finally calls an api taking an > unsigned int. > > Convert the private api to take unsigned int removing > 5 x warning similar to that shown above. > > Signed-off-by: Andy Green Acked-by: Olivier Matz