Skip to content

Commit

Permalink
kernel: kstrtox: revert strtobool() in linux 6.12
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Dec 23, 2024
1 parent 651cc85 commit 7953c94
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions target/linux/generic/hack-6.12/997-revert-strtobool.patch
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 */

0 comments on commit 7953c94

Please sign in to comment.