Skip to content

Commit

Permalink
cgroups: fix declarations and headers
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Sep 15, 2021
1 parent df0834e commit a9502f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#include <sys/types.h>
#include <unistd.h>

#include "cgroup.h"
#include "af_unix.h"
#include "caps.h"
#include "cgroup.h"
#include "cgroup2_devices.h"
#include "cgroup_utils.h"
#include "commands.h"
Expand Down
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit a9502f5

Please sign in to comment.