linuxkpi: Add compat_ptr and ptr_to_compat

Needed by drm-kmod.

Obtained from:	drm-kmod
Sponsored by:	Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D36016
This commit is contained in:
Emmanuel Vadot 2022-07-27 09:48:32 +02:00
parent 39da3678b1
commit 37cda2837c

View file

@ -58,4 +58,7 @@ linux_set_current_flags(struct thread *td, int flags)
return (0);
}
#define compat_ptr(x) ((void *)(uintptr_t)x)
#define ptr_to_compat(x) ((uintptr_t)x)
#endif /* _LINUXKPI_LINUX_COMPAT_H_ */