render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
c480ed
From 6ee7a399fe93348c24c4535a2ada43ea67144a22 Mon Sep 17 00:00:00 2001
c480ed
Message-Id: <6ee7a399fe93348c24c4535a2ada43ea67144a22@dist-git>
c480ed
From: Pavel Hrdina <phrdina@redhat.com>
c480ed
Date: Mon, 1 Jul 2019 17:05:53 +0200
c480ed
Subject: [PATCH] vircgroup: Unexport unused function
c480ed
 virCgroupRemoveRecursively
c480ed
MIME-Version: 1.0
c480ed
Content-Type: text/plain; charset=UTF-8
c480ed
Content-Transfer-Encoding: 8bit
c480ed
c480ed
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
c480ed
(cherry picked from commit 32686849fcdc2faca8735869eaa8d5453283a84c)
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: <0e830b8383a92e496cd492d8b91b26172dd0e667.1561993099.git.phrdina@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
---
c480ed
 src/libvirt_private.syms |  1 -
c480ed
 src/util/vircgroup.c     | 11 +----------
c480ed
 src/util/vircgroup.h     |  1 -
c480ed
 3 files changed, 1 insertion(+), 12 deletions(-)
c480ed
c480ed
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
c480ed
index 41fca88d09..47695eb507 100644
c480ed
--- a/src/libvirt_private.syms
c480ed
+++ b/src/libvirt_private.syms
c480ed
@@ -1569,7 +1569,6 @@ virCgroupNewSelf;
c480ed
 virCgroupNewThread;
c480ed
 virCgroupPathOfController;
c480ed
 virCgroupRemove;
c480ed
-virCgroupRemoveRecursively;
c480ed
 virCgroupSetBlkioDeviceReadBps;
c480ed
 virCgroupSetBlkioDeviceReadIops;
c480ed
 virCgroupSetBlkioDeviceWeight;
c480ed
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
c480ed
index 8ef6fb5e1a..7d8bf3419a 100644
c480ed
--- a/src/util/vircgroup.c
c480ed
+++ b/src/util/vircgroup.c
c480ed
@@ -3312,7 +3312,7 @@ virCgroupGetCpuacctPercpuUsage(virCgroupPtr group, char **usage)
c480ed
 }
c480ed
 
c480ed
 
c480ed
-int
c480ed
+static int
c480ed
 virCgroupRemoveRecursively(char *grppath)
c480ed
 {
c480ed
     DIR *grpdir;
c480ed
@@ -4529,15 +4529,6 @@ virCgroupSetCpuCfsQuota(virCgroupPtr group ATTRIBUTE_UNUSED,
c480ed
 }
c480ed
 
c480ed
 
c480ed
-int
c480ed
-virCgroupRemoveRecursively(char *grppath ATTRIBUTE_UNUSED)
c480ed
-{
c480ed
-    virReportSystemError(ENXIO, "%s",
c480ed
-                         _("Control groups not supported on this platform"));
c480ed
-    return -1;
c480ed
-}
c480ed
-
c480ed
-
c480ed
 int
c480ed
 virCgroupRemove(virCgroupPtr group ATTRIBUTE_UNUSED)
c480ed
 {
c480ed
diff --git a/src/util/vircgroup.h b/src/util/vircgroup.h
c480ed
index 74c7dbcccc..138bb3c076 100644
c480ed
--- a/src/util/vircgroup.h
c480ed
+++ b/src/util/vircgroup.h
c480ed
@@ -273,7 +273,6 @@ int virCgroupGetCpusetMemoryMigrate(virCgroupPtr group, bool *migrate);
c480ed
 int virCgroupSetCpusetCpus(virCgroupPtr group, const char *cpus);
c480ed
 int virCgroupGetCpusetCpus(virCgroupPtr group, char **cpus);
c480ed
 
c480ed
-int virCgroupRemoveRecursively(char *grppath);
c480ed
 int virCgroupRemove(virCgroupPtr group);
c480ed
 
c480ed
 int virCgroupKillRecursive(virCgroupPtr group, int signum);
c480ed
-- 
c480ed
2.22.0
c480ed