7755baae83
Translating from an mbuf element to the mbuf pointer does not break alignment constraints. However, the compiler is unaware of this fact and complains on -Wcast-align. This patch modifies the code to use RTE_PTR_SUB(), thereby silencing the compiler by casting through (void *). Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com> Acked-by: Olivier Matz <olivier.matz@6wind.com> |
||
---|---|---|
.. | ||
Makefile | ||
rte_mbuf_version.map | ||
rte_mbuf.c | ||
rte_mbuf.h |