Go to file
David Marchand 4b28dda3dc mem: fix build of virtual address hinting for 32-bit
The initial commit doesn't build for 32-bit:
8ea9ff83 (mem: allow virtual memory address hinting)

lib/librte_eal/linuxapp/eal/eal.c: In function ‘eal_parse_base_virtaddr’:
build/include/rte_common.h:133:22:
error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
  RTE_PTR_ALIGN_FLOOR((typeof(ptr))RTE_PTR_ADD(ptr, (align) - 1), align)
                      ^

RTE_PTR_ALIGN_CEIL return type is the same as what we give it as input.
So instead of casting the returned value, cast 'addr' which should be the same
as base_virtaddr.

Reported-by: Mats Liljegren <mats.liljegren@enea.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-03-20 15:34:46 +01:00
app pcap: revert build patches 2014-03-19 14:33:52 +01:00
config kvargs: add a new library to parse key/value arguments 2014-02-26 11:01:13 +01:00
doc pcap: revert build patches 2014-03-19 14:33:52 +01:00
examples examples/netmap_compat: import netmap compatibility example 2014-02-26 10:47:59 +01:00
lib mem: fix build of virtual address hinting for 32-bit 2014-03-20 15:34:46 +01:00
mk pcap: revert build patches 2014-03-19 14:33:52 +01:00
scripts update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
tools update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile add FreeBSD support 2014-02-25 21:29:18 +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
Makefile add FreeBSD support 2014-02-25 21:29:18 +01:00