mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kstrtox: Remove strtobool()
@ 2023-07-20 20:40 Christophe JAILLET
  2023-07-21 10:22 ` Andy Shevchenko
  2023-07-24 18:05 ` Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Christophe JAILLET @ 2023-07-20 20:40 UTC (permalink / raw)
  To: akpm, andriy.shevchenko; +Cc: linux-kernel, kernel-janitors, Christophe JAILLET

The conversion from strtobool() to kstrtobool() is completed.
So strtobool() can now be removed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Unless I missed something, the last strtobool() calls have been removed
from -next just 1 or 2 days ago.

So it is maybe good to wait a few days or weeks to apply this patch in
order not to break something somewhere.

For now, see if build-bots agree with me :)


get_maintainer.pl is of now help here, so adding just Andrew Morton, and
Andy Shevchenko (who splitted out this file from kernel.h)
---
 include/linux/kstrtox.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/linux/kstrtox.h b/include/linux/kstrtox.h
index 529974e22ea7..7fcf29a4e0de 100644
--- a/include/linux/kstrtox.h
+++ b/include/linux/kstrtox.h
@@ -147,9 +147,4 @@ extern long simple_strtol(const char *,char **,unsigned int);
 extern unsigned long long simple_strtoull(const char *,char **,unsigned int);
 extern long long simple_strtoll(const char *,char **,unsigned int);
 
-static inline int strtobool(const char *s, bool *res)
-{
-	return kstrtobool(s, res);
-}
-
 #endif	/* _LINUX_KSTRTOX_H */
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-24 19:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-20 20:40 [PATCH] kstrtox: Remove strtobool() Christophe JAILLET
2023-07-21 10:22 ` Andy Shevchenko
2023-07-24 18:05 ` Andrew Morton
2023-07-24 19:16   ` Christophe JAILLET

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®