Add u64_to_user_ptr() to the LinuxKPI.
MFC after: 1 week
This commit is contained in:
parent
cc928d211a
commit
3a714c6e83
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user