提交 8524faf8 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
上级 0a7101c8
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册