render / rpms / libvirt

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