]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/kernel.h
Delete more unused shim code, update bcache code
[bcachefs-tools-debian] / include / linux / kernel.h
index ac72858bbf700fb8a62511d210d64e21e3bd4b24..741e0ba46f24cbc0b1e387f6a77438ece1a94fac 100644 (file)
@@ -194,6 +194,26 @@ static inline int __must_check kstrtol(const char *s, unsigned int base, long *r
 int __must_check kstrtouint(const char *s, unsigned int base, unsigned int *res);
 int __must_check kstrtoint(const char *s, unsigned int base, int *res);
 
+static inline int __must_check kstrtou64(const char *s, unsigned int base, u64 *res)
+{
+       return kstrtoull(s, base, res);
+}
+
+static inline int __must_check kstrtos64(const char *s, unsigned int base, s64 *res)
+{
+       return kstrtoll(s, base, res);
+}
+
+static inline int __must_check kstrtou32(const char *s, unsigned int base, u32 *res)
+{
+       return kstrtouint(s, base, res);
+}
+
+static inline int __must_check kstrtos32(const char *s, unsigned int base, s32 *res)
+{
+       return kstrtoint(s, base, res);
+}
+
 /* Permissions on a sysfs file: you didn't miss the 0 prefix did you? */
 #define VERIFY_OCTAL_PERMISSIONS(perms)                                                \
        (BUILD_BUG_ON_ZERO((perms) < 0) +                                       \