|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] tools/libxl: Fix libxl_nocpuid.c build with json-c
libxl_nocpuid.c needs the same treatment as libxl_cpuid.c
Fixes: f6c6f2679d49 ("libxl: Convert libxl__object_to_json() to json-c")
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Anthony PERARD <anthony.perard@xxxxxxxxxx>
CC: Juergen Gross <jgross@xxxxxxxx>
CC: Michael Young <m.a.young@xxxxxxxxxxxx>
CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Discovered while trying to complete the ARM CI cleanup.
This supercedes
https://lore.kernel.org/xen-devel/94ffdeb1-6826-4c3a-a9c1-3ccc8b129a61@xxxxxxxxxxxx/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(+)
diff --git a/tools/libs/light/libxl_nocpuid.c b/tools/libs/light/libxl_nocpuid.c
index 0630959e760c..ce334633b376 100644
--- a/tools/libs/light/libxl_nocpuid.c
+++ b/tools/libs/light/libxl_nocpuid.c
@@ -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,
--
2.39.5
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |