|
|
c313de |
From f3366321b1911d327985ed16717a8589869d6fb3 Mon Sep 17 00:00:00 2001
|
|
|
c313de |
Message-Id: <f3366321b1911d327985ed16717a8589869d6fb3@dist-git>
|
|
|
c313de |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
c313de |
Date: Mon, 1 Jul 2019 17:08:05 +0200
|
|
|
c313de |
Subject: [PATCH] virt-host-validate: Fix build on non-Linux
|
|
|
c313de |
MIME-Version: 1.0
|
|
|
c313de |
Content-Type: text/plain; charset=UTF-8
|
|
|
c313de |
Content-Transfer-Encoding: 8bit
|
|
|
c313de |
|
|
|
c313de |
For non-Linux platforms we have
|
|
|
c313de |
virHostValidateCGroupControllers() stub which only reports an
|
|
|
c313de |
error. But we are not marking the ignored arguments the way we
|
|
|
c313de |
should.
|
|
|
c313de |
|
|
|
c313de |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
c313de |
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
c313de |
(cherry picked from commit 8524faf8c4007edfbc5363a018821139667a9e32)
|
|
|
c313de |
|
|
|
c313de |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
|
|
|
c313de |
|
|
|
c313de |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
c313de |
Message-Id: <34a0cf3fd56060036b473a82c9b2b39beba0d589.1561993100.git.phrdina@redhat.com>
|
|
|
c313de |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c313de |
---
|
|
|
c313de |
tools/virt-host-validate-common.c | 4 ++--
|
|
|
c313de |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
c313de |
|
|
|
c313de |
diff --git a/tools/virt-host-validate-common.c b/tools/virt-host-validate-common.c
|
|
|
c313de |
index 73165d673a..5dd1605daa 100644
|
|
|
c313de |
--- a/tools/virt-host-validate-common.c
|
|
|
c313de |
+++ b/tools/virt-host-validate-common.c
|
|
|
c313de |
@@ -324,8 +324,8 @@ int virHostValidateCGroupControllers(const char *hvname,
|
|
|
c313de |
return ret;
|
|
|
c313de |
}
|
|
|
c313de |
#else /* !__linux__ */
|
|
|
c313de |
-int virHostValidateCGroupControllers(const char *hvname,
|
|
|
c313de |
- int controllers,
|
|
|
c313de |
+int virHostValidateCGroupControllers(const char *hvname ATTRIBUTE_UNUSED,
|
|
|
c313de |
+ int controllers ATTRIBUTE_UNUSED,
|
|
|
c313de |
virHostValidateLevel level)
|
|
|
c313de |
{
|
|
|
c313de |
virHostMsgFail(level, "%s", "This platform does not support cgroups");
|
|
|
c313de |
--
|
|
|
c313de |
2.22.0
|
|
|
c313de |
|