From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 1F2112BF3 for ; Wed, 23 May 2018 14:10:50 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id k5-v6so13967414wrn.3 for ; Wed, 23 May 2018 05:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PYCHpggxgkuOe7ijz7HNIU5UoZRWNiddHj14xYWDAic=; b=SXYB0WGUluytI7jqQOMnVUZX5VASI/Z5lv2viUjY9osCcs56KVNxF7incGU0icmZNk OtffolwcrHubFwXtrYYDHFzSrtJ/63pcNT2D0PQYJ7DZjJZDtaN444SDGRWV2P0UdJef pYBxy9t7cAyVvYDRKYlL/WMtXECwKTSrtHVq7EqvhrGiQp9Wb0UNyK643FTfvdlsbTg5 LbvymENOqJbkHG3KcNJT6iAEeLt4EUstEBot4nEf6a+Ke7pCrgbYeGEUB5IzEhq3sBOb BLfz/B+BikoV4mGcFejutMBV44cRPc8o4av2iBTesEkSFkDf0C/C1h98Ps0FVk/mrxT1 iXTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PYCHpggxgkuOe7ijz7HNIU5UoZRWNiddHj14xYWDAic=; b=L/XvKwSEraymBG1y81d9Aeq/qvuZwSAW+TE2zinhphVttzzSPYTEmF9UxESn/6wIpQ bxlC7Ca9UKScvD9RVOfB93P05ZyQEi9ioM5HeSr1Ip8L5dbDD4p1VWhatmJZ3gXP/She B02nWWZG6JH7bWZnkl1+aKhqGP3h5WzBambVKNwrntk9c2VzuKcQq1h1BPHGcGazN2hE /GxQ7kt4dr484bDVBZxWT7CBDPrDWRr3novIPltAvGNpW6o+QJ2xZyvfHhDtaAcmSUSW uXvWLOX9ognzBG/T94a4YUxFiULo3RyHV0LAdw9BSEAvl4YhwFvPk1LhCUPh/9CzNFYx jn6A== X-Gm-Message-State: ALKqPwddpMcitKTs5Uy7Y7jBmdEBAA71pEeofjYLrOPfU1Vz+77PNdEM 366sHdycD+xXO1F1nLfeoA0= X-Google-Smtp-Source: AB8JxZpyN+Apb3g38PrEXcaSV1EQGDigoyLizr7sgvnEwxfvmbjfhpcvZQeGvSoWbb9jPN/91IbV1w== X-Received: by 2002:adf:8df3:: with SMTP id o106-v6mr2407864wrb.251.1527077449817; Wed, 23 May 2018 05:10:49 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id n17-v6sm12843687wra.3.2018.05.23.05.10.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:10:48 -0700 (PDT) From: luca.boccassi@gmail.com To: Andy Green Cc: dpdk stable Date: Wed, 23 May 2018 13:09:31 +0100 Message-Id: <20180523121010.8385-20-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'ethdev: explicit cast of queue count return' has been queued to stable release 18.02.2 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: Wed, 23 May 2018 12:10:50 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From cf79056e3713274f7899616918fd04859876eed8 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 18 May 2018 21:02:38 +0800 Subject: [PATCH] ethdev: explicit cast of queue count return [ upstream commit 45d1be93b9020dfe9c1f3e81822621580312dcc3 ] GCC 8.1 produces a warning: rte_ethdev.h: In function 'rte_eth_rx_queue_count': 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); ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 33cf6be04d60 ("ethdev: add sanity checks to functions") Signed-off-by: Andy Green --- lib/librte_ether/rte_ethdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 2243039e7..877c13cd2 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -3675,7 +3675,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); } /** -- 2.14.2