From: Julien Grall Date: Thu, 21 Sep 2017 13:33:32 +0000 (+0200) Subject: perfc: fix build after commit fc32575968 when CONFIG_PERF_COUNTERS=y X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1364 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2177ad0cb53237c35e78f6c6b9adcd15b6ffb1d;p=xen.git perfc: fix build after commit fc32575968 when CONFIG_PERF_COUNTERS=y 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 Reviewed-by: Wei Liu --- diff --git a/xen/common/perfc.c b/xen/common/perfc.c index 76051739a5..067567766a 100644 --- a/xen/common/perfc.c +++ b/xen/common/perfc.c @@ -153,7 +153,7 @@ void perfc_reset(unsigned char key) } 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; @@ -190,7 +190,7 @@ static int perfc_copy_info(XEN_GUEST_HANDLE_64(xen_sysctl_perfc_desc_t) desc, } 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) )