kernel: kstrtox: revert strtobool() in linux 6.12

This commit is contained in:
coolsnowwolf 2024-12-23 13:39:14 +08:00
parent 651cc85470
commit 7953c94b31

View File

@ -0,0 +1,12 @@
--- a/include/linux/kstrtox.h
+++ b/include/linux/kstrtox.h
@@ -147,4 +147,9 @@
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 */