--- a/include/linux/kstrtox.h +++ b/include/linux/kstrtox.h @@ -147,4 +147,9 @@ extern long simple_strtol(const char *,c 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 */