summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2016-07-29 11:06:48 +0200
committerDavid Vrabel <david.vrabel@citrix.com>2016-08-24 18:17:27 +0100
commit55467dea2967259f21f4f854fc99d39cc5fea60e (patch)
tree0747b575c667aecfc3baf90d91764d659bc4565b /include/xen
parent9a035a40f7f3f6708b79224b86c5777a3334f7ea (diff)
downloadlinux-55467dea2967259f21f4f854fc99d39cc5fea60e.tar.gz
linux-55467dea2967259f21f4f854fc99d39cc5fea60e.tar.bz2
linux-55467dea2967259f21f4f854fc99d39cc5fea60e.zip
xen: change the type of xen_vcpu_id to uint32_t
We pass xen_vcpu_id mapping information to hypercalls which require uint32_t type so it would be cleaner to have it as uint32_t. The initializer to -1 can be dropped as we always do the mapping before using it and we never check the 'not set' value anyway. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/xen-ops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index 9a37c541822f..b5486e648607 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -9,8 +9,8 @@
DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
-DECLARE_PER_CPU(int, xen_vcpu_id);
-static inline int xen_vcpu_nr(int cpu)
+DECLARE_PER_CPU(uint32_t, xen_vcpu_id);
+static inline uint32_t xen_vcpu_nr(int cpu)
{
return per_cpu(xen_vcpu_id, cpu);
}