[PATCH RFC -next 2/7] cgroup: export cgroup_parse_float

From: Yu Kuai
Date: Wed Jun 12 2024 - 21:50:46 EST


From: Yu Kuai <yukuai3@xxxxxxxxxx>

The symbol is used by iocost, prepare to build iocost as kernel module.

Signed-off-by: Yu Kuai <yukuai3@xxxxxxxxxx>
---
kernel/cgroup/cgroup.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 4abd817b0c7c..81b579495f8c 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -6966,6 +6966,7 @@ int cgroup_parse_float(const char *input, unsigned dec_shift, s64 *v)
*v = whole * power_of_ten(dec_shift) + frac;
return 0;
}
+EXPORT_SYMBOL_GPL(cgroup_parse_float);

/*
* sock->sk_cgrp_data handling. For more info, see sock_cgroup_data
--
2.39.2