[LTP] [PATCH 2/6] API/cgroups: Remove obsolete function in API
Richard Palethorpe
rpalethorpe@suse.com
Thu May 13 17:21:21 CEST 2021
Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
---
lib/tst_cgroup.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c
index d3f1a8ba4..316dddde5 100644
--- a/lib/tst_cgroup.c
+++ b/lib/tst_cgroup.c
@@ -225,12 +225,6 @@ static void add_ctrl(uint32_t *const ctrl_field,
*ctrl_field |= 1 << ctrl->ctrl_indx;
}
-__attribute__ ((warn_unused_result))
-struct cgroup_root *tst_cgroup_root_get(void)
-{
- return roots[0].ver ? roots : roots + 1;
-}
-
static int cgroup_v2_mounted(void)
{
return !!roots[0].ver;
--
2.31.1
More information about the ltp
mailing list