render / rpms / libvirt

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