LinuxKPI: Implement kstrtoull

Required by drm-kmod 5.7

MFC after:	1 week
Reviewed by:	hselasky, manu
Differential Revision:	https://reviews.freebsd.org/D33291
This commit is contained in:
Vladimir Kondratyev 2021-11-23 11:32:38 +03:00
parent bc923d93df
commit c427456fd5

View file

@ -465,6 +465,12 @@ kstrtou64(const char *cp, unsigned int base, u64 *res)
return (0);
}
static inline int
kstrtoull(const char *cp, unsigned int base, unsigned long long *res)
{
return (kstrtou64(cp, base, (u64 *)res));
}
static inline int
kstrtobool(const char *s, bool *res)
{