Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cgroup: add dummy css_put() for !CONFIG_CGROUPS

This will later be depended upon by the scheduled cgroup writeback
support.

Signed-off-by: Tejun Heo <tj@kernel.org>

Tejun Heo f3ba5380 24dab7a7

+4
+4
include/linux/cgroup.h
··· 943 943 944 944 #else /* !CONFIG_CGROUPS */ 945 945 946 + struct cgroup_subsys_state; 947 + 946 948 static inline int cgroup_init_early(void) { return 0; } 947 949 static inline int cgroup_init(void) { return 0; } 948 950 static inline void cgroup_fork(struct task_struct *p) {} ··· 956 954 { 957 955 return -EINVAL; 958 956 } 957 + 958 + static inline void css_put(struct cgroup_subsys_state *css) {} 959 959 960 960 /* No cgroups - nothing to do */ 961 961 static inline int cgroup_attach_task_all(struct task_struct *from,