This patch adds CONFIG_SYSTEM_SUSPEND guards around freeze_domains
and thaw_domains functions.
This ensures they are only compiled into the hypervisor when the system
suspend functionality is enabled, aligning their inclusion with their
specific use case.
This addresses two Misra Rule 2.1 violations.
Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
return 0;
}
+#ifdef CONFIG_SYSTEM_SUSPEND
+
void freeze_domains(void)
{
struct domain *d;
rcu_read_unlock(&domlist_read_lock);
}
+#endif /* CONFIG_SYSTEM_SUSPEND */
+
/*
* Local variables:
* mode: C