Go to file
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
app eal: fix type casting of value to align 2015-03-17 00:46:01 +01:00
config null: new poll mode driver 2015-02-26 00:31:45 +01:00
doc scripts: remove useless build tools 2015-03-10 17:55:25 +01:00
examples examples/l2fwd-jobstats: fix error handling in init sequence 2015-03-10 16:14:12 +01:00
lib eal: fix type casting of value to align 2015-03-17 00:46:01 +01:00
mk mk: move internal file 2015-03-09 12:46:46 +01:00
pkg version: 1.8.0 2014-12-20 00:38:39 +01:00
scripts scripts: remove useless build tools 2015-03-10 17:55:25 +01:00
tools tools: fix binding to unsupported driver 2015-03-05 21:33:53 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile scripts: remove useless build tools 2015-03-10 17:55:25 +01:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS maintainers: claim responsibility for docs 2015-03-10 17:31:37 +01:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00