From c427456fd560d6def83cd3867cc5bf01d20653e5 Mon Sep 17 00:00:00 2001 From: Vladimir Kondratyev Date: Tue, 23 Nov 2021 11:32:38 +0300 Subject: [PATCH] LinuxKPI: Implement kstrtoull Required by drm-kmod 5.7 MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D33291 --- sys/compat/linuxkpi/common/include/linux/kernel.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h index 80b68474517..6f917941184 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -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) {