diff options
author | Tejun Heo <tj@kernel.org> | 2012-11-05 12:16:59 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-11-05 12:16:59 -0500 |
commit | bcf6de1b9129531215d26dd9af8331e84973bc52 (patch) | |
tree | 0666760423e4579a50a7752568036a13e0cfa9d5 /include/linux/cgroup.h | |
parent | 9d093cb10eb482adfba6ddc71a0969b78823ee8b (diff) |
cgroup: make ->pre_destroy() return void
All ->pre_destory() implementations return 0 now, which is the only
allowed return value. Make it return void.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 47868a86ba2b..adb2adc8ec1a 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -436,7 +436,7 @@ int cgroup_taskset_size(struct cgroup_taskset *tset); | |||
436 | 436 | ||
437 | struct cgroup_subsys { | 437 | struct cgroup_subsys { |
438 | struct cgroup_subsys_state *(*create)(struct cgroup *cgrp); | 438 | struct cgroup_subsys_state *(*create)(struct cgroup *cgrp); |
439 | int (*pre_destroy)(struct cgroup *cgrp); | 439 | void (*pre_destroy)(struct cgroup *cgrp); |
440 | void (*destroy)(struct cgroup *cgrp); | 440 | void (*destroy)(struct cgroup *cgrp); |
441 | int (*can_attach)(struct cgroup *cgrp, struct cgroup_taskset *tset); | 441 | int (*can_attach)(struct cgroup *cgrp, struct cgroup_taskset *tset); |
442 | void (*cancel_attach)(struct cgroup *cgrp, struct cgroup_taskset *tset); | 442 | void (*cancel_attach)(struct cgroup *cgrp, struct cgroup_taskset *tset); |