eal: ensure constness of container_of target
authorJan Blunck <jblunck@infradead.org>
Tue, 14 Feb 2017 14:36:06 +0000 (15:36 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 8 Mar 2017 13:04:29 +0000 (14:04 +0100)
commitb2fba636909e57f99d6e10781fbed95954128b22
tree0d6ca0bb730c5d64ab12eb57ed1941dd97c3c6e3
parent7cfd28057832898ab1793603b2d1724039a9e18a
eal: ensure constness of container_of target

This adds a check to ensure that the container_of() macro is not used to
cast away (remove) constness.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/common/include/rte_common.h