mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 09:48:32 +00:00
cgroups: fix declarations and headers
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
df0834edba
commit
a9502f5dc9
@ -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"
|
||||
|
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user