--- zzzz-none-000/linux-5.15.111/include/linux/kstrtox.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/include/linux/kstrtox.h 2024-02-07 10:23:26.000000000 +0000 @@ -129,6 +129,15 @@ return kstrtoint_from_user(s, count, base, res); } +/* kstrtox_from_user_strip_whitespaces version */ + +int __must_check kstrtouint_from_user_strip_whitespaces(const char __user *s, size_t count, unsigned int *res); +int __must_check kstrtoint_from_user_strip_whitespaces(const char __user *s, size_t count, int *res); +int __must_check kstrtos32_from_user_strip_whitespaces(const char __user *s, size_t count, s32 *res); +int __must_check kstrtou32_from_user_strip_whitespaces(const char __user *s, size_t count, u32 *res); +int __must_check kstrtou16_from_user_strip_whitespaces(const char __user *s, size_t count, u16 *res); +int __must_check kstrtou8_from_user_strip_whitespaces(const char __user *s, size_t count, u8 *res); + /* * Use kstrto instead. *