Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Sep 2022 15:10:12 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: dc42582096f0 - stable/13 - linuxkpi: Add compat_ptr and ptr_to_compat
Message-ID:  <202209071510.287FAC1O021351@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=dc42582096f008f61b7243af7647f7767189d03c

commit dc42582096f008f61b7243af7647f7767189d03c
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-07-27 07:48:32 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-09-07 15:09:04 +0000

    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
    
    (cherry picked from commit 37cda2837c004e743e9262e2e0ea409766df2a09)
---
 sys/compat/linuxkpi/common/include/linux/compat.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/compat.h b/sys/compat/linuxkpi/common/include/linux/compat.h
index 5e4dd1daf67d..b6bb5e8ed24b 100644
--- a/sys/compat/linuxkpi/common/include/linux/compat.h
+++ b/sys/compat/linuxkpi/common/include/linux/compat.h
@@ -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_ */



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