[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/5] Make virCgroupIsValidMachine static



From: "Daniel P. Berrange" <berrange redhat com>

The virCgroupIsValidMachine does not need to be called from
outside the cgroups file now, so make it static.

Signed-off-by: Daniel P. Berrange <berrange redhat com>
---
 src/libvirt_private.syms | 1 -
 src/util/vircgroup.c     | 7 ++++---
 src/util/vircgroup.h     | 5 -----
 3 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index b076e60..d9615ea 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1186,7 +1186,6 @@ virCgroupGetMemSwapHardLimit;
 virCgroupGetMemSwapUsage;
 virCgroupHasController;
 virCgroupIsolateMount;
-virCgroupIsValidMachineGroup;
 virCgroupKill;
 virCgroupKillPainfully;
 virCgroupKillRecursive;
diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index fe6c314..308f1a1 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -95,9 +95,10 @@ bool virCgroupAvailable(void)
     return ret;
 }
 
-bool virCgroupIsValidMachineGroup(virCgroupPtr group,
-                                  const char *name,
-                                  const char *drivername)
+static bool 
+virCgroupIsValidMachineGroup(virCgroupPtr group,
+                             const char *name,
+                             const char *drivername)
 {
     size_t i;
     bool valid = false;
diff --git a/src/util/vircgroup.h b/src/util/vircgroup.h
index 4f72aa8..d6222d7 100644
--- a/src/util/vircgroup.h
+++ b/src/util/vircgroup.h
@@ -48,11 +48,6 @@ VIR_ENUM_DECL(virCgroupController);
 
 bool virCgroupAvailable(void);
 
-bool virCgroupIsValidMachineGroup(virCgroupPtr group,
-                                  const char *machinename,
-                                  const char *drivername);
-
-
 int virCgroupNewPartition(const char *path,
                           bool create,
                           int controllers,
-- 
1.8.1.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]