mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +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;
|
||||
}
|
||||
#else /* !__linux__ */
|
||||
int virHostValidateCGroupControllers(const char *hvname,
|
||||
int controllers,
|
||||
int virHostValidateCGroupControllers(const char *hvname ATTRIBUTE_UNUSED,
|
||||
int controllers ATTRIBUTE_UNUSED,
|
||||
virHostValidateLevel level)
|
||||
{
|
||||
virHostMsgFail(level, "%s", "This platform does not support cgroups");
|
||||
|
Loading…
x
Reference in New Issue
Block a user