mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
39da3678b1
commit
37cda2837c
1 changed files with 3 additions and 0 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue