From c0308bdfb7c85c72d7242db4d179de205ca6d365 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 1 Sep 2026 09:52:45 +0200 Subject: [PATCH] XSM: make xsm_default_action() const-correct To be able to properly use const on dummy hook function parameters, add const to both domain pointers. Signed-off-by: Jan Beulich Reviewed-by: Jason Andryuk Acked-by: Daniel P. Smith --- xen/include/xsm/dummy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/xsm/dummy.h b/xen/include/xsm/dummy.h index 7af5cbdfb7..ffb5ae7831 100644 --- a/xen/include/xsm/dummy.h +++ b/xen/include/xsm/dummy.h @@ -76,7 +76,7 @@ void __xsm_action_mismatch_detected(void); #endif /* CONFIG_XSM */ static always_inline int xsm_default_action( - xsm_default_t action, struct domain *src, struct domain *target) + xsm_default_t action, const struct domain *src, const struct domain *target) { switch ( action ) { case XSM_HOOK: