vfio: export functions even when disabled
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 16 Apr 2018 12:13:56 +0000 (13:13 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 16 Apr 2018 17:33:46 +0000 (19:33 +0200)
commit6e8a721044c6ef677e67991f3f2a9bd0870eecc2
tree989161d82008f6654f30375f25039732fae857b0
parente8a5e886d3565fdae386b32cba88b45f0c4ac4b9
vfio: export functions even when disabled

Previously, VFIO functions were not compiled in and exported if
VFIO compilation was disabled. Fix this by actually compiling
all of the functions unconditionally, and provide missing
prototypes on Linux.

Fixes: 279b581c897d ("vfio: expose functions")
Fixes: 73a639085938 ("vfio: allow to map other memory regions")
Fixes: 964b2f3bfb07 ("vfio: export some internal functions")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/common/include/rte_vfio.h
lib/librte_eal/linuxapp/eal/eal_vfio.c