ethdev: explicit cast of queue count return
authorAndy Green <andy@warmcat.com>
Fri, 18 May 2018 13:02:38 +0000 (21:02 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 20 May 2018 22:21:38 +0000 (00:21 +0200)
commit45d1be93b9020dfe9c1f3e81822621580312dcc3
tree57901c0fd7e20522205510333a3f8e646f56b8ac
parent8bf255bb3862d8f35496b26bc8c2511239bdc18b
ethdev: explicit cast of queue count return

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")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
lib/librte_ethdev/rte_ethdev.h