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 71DFA1D1D0; Sun, 13 May 2018 22:40:03 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 198A625C49; Sun, 13 May 2018 16:40:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 13 May 2018 16:40:03 -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=SsKt22bk19ItQxUl3TyVXOJYyQ ggmV34XERsked33N0=; b=HcCRKSw2njOmABj7DYTwFNF4Lu2qDzYurUeBEX2eSF X5i+zAL8r2v19w98HjxMxnyJxlqEl+Ib5QojFzW+YqsKR1s+VlkpzUfs6rDbOkUS 5cPIWSoX39x6zaCngZhsMlOel6iULnvwqceuvMwK6suF6dc1HJPkGAIJPSGk3Fti I= 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=SsKt22 bk19ItQxUl3TyVXOJYyQggmV34XERsked33N0=; b=YSdGRIU9aTZ920mAD6wBsp 5rzJYoSctBBJJQ/RQLA3uO5X2cmqPhQTwicaw/W2LXLjCdNZt+7DquJ3PHX+Pdd0 0HMroRyZZ3Ve7XCYFMl80bnF+cP2+yYSwAuEnZgF+Xi3qrM5rWbtHi8pL4H6Q6ag 0xRDhBpEqapYeCVFokrj0s0l5A7FD5o7HmnM6LDUgNSu3OreVC04tk+EshBQpJm4 yq1J1KsQNt/5InHbLBI96LC4EQw79G8seIEBStxHUI9padJsYK3zEaHltPwKXVAW XZOUT+oq9W4XSr6Xf0ATH+S4VBnKBlID7e9TiDLctj4Av693tJa04g55DwqQffMA == 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 E4DE0E4443; Sun, 13 May 2018 16:40:01 -0400 (EDT) From: Thomas Monjalon To: Andy Green Cc: dev@dpdk.org, stable@dpdk.org Date: Sun, 13 May 2018 22:40:00 +0200 Message-ID: <2487048.egYbSRWGYj@xps> In-Reply-To: <152609033730.121661.15300461327237900961.stgit@localhost.localdomain> References: <152609021699.121661.5295227351721865436.stgit@localhost.localdomain> <152609033730.121661.15300461327237900961.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v3 03/24] rte_common.h: cast gcc builtin result to avoid complaints X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2018 20:40:03 -0000 12/05/2018 03:58, Andy Green: > /projects/lagopus/src/dpdk/build/include/rte_common.h:416:9: > warning: conversion to 'uint32_t' {aka 'unsigned int'} from > 'int' may change the sign of the result [-Wsign-conversion] > return __builtin_ctz(v); > ^~~~~~~~~~~~~~~~ > > The builtin is defined to return int, but we want to > return it as uint32_t. Its only defined valid return > values are positive integers or zero, which is OK for > uint32_t. So just add an explicit cast. Fixes: 03f6bced5bba ("eal: use intrinsic function") Cc: stable@dpdk.org > Signed-off-by: Andy Green Applied, thanks