From: Christian Brauner Date: Wed, 15 Sep 2021 08:28:50 +0000 (+0200) Subject: cgroups: fix declarations and headers X-Git-Tag: lxc-5.0.0~90^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9502f5dc965a5808d2a5b91d45eb1fa13b92d3b;p=thirdparty%2Flxc.git cgroups: fix declarations and headers Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index b111f521c..6a5d9eeab 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -30,9 +30,9 @@ #include #include +#include "cgroup.h" #include "af_unix.h" #include "caps.h" -#include "cgroup.h" #include "cgroup2_devices.h" #include "cgroup_utils.h" #include "commands.h" diff --git a/src/lxc/cgroups/cgroup.h b/src/lxc/cgroups/cgroup.h index d26559d11..a809b8253 100644 --- a/src/lxc/cgroups/cgroup.h +++ b/src/lxc/cgroups/cgroup.h @@ -313,7 +313,7 @@ static inline int cgroup_unified_fd(const struct cgroup_ops *ops) __first, __VA_ARGS__); \ }) -static void put_cgroup_ctx(struct cgroup_ctx *ctx) +static inline void put_cgroup_ctx(struct cgroup_ctx *ctx) { if (!IS_ERR_OR_NULL(ctx)) { for (__u32 idx = 0; idx < ctx->fd_len; idx++)