* [merged mm-stable] mm-damon-use-kstrtobool-instead-of-strtobool.patch removed from -mm tree
@ 2022-12-01 0:00 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-12-01 0:00 UTC (permalink / raw)
To: mm-commits, sj, christophe.jaillet, akpm
The quilt patch titled
Subject: mm/damon: use kstrtobool() instead of strtobool()
has been removed from the -mm tree. Its filename was
mm-damon-use-kstrtobool-instead-of-strtobool.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
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@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
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@wanadoo.fr are
io-mapping-move-some-code-within-the-include-guarded-section.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-01 0:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01 0:00 [merged mm-stable] mm-damon-use-kstrtobool-instead-of-strtobool.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.