libxl: ARM build: fix type of libxl__srm_callout_callback_restore_results
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 4 Apr 2016 10:41:19 +0000 (11:41 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 4 Apr 2016 10:50:17 +0000 (11:50 +0100)
commitd9eadad55eb99c80a0a2841e8ca227c75de66891
tree77cc5dc644b66bb31e3f47b6f462525c3fca4a39
parentd887c19f00c58e67086f3a9885883f470ea35ba2
libxl: ARM build: fix type of libxl__srm_callout_callback_restore_results

COLO introduced a few callbacks. The original implementation used
unsigned long for a type which in fact should be xen_pfn_t. That broke
libxl compilation on ARM, because xen_pfn_t is not a synonym for
unsigned long on ARM platform.

Fixing this requires modifying the perl script: specifically now we
need to include xenctrl.h before _libxl_save_msgs_*.h, rather than
afterwards, so that we can use xen_pfn_t there.

Reported-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_save_msgs_gen.pl