From: Sven Eden Date: Tue, 5 Jun 2018 17:08:31 +0000 (+0200) Subject: Prep v238: Uncomment now needed headers and unmask now needed functions in src/core... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4ecaac69d8ee3f5b7f3949b144ba51e576540c89;p=elogind.git Prep v238: Uncomment now needed headers and unmask now needed functions in src/core (2/6) --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 1b2235d04..dd173e2a3 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -38,7 +38,7 @@ #include "stdio-util.h" #include "string-table.h" #include "string-util.h" -//#include "virt.h" +#include "virt.h" #define CGROUP_CPU_QUOTA_PERIOD_USEC ((usec_t) 100 * USEC_PER_MSEC) @@ -56,6 +56,7 @@ bool manager_owns_root_cgroup(Manager *m) { return isempty(m->cgroup_root) || path_equal(m->cgroup_root, "/"); } +#if 0 /// UNNEEDED by elogind bool unit_has_root_cgroup(Unit *u) { assert(u); @@ -68,7 +69,6 @@ bool unit_has_root_cgroup(Unit *u) { return unit_has_name(u, SPECIAL_ROOT_SLICE); } -#if 0 /// UNNEEDED by elogind static void cgroup_compat_warn(void) { static bool cgroup_compat_warned = false; diff --git a/src/core/cgroup.h b/src/core/cgroup.h index 79898613b..29e8cb5e2 100644 --- a/src/core/cgroup.h +++ b/src/core/cgroup.h @@ -216,7 +216,10 @@ int unit_reset_ip_accounting(Unit *u); #endif // 0 bool manager_owns_root_cgroup(Manager *m); + +#if 0 /// UNNEEDED by elogind bool unit_has_root_cgroup(Unit *u); +#endif // 0 int manager_notify_cgroup_empty(Manager *m, const char *group);