The commit
fc32575968 "public/sysctl: drop unnecessary typedefs and
handles" went a bit too far by replacing all xen_systcl_*_t type to
struct xen_sysctl_*.
However, xen_sysctl_perfc_val_t was a typedef on uint32_t and therefore
is not associated to a structure.
Use xen_sysctl_perfc_val_t to fix the build when CONFIG_PERF_COUNTERS=y
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
}
static struct xen_sysctl_perfc_desc perfc_d[NR_PERFCTRS];
-static struct xen_sysctl_perfc_val *perfc_vals;
+static xen_sysctl_perfc_val_t *perfc_vals;
static unsigned int perfc_nbr_vals;
static cpumask_t perfc_cpumap;
}
xfree(perfc_vals);
- perfc_vals = xmalloc_array(struct xen_sysctl_perfc_val, perfc_nbr_vals);
+ perfc_vals = xmalloc_array(xen_sysctl_perfc_val_t, perfc_nbr_vals);
}
if ( guest_handle_is_null(desc) )