forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: kstrtox: revert strtobool() in linux 6.12
- Loading branch information
1 parent
c0b0b42
commit a9c2088
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |