From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.warmcat.com (mail.warmcat.com [163.172.24.82]) by dpdk.org (Postfix) with ESMTP id 49950AAEA for ; Fri, 18 May 2018 15:03:26 +0200 (CEST) From: Andy Green To: dev@dpdk.org Cc: shreyansh.jain@nxp.com, bruce.richardson@intel.com Date: Fri, 18 May 2018 21:02:38 +0800 Message-ID: <152664855807.108129.17956556895871810518.stgit@localhost.localdomain> In-Reply-To: References: User-Agent: StGit/unknown-version Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] [PATCH] rte_ethdev.h: fix gcc8.1 sign conversion warining 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, 18 May 2018 13:03:26 -0000 /projects/lagopus/src/dpdk/build/include/rte_ethdev.h: In function 'rte_eth_rx_queue_count': /projects/lagopus/src/dpdk/build/include/rte_ethdev.h:3882:10: warning: conversion to 'int' from 'uint32_t' {aka 'unsigned int'} may change the sign of the result [-Wsign-conversion] return (*dev->dev_ops->rx_queue_count)(dev, queue_id); ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Andy Green Fixes: 439a90b5f2 ("ethdev: reorder inline functions") --- lib/librte_ethdev/rte_ethdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index f8815e994..d52c1bed9 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -3874,7 +3874,7 @@ rte_eth_rx_queue_count(uint16_t port_id, uint16_t queue_id) if (queue_id >= dev->data->nb_rx_queues) return -EINVAL; - return (*dev->dev_ops->rx_queue_count)(dev, queue_id); + return (int)(*dev->dev_ops->rx_queue_count)(dev, queue_id); } /**