mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
virt-host-validate: Fix build on non-Linux
For non-Linux platforms we have virHostValidateCGroupControllers() stub which only reports an error. But we are not marking the ignored arguments the way we should. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
0a7101c89b
commit
8524faf8c4
@ -322,8 +322,8 @@ int virHostValidateCGroupControllers(const char *hvname,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#else /* !__linux__ */
|
#else /* !__linux__ */
|
||||||
int virHostValidateCGroupControllers(const char *hvname,
|
int virHostValidateCGroupControllers(const char *hvname ATTRIBUTE_UNUSED,
|
||||||
int controllers,
|
int controllers ATTRIBUTE_UNUSED,
|
||||||
virHostValidateLevel level)
|
virHostValidateLevel level)
|
||||||
{
|
{
|
||||||
virHostMsgFail(level, "%s", "This platform does not support cgroups");
|
virHostMsgFail(level, "%s", "This platform does not support cgroups");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user