All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/perfc: Fix build after commit fc32575968 when CONFIG_PERF_COUNTERS=y
@ 2017-09-21 11:35 Julien Grall
  2017-09-21 11:38 ` Wei Liu
  2017-09-21 12:57 ` Jan Beulich
  0 siblings, 2 replies; 3+ messages in thread
From: Julien Grall @ 2017-09-21 11:35 UTC (permalink / raw)
  To: xen-devel
  Cc: sstabellini, wei.liu2, George.Dunlap, andrew.cooper3,
	ian.jackson, tim, Julien Grall, jbeulich

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>
---
 xen/common/perfc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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) )
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] xen/perfc: Fix build after commit fc32575968 when CONFIG_PERF_COUNTERS=y
  2017-09-21 11:35 [PATCH] xen/perfc: Fix build after commit fc32575968 when CONFIG_PERF_COUNTERS=y Julien Grall
@ 2017-09-21 11:38 ` Wei Liu
  2017-09-21 12:57 ` Jan Beulich
  1 sibling, 0 replies; 3+ messages in thread
From: Wei Liu @ 2017-09-21 11:38 UTC (permalink / raw)
  To: Julien Grall
  Cc: tim, sstabellini, wei.liu2, George.Dunlap, andrew.cooper3,
	ian.jackson, xen-devel, jbeulich

On Thu, Sep 21, 2017 at 12:35:17PM +0100, Julien Grall wrote:
> 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>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xen/perfc: Fix build after commit fc32575968 when CONFIG_PERF_COUNTERS=y
  2017-09-21 11:35 [PATCH] xen/perfc: Fix build after commit fc32575968 when CONFIG_PERF_COUNTERS=y Julien Grall
  2017-09-21 11:38 ` Wei Liu
@ 2017-09-21 12:57 ` Jan Beulich
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Beulich @ 2017-09-21 12:57 UTC (permalink / raw)
  To: Julien Grall
  Cc: tim, sstabellini, wei.liu2, George.Dunlap, andrew.cooper3,
	ian.jackson, xen-devel

>>> On 21.09.17 at 13:35, <julien.grall@arm.com> wrote:
> 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>

Oops, I'm sorry.
Acked-by: Jan Beulich <jbeulich@suse.com>

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-21 12:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-21 11:35 [PATCH] xen/perfc: Fix build after commit fc32575968 when CONFIG_PERF_COUNTERS=y Julien Grall
2017-09-21 11:38 ` Wei Liu
2017-09-21 12:57 ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.