From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 21/24] rte_ethdev.h: explicit cast for truncation Date: Sun, 13 May 2018 22:43:37 +0200 Message-ID: <3674207.DuE9g2naJb@xps> References: <152609021699.121661.5295227351721865436.stgit@localhost.localdomain> <152609042788.121661.16333710243796218948.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, stable@dpdk.org To: Andy Green Return-path: In-Reply-To: <152609042788.121661.16333710243796218948.stgit@localhost.localdomain> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 12/05/2018 04:00, Andy Green: > /projects/lagopus/src/dpdk/build/include/rte_ethdev.h: > In function 'rte_eth_tx_buffer_flush': > /projects/lagopus/src/dpdk/build/include/rte_ethdev.h:4248:55: > warning: conversion from 'int' to 'uint16_t' > {aka 'short unsigned int'} may change value [-Wconversion] > buffer->error_callback(&buffer->pkts[sent], to_send - sent, Fixes: d6c99e62c852 ("ethdev: add buffered Tx") Cc: stable@dpdk.org > Signed-off-by: Andy Green Applied, thanks