svn commit: r320337 - head/sys/compat/linuxkpi/common/include/linux
Mark Johnston
markj at FreeBSD.org
Sun Jun 25 19:30:22 UTC 2017
Author: markj
Date: Sun Jun 25 19:30:20 2017
New Revision: 320337
URL: https://svnweb.freebsd.org/changeset/base/320337
Log:
Add u64_to_user_ptr() to the LinuxKPI.
MFC after: 1 week
Modified:
head/sys/compat/linuxkpi/common/include/linux/kernel.h
Modified: head/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/kernel.h Sun Jun 25 19:28:01 2017 (r320336)
+++ head/sys/compat/linuxkpi/common/include/linux/kernel.h Sun Jun 25 19:30:20 2017 (r320337)
@@ -260,6 +260,8 @@ scnprintf(char *buf, size_t size, const char *fmt, ...
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#define u64_to_user_ptr(val) ((void *)(uintptr_t)(val))
+
static inline unsigned long long
simple_strtoull(const char *cp, char **endp, unsigned int base)
{
More information about the svn-src-all
mailing list