mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
kernel: kstrtox: revert strtobool() in linux 6.12
This commit is contained in:
parent
651cc85470
commit
7953c94b31
12
target/linux/generic/hack-6.12/997-revert-strtobool.patch
Normal file
12
target/linux/generic/hack-6.12/997-revert-strtobool.patch
Normal 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 */
|
Loading…
Reference in New Issue
Block a user