git: c427456fd560 - main - LinuxKPI: Implement kstrtoull

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Mon, 10 Jan 2022 19:50:34 UTC
The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=c427456fd560d6def83cd3867cc5bf01d20653e5

commit c427456fd560d6def83cd3867cc5bf01d20653e5
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-11-23 08:32:38 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2022-01-10 19:49:37 +0000

    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 80b684745175..6f917941184f 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)
 {