numam-dpdk/lib/librte_malloc
John McNamara 66abc3f310 eal: fix type casting of value to align
Fix a warning when the rte_common.h header is included in a compilation
using  -Wbad-function-cast, such as in Open vSwitch where the
following warning is emitted repeatedly:

    ../rte_common.h: In function 'rte_is_aligned':
    ../rte_common.h:184:9: warning: cast from function call of
    type 'uintptr_t' to non-matching type 'void *' [-Wbad-function-cast]

This change fixes the issue in rte_common.h by using the RTE_ALIGN_FLOOR
macro to get the aligned floor value with generic type casting.

Also removed the rte_align_floor_int() function and replaced it with
the RTE_PTR_ALIGN_FLOOR() macro.

Signed-off-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
2015-03-17 00:46:01 +01:00
..
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
malloc_elem.c eal: fix type casting of value to align 2015-03-17 00:46:01 +01:00
malloc_elem.h lib: fix cache alignment of structures 2014-12-11 01:42:02 +01:00
malloc_heap.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
malloc_heap.h malloc: avoid unknown socket id 2015-02-24 20:22:34 +01:00
rte_malloc_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00
rte_malloc.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
rte_malloc.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00