numam-dpdk/lib/librte_mbuf
David Marchand a2ff2827dc mbuf: fix C++ build on void pointer cast
Including rte_mbuf.h in C++ triggers the following warning as C++ does not
allow implicit casting of a void *.

In file included from test.cpp:1:0:
rte_mbuf.h: In function ‘rte_mbuf_ext_shared_info*
rte_pktmbuf_ext_shinfo_init_helper(void*, uint16_t*,
rte_mbuf_extbuf_free_callback_t, void*)’:
rte_mbuf.h:1349:9: error: invalid conversion
from ‘void*’ to ‘rte_mbuf_ext_shared_info*’ [-fpermissive]
  shinfo = RTE_PTR_ALIGN_FLOOR(RTE_PTR_SUB(buf_end,
         ^

Fixes: a53aa2b9f3 ("mbuf: support attaching external buffer")

Signed-off-by: David Marchand <david.marchand@6wind.com>
2018-05-18 13:20:49 +02:00
..
Makefile mbuf: remove control mbuf 2018-04-11 23:40:40 +02:00
meson.build build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
rte_mbuf_pool_ops.c mbuf: fix truncated strncpy 2018-04-04 17:34:20 +02:00
rte_mbuf_pool_ops.h add experimental tag to appropriate functions 2018-01-29 23:35:29 +01:00
rte_mbuf_ptype.c ethdev: introduce tunnel type MPLS-in-GRE and MPLS-in-UDP 2018-04-27 18:00:55 +01:00
rte_mbuf_ptype.h ethdev: introduce tunnel type MPLS-in-GRE and MPLS-in-UDP 2018-04-27 18:00:55 +01:00
rte_mbuf_version.map lib: clear experimental version tag in linker scripts 2018-05-14 03:37:28 +02:00
rte_mbuf.c ethdev: introduce new tunnel VXLAN-GPE 2018-04-27 18:00:55 +01:00
rte_mbuf.h mbuf: fix C++ build on void pointer cast 2018-05-18 13:20:49 +02:00