]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
XSM: correct xsm_get_domain_state()
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Mar 2025 14:21:52 +0000 (15:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Mar 2025 14:21:52 +0000 (15:21 +0100)
Add the missing first parameter and move it next to a close relative.

Fixes: 3ad3df1bd0aa ("xen: add new domctl get_domain_state")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/xsm/xsm.h

index 0689bf5c9f5317d25741b71f5a60d1336013a7f6..8c33b055fc3d93908488eb5c1e5ba4d7c0e04a43 100644 (file)
@@ -231,6 +231,11 @@ static inline int xsm_getdomaininfo(xsm_default_t def, struct domain *d)
     return alternative_call(xsm_ops.getdomaininfo, d);
 }
 
+static inline int xsm_get_domain_state(xsm_default_t def, struct domain *d)
+{
+    return alternative_call(xsm_ops.get_domain_state, d);
+}
+
 static inline int xsm_domctl_scheduler_op(
     xsm_default_t def, struct domain *d, int cmd)
 {
@@ -775,11 +780,6 @@ static inline int xsm_argo_send(const struct domain *d, const struct domain *t)
 
 #endif /* CONFIG_ARGO */
 
-static inline int xsm_get_domain_state(struct domain *d)
-{
-    return alternative_call(xsm_ops.get_domain_state, d);
-}
-
 #endif /* XSM_NO_WRAPPERS */
 
 #ifdef CONFIG_MULTIBOOT