mbuf: explicit cast of size on detach
authorAndy Green <andy@warmcat.com>
Thu, 17 May 2018 13:50:22 +0000 (21:50 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 20 May 2018 22:21:19 +0000 (00:21 +0200)
commitc779ebdca0e4765158bd1eaa6f65c9d714605fae
tree402f639d0aedfb5ab27357882ea5b339ee0eab06
parent0298bfb26371ac31654444ea8494b30ceccc3b76
mbuf: explicit cast of size on detach

GCC 8.1 warned:

In function 'rte_pktmbuf_detach':
rte_mbuf.h:1580:14: warning: conversion from 'long unsigned int'
to 'uint32_t' {aka 'unsigned int'} may change value [-Wconversion]
  mbuf_size = sizeof(struct rte_mbuf) + priv_size;
              ^~~~~~

Fixes: 355e6735b335 ("mbuf: fix cloning with private mbuf data")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
lib/librte_mbuf/rte_mbuf.h