tools/libxl: Fix libxl_nocpuid.c build with json-c
PATCH 1/1 tools/libxl: Fix libxl_nocpuid.c build with json-c
libxl_nocpuid.c needs the same treatment as libxl_cpuid.c
---
CC: Anthony PERARD <[email protected]>
CC: Juergen Gross <[email protected]>
CC: Michael Young <[email protected]>
CC: Stefano Stabellini <[email protected]>
Discovered while trying to complete the ARM CI cleanup.
This supercedes
https://lore.kernel.org/xen-devel/[email protected]/T/#u
using Anthony's suggested approach.
Failed run:
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14282279751
Succeeding run (same container):
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14282714527
--- tools/libs/light/libxl_nocpuid.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
tools/libs/light/libxl_nocpuid.c +10 -0
@@ -40,11 +40,21 @@ int libxl__cpuid_legacy(libxl_ctx *ctx, uint32_t domid, bool restore,return 0 ; } +#ifdef HAVE_LIBJSONC +int libxl_cpuid_policy_list_gen_jso (json_object **jso_r,libxl_cpuid_policy_list *pl) +{ + *jso_r =NULL ; +return 0 ; +} +#endif + +#ifdef HAVE_LIBYAJL yajl_gen_status libxl_cpuid_policy_list_gen_json (yajl_gen hand,libxl_cpuid_policy_list *pcpuid) {return 0 ; } +#endif int libxl__cpuid_policy_list_parse_json(libxl__gc *gc, const libxl__json_object *o,
Signature · 1 line
2.39.5
Quoted 12 lines · Andrew Cooper
libxl_nocpuid.cneeds the same treatment aslibxl_cpuid.cFixes f6c6f2679d49 ("libxl: Convert libxl__object_to_json() to json-c")Signed-off-by Andrew Cooper <[email protected]>---
Discovered while trying to complete the ARM CI cleanup.
This supercedes
https://lore.kernel.org/xen-devel/[email protected]/T/#u
using Anthony's suggested approach.
Quoted 5 lines
Failed run:
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14282279751Succeeding run (same container):
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14282714527
Thanks,
--
Anthony Perard | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech