aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/misc_cgroup.h
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <linux@treblig.org>2025-01-27 23:52:14 +0000
committerTejun Heo <tj@kernel.org>2025-01-28 09:00:54 -1000
commitad6c08d8c1045843ec564a73981ece6ec31d11a0 (patch)
tree920f14b7b1d4e45c1bbb18c94444ccb6b135afb5 /include/linux/misc_cgroup.h
parentcgroup/cpuset: Move procfs cpuset attribute under cgroup-v1.c (diff)
downloadwireguard-linux-ad6c08d8c1045843ec564a73981ece6ec31d11a0.tar.xz
wireguard-linux-ad6c08d8c1045843ec564a73981ece6ec31d11a0.zip
cgroup/misc: Remove unused misc_cg_res_total_usage
misc_cg_res_total_usage() was added in 2021 by commit a72232eabdfc ("cgroup: Add misc cgroup controller") but has remained unused. Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Acked-by: Michal Koutný <mkoutny@suse.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/misc_cgroup.h')
-rw-r--r--include/linux/misc_cgroup.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/misc_cgroup.h b/include/linux/misc_cgroup.h
index 49eef10c8e59..4bf261d41a6d 100644
--- a/include/linux/misc_cgroup.h
+++ b/include/linux/misc_cgroup.h
@@ -60,7 +60,6 @@ struct misc_cg {
struct misc_res res[MISC_CG_RES_TYPES];
};
-u64 misc_cg_res_total_usage(enum misc_res_type type);
int misc_cg_set_capacity(enum misc_res_type type, u64 capacity);
int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, u64 amount);
@@ -104,11 +103,6 @@ static inline void put_misc_cg(struct misc_cg *cg)
#else /* !CONFIG_CGROUP_MISC */
-static inline u64 misc_cg_res_total_usage(enum misc_res_type type)
-{
- return 0;
-}
-
static inline int misc_cg_set_capacity(enum misc_res_type type, u64 capacity)
{
return 0;