On Mon, May 21, 2018 at 10:01:13AM +0800, Andy Green wrote:
> /projects/lagopus/src/dpdk/build/include/rte_mbuf.h:
> In function 'rte_pktmbuf_detach':
> /projects/lagopus/src/dpdk/build/include/rte_mbuf.h:
> 1583:17: warning: conversion from 'uint32_t' {aka
> 'unsigned int'} to 'uint16_t' {aka
> 'short unsigned int'} may change value [-Wconversion]
> m->priv_size = priv_size;
> ^~~~~~~~~
>
> The temp priv_size is declared as a uint32_t. But it
> only deals in uint16_t. m->priv_size is a uint16_t.
> Change it to a uint16_t.
>
> Fixes: 355e6735b3 ("mbuf: fix cloning with private mbuf data")
> Fixes: 1a60a0daa6 ("mbuf: fix segments number type increase")
> Signed-off-by: Andy Green <[email protected]>
> ---
> lib/librte_mbuf/rte_mbuf.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Acked-by: Bruce Richardson <[email protected]>
- Re: [dpdk-dev] [PATCH v5 00/21] Fixes for GCC8 against la... Thomas Monjalon
- [dpdk-dev] [PATCH v6 0/8] Fixes for GCC8 against lag... Andy Green
- [dpdk-dev] [PATCH v6 3/8] rte_ip.h: cast type de... Andy Green
- Re: [dpdk-dev] [PATCH v6 3/8] rte_ip.h: cast... Bruce Richardson
- [dpdk-dev] [PATCH v6 2/8] rte_rwlock.h: gcc8 sig... Andy Green
- Re: [dpdk-dev] [PATCH v6 2/8] rte_rwlock.h: ... Bruce Richardson
- [dpdk-dev] [PATCH v6 1/8] lib/librte_eal: explic... Andy Green
- [dpdk-dev] [PATCH] lib/librte_eal: change ty... Andy Green
- Re: [dpdk-dev] [PATCH] lib/librte_eal: c... Bruce Richardson
- [dpdk-dev] [PATCH v6 4/8] rte_mbuf.h: reduce tem... Andy Green
- Re: [dpdk-dev] [PATCH v6 4/8] rte_mbuf.h: re... Bruce Richardson
- [dpdk-dev] [PATCH v6 8/8] rte_ethdev.h: align si... Andy Green
- Re: [dpdk-dev] [PATCH v6 8/8] rte_ethdev.h: ... Bruce Richardson
- Re: [dpdk-dev] [PATCH v6 8/8] rte_ethdev... Andy Green
- [dpdk-dev] [PATCH v6 5/8] rte_mbuf.h: avoid impl... Andy Green
- Re: [dpdk-dev] [PATCH v6 5/8] rte_mbuf.h: av... Bruce Richardson
- Re: [dpdk-dev] [PATCH v6 5/8] rte_mbuf.h... Andy Green
- [dpdk-dev] [PATCH v6 7/8] rte_mbuf.h: add and su... Andy Green
- Re: [dpdk-dev] [PATCH v6 7/8] rte_mbuf.h: ad... Bruce Richardson
- [dpdk-dev] [PATCH v6 6/8] rte_mbuf.h: choose cor... Andy Green
- Re: [dpdk-dev] [PATCH v6 6/8] rte_mbuf.h: ch... Bruce Richardson

