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