Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154393809
D45455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
862 B
Referenced Files
None
Subscribers
None
D45455.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/kstrtox.h b/sys/compat/linuxkpi/common/include/linux/kstrtox.h
--- a/sys/compat/linuxkpi/common/include/linux/kstrtox.h
+++ b/sys/compat/linuxkpi/common/include/linux/kstrtox.h
@@ -7,6 +7,7 @@
* Copyright (c) 2018 Johannes Lundberg <johalun0@gmail.com>
* Copyright (c) 2020-2022 The FreeBSD Foundation
* Copyright (c) 2021 Vladimir Kondratyev <wulf@FreeBSD.org>
+ * Copyright (c) 2023 Serenity Cyber Security, LLC
*
* Portions of this software were developed by Bjoern A. Zeeb and
* Emmanuel Vadot under sponsorship from the FreeBSD Foundation.
@@ -193,6 +194,12 @@
return (0);
}
+static inline int
+kstrtoll(const char *cp, unsigned int base, long long *res)
+{
+ return (kstrtos64(cp, base, (s64 *)res));
+}
+
static inline int
kstrtou64(const char *cp, unsigned int base, u64 *res)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 7:56 AM (19 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32332614
Default Alt Text
D45455.diff (862 B)
Attached To
Mode
D45455: LinuxKPI: Add kstrtoll to linux/kstrtox.h
Attached
Detach File
Event Timeline
Log In to Comment