diff options
Diffstat (limited to 'include/linux/cgroup.h')
| -rw-r--r-- | include/linux/cgroup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index da0dae0600e6..b9cb94c3102a 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
| @@ -943,6 +943,8 @@ struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry, | |||
| 943 | 943 | ||
| 944 | #else /* !CONFIG_CGROUPS */ | 944 | #else /* !CONFIG_CGROUPS */ |
| 945 | 945 | ||
| 946 | struct cgroup_subsys_state; | ||
| 947 | |||
| 946 | static inline int cgroup_init_early(void) { return 0; } | 948 | static inline int cgroup_init_early(void) { return 0; } |
| 947 | static inline int cgroup_init(void) { return 0; } | 949 | static inline int cgroup_init(void) { return 0; } |
| 948 | static inline void cgroup_fork(struct task_struct *p) {} | 950 | static inline void cgroup_fork(struct task_struct *p) {} |
| @@ -955,6 +957,8 @@ static inline int cgroupstats_build(struct cgroupstats *stats, | |||
| 955 | return -EINVAL; | 957 | return -EINVAL; |
| 956 | } | 958 | } |
| 957 | 959 | ||
| 960 | static inline void css_put(struct cgroup_subsys_state *css) {} | ||
| 961 | |||
| 958 | /* No cgroups - nothing to do */ | 962 | /* No cgroups - nothing to do */ |
| 959 | static inline int cgroup_attach_task_all(struct task_struct *from, | 963 | static inline int cgroup_attach_task_all(struct task_struct *from, |
| 960 | struct task_struct *t) | 964 | struct task_struct *t) |
