lede/target/linux/generic/hack-6.12/997-revert-strtobool.patch
2024-12-23 13:39:14 +08:00

13 lines
353 B
Diff

--- 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 */