From 7953c94b318ff81600b761ac18f3ca477c9bcb7c Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 23 Dec 2024 13:39:14 +0800 Subject: [PATCH] kernel: kstrtox: revert strtobool() in linux 6.12 --- .../generic/hack-6.12/997-revert-strtobool.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target/linux/generic/hack-6.12/997-revert-strtobool.patch diff --git a/target/linux/generic/hack-6.12/997-revert-strtobool.patch b/target/linux/generic/hack-6.12/997-revert-strtobool.patch new file mode 100644 index 00000000000000..811b386c1b49ed --- /dev/null +++ b/target/linux/generic/hack-6.12/997-revert-strtobool.patch @@ -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 */