Page MenuHomeFreeBSD

linuxkpi: Add compat_ptr and ptr_to_compat
ClosedPublic

Authored by manu on Aug 2 2022, 3:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 5, 12:11 AM
Unknown Object (File)
Sun, May 11, 11:44 PM
Unknown Object (File)
Sat, May 10, 11:40 PM
Unknown Object (File)
Apr 21 2025, 6:15 PM
Unknown Object (File)
Apr 21 2025, 6:27 AM
Unknown Object (File)
Apr 20 2025, 7:02 AM
Unknown Object (File)
Apr 18 2025, 9:10 AM
Unknown Object (File)
Apr 16 2025, 7:08 PM

Details

Summary

Needed by drm-kmod.

Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46755
Build 43644: arc lint + arc unit

Event Timeline

manu requested review of this revision.Aug 2 2022, 3:30 PM
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/compat.h
62

Not sure about i386. long for pointers is a Linuxism which is often wrong. Can we live with uintptr_t here instead or is Linux always expecting a long?

hselasky added inline comments.
sys/compat/linuxkpi/common/include/linux/compat.h
62

Yes, you can use uintptr_t here. long is good for i386 too. Only not for cheri.

This revision is now accepted and ready to land.Aug 5 2022, 10:26 AM
This revision was automatically updated to reflect the committed changes.