The patch titled Subject: mm/damon: use kstrtobool() instead of strtobool() has been added to the -mm mm-unstable branch. Its filename is mm-damon-use-kstrtobool-instead-of-strtobool.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-damon-use-kstrtobool-instead-of-strtobool.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> Subject: mm/damon: use kstrtobool() instead of strtobool() Date: Tue, 1 Nov 2022 22:14:08 +0100 strtobool() is the same as kstrtobool(). However, the latter is more used within the kernel. In order to remove strtobool() and slightly simplify kstrtox.h, switch to the other function name. While at it, include the corresponding header file (<linux/kstrtox.h>) Link: https://lkml.kernel.org/r/ed2b46489a513988688decb53850339cc228940c.1667336095.git.christophe.jaillet@xxxxxxxxxx Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> Reviewed-by: SeongJae Park <sj@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/damon/lru_sort.c | 3 ++- mm/damon/reclaim.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) --- a/mm/damon/lru_sort.c~mm-damon-use-kstrtobool-instead-of-strtobool +++ a/mm/damon/lru_sort.c @@ -8,6 +8,7 @@ #define pr_fmt(fmt) "damon-lru-sort: " fmt #include <linux/damon.h> +#include <linux/kstrtox.h> #include <linux/module.h> #include "modules-common.h" @@ -241,7 +242,7 @@ static int damon_lru_sort_enabled_store( bool enable; int err; - err = strtobool(val, &enable); + err = kstrtobool(val, &enable); if (err) return err; --- a/mm/damon/reclaim.c~mm-damon-use-kstrtobool-instead-of-strtobool +++ a/mm/damon/reclaim.c @@ -8,6 +8,7 @@ #define pr_fmt(fmt) "damon-reclaim: " fmt #include <linux/damon.h> +#include <linux/kstrtox.h> #include <linux/module.h> #include "modules-common.h" @@ -187,7 +188,7 @@ static int damon_reclaim_enabled_store(c bool enable; int err; - err = strtobool(val, &enable); + err = kstrtobool(val, &enable); if (err) return err; _ Patches currently in -mm which might be from christophe.jaillet@xxxxxxxxxx are mm-damon-use-kstrtobool-instead-of-strtobool.patch