git: b30c7948546b - stable/13 - LinuxKPI: Implement kstrtoull

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Sat, 22 Jan 2022 19:36:21 UTC
The branch stable/13 has been updated by wulf:

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

commit b30c7948546bed2f4f6e3a0f5c5dc0337ce06acf
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-11-23 08:32:38 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2022-01-22 19:34:36 +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
    
    (cherry picked from commit c427456fd560d6def83cd3867cc5bf01d20653e5)
---
 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 8690d9efa1f2..d3083c9adf17 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)
 {