Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2017 19:30:21 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320337 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201706251930.v5PJULlS072633@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706251930.v5PJULlS072633>