Message ID | 20180617100006.30663-4-leon@kernel.org |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
Series | Introduce mlx5 DEVX interface | expand |
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 7d60a3472929..3012ae2f52f7 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -83,12 +83,7 @@ static inline u64 ptr_to_u64(const void *ptr) } \ ) -#define u64_to_user_ptr(x) ( \ -{ \ - typecheck(u64, x); \ - (void __user *)(uintptr_t)x; \ -} \ -) +#define u64_to_user_ptr(x) u64_to_ptr(void __user, x) /* * This looks more complex than it should be. But we need to