cgroup: remove some useless forward declarations
authorLi Zefan <lizefan@huawei.com>
Wed, 17 Sep 2014 10:18:09 +0000 (18:18 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 17 Sep 2014 21:34:15 +0000 (06:34 +0900)
Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup.h
kernel/cgroup.c

index b5223c570eba54e4dafb4e31b1e7d89c0a65b9f8..f7898e0bce1e0c09f2430f6d163eb3eebc3543eb 100644 (file)
@@ -27,7 +27,6 @@
 
 struct cgroup_root;
 struct cgroup_subsys;
-struct inode;
 struct cgroup;
 
 extern int cgroup_init_early(void);
index ebd4476c57ded24b8bb23903c7b0c19cd0fa6f69..619aae399a3a2ba6928f91d4ec3ce0b87bebfbe0 100644 (file)
@@ -185,7 +185,6 @@ static int need_forkexit_callback __read_mostly;
 static struct cftype cgroup_dfl_base_files[];
 static struct cftype cgroup_legacy_base_files[];
 
-static void cgroup_put(struct cgroup *cgrp);
 static int rebind_subsystems(struct cgroup_root *dst_root,
                             unsigned int ss_mask);
 static int cgroup_destroy_locked(struct cgroup *cgrp);
@@ -195,7 +194,6 @@ static void css_release(struct percpu_ref *ref);
 static void kill_css(struct cgroup_subsys_state *css);
 static int cgroup_addrm_files(struct cgroup *cgrp, struct cftype cfts[],
                              bool is_add);
-static void cgroup_pidlist_destroy_all(struct cgroup *cgrp);
 
 /* IDR wrappers which synchronize using cgroup_idr_lock */
 static int cgroup_idr_alloc(struct idr *idr, void *ptr, int start, int end,