mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <jbeulich@suse.com> Reviewed-by: Jason Andryuk <jason.andryuk@amd.com> Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>
This commit is contained in:
1 parent
452ee45ee1
commit
c0308bdfb7
1 file changed
+1
-1
@@ -76,7 +76,7 @@ void __xsm_action_mismatch_detected(void);
|
|||||||
#endif /* CONFIG_XSM */
|
#endif /* CONFIG_XSM */
|
||||||
|
|
||||||
static always_inline int xsm_default_action(
|
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 ) {
|
switch ( action ) {
|
||||||
case XSM_HOOK:
|
case XSM_HOOK:
|
||||||
|
|||||||