vpci: do not expose unneeded functions to the user-space test harness
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 22 Mar 2018 14:00:00 +0000 (15:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Mar 2018 09:27:50 +0000 (10:27 +0100)
commit738301591ccb663e7d87f431cdda3d5c9d31ab97
treec53a0677eadd227fa6d701882c6921fc19b9f4b1
parentd6281be9d01456a5989daa4eb2eccd718d73857d
vpci: do not expose unneeded functions to the user-space test harness

Some functions in vpci.c (vpci_remove_device and vpci_add_handlers)
are not used by the user-space test harness, so guard them with
__XEN__ in order to avoid exposing them to the user-space test
harness.

Requested-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/tests/vpci/Makefile
xen/drivers/vpci/vpci.c
xen/include/xen/vpci.h