Loading include/linux/cgroup.h +4 −0 Original line number Original line Diff line number Diff line Loading @@ -943,6 +943,8 @@ struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry, #else /* !CONFIG_CGROUPS */ #else /* !CONFIG_CGROUPS */ struct cgroup_subsys_state; static inline int cgroup_init_early(void) { return 0; } static inline int cgroup_init_early(void) { return 0; } static inline int cgroup_init(void) { return 0; } static inline int cgroup_init(void) { return 0; } static inline void cgroup_fork(struct task_struct *p) {} static inline void cgroup_fork(struct task_struct *p) {} Loading @@ -955,6 +957,8 @@ static inline int cgroupstats_build(struct cgroupstats *stats, return -EINVAL; return -EINVAL; } } static inline void css_put(struct cgroup_subsys_state *css) {} /* No cgroups - nothing to do */ /* No cgroups - nothing to do */ static inline int cgroup_attach_task_all(struct task_struct *from, static inline int cgroup_attach_task_all(struct task_struct *from, struct task_struct *t) struct task_struct *t) Loading Loading
include/linux/cgroup.h +4 −0 Original line number Original line Diff line number Diff line Loading @@ -943,6 +943,8 @@ struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry, #else /* !CONFIG_CGROUPS */ #else /* !CONFIG_CGROUPS */ struct cgroup_subsys_state; static inline int cgroup_init_early(void) { return 0; } static inline int cgroup_init_early(void) { return 0; } static inline int cgroup_init(void) { return 0; } static inline int cgroup_init(void) { return 0; } static inline void cgroup_fork(struct task_struct *p) {} static inline void cgroup_fork(struct task_struct *p) {} Loading @@ -955,6 +957,8 @@ static inline int cgroupstats_build(struct cgroupstats *stats, return -EINVAL; return -EINVAL; } } static inline void css_put(struct cgroup_subsys_state *css) {} /* No cgroups - nothing to do */ /* No cgroups - nothing to do */ static inline int cgroup_attach_task_all(struct task_struct *from, static inline int cgroup_attach_task_all(struct task_struct *from, struct task_struct *t) struct task_struct *t) Loading