From 1b284d07f1778cf82c5f34de23563550fba0567a Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Thu, 23 Aug 2018 18:37:16 +0200 Subject: [PATCH] Prep v239: Unmask cg_weight_parse() --- src/basic/cgroup-util.c | 2 +- src/basic/cgroup-util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index dd2f3e866..42395aae5 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -2812,7 +2812,6 @@ bool cg_is_hybrid_wanted(void) { #endif // 0 } -#if 0 /// UNNEEDED by elogind int cg_weight_parse(const char *s, uint64_t *ret) { uint64_t u; int r; @@ -2833,6 +2832,7 @@ int cg_weight_parse(const char *s, uint64_t *ret) { return 0; } +#if 0 /// UNNEEDED by elogind const uint64_t cgroup_io_limit_defaults[_CGROUP_IO_LIMIT_TYPE_MAX] = { [CGROUP_IO_RBPS_MAX] = CGROUP_LIMIT_MAX, [CGROUP_IO_WBPS_MAX] = CGROUP_LIMIT_MAX, diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index 109e56c58..25e634dea 100644 --- a/src/basic/cgroup-util.h +++ b/src/basic/cgroup-util.h @@ -257,8 +257,8 @@ bool cg_is_hybrid_wanted(void); const char* cgroup_controller_to_string(CGroupController c) _const_; CGroupController cgroup_controller_from_string(const char *s) _pure_; -#if 0 /// UNNEEDED by elogind int cg_weight_parse(const char *s, uint64_t *ret); +#if 0 /// UNNEEDED by elogind int cg_cpu_shares_parse(const char *s, uint64_t *ret); int cg_blkio_weight_parse(const char *s, uint64_t *ret); #endif // 0 -- 2.30.2