Page MenuHomeFreeBSD

LinuxKPI: Remove FreeBSD struct resource from all LKPI headers
ClosedPublic

Authored by wulf on Aug 24 2021, 11:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 7:35 AM
Unknown Object (File)
Mon, Mar 4, 4:00 AM
Unknown Object (File)
Jan 11 2024, 2:55 PM
Unknown Object (File)
Dec 20 2023, 3:42 AM
Unknown Object (File)
Dec 14 2023, 8:42 PM
Unknown Object (File)
Dec 5 2023, 4:23 AM
Unknown Object (File)
Nov 13 2023, 6:48 PM
Unknown Object (File)
Oct 26 2023, 4:00 AM

Details

Summary

Remove FreeBSD struct resource from all LKPI headers
except linux/pci.h to avoid conflicts with Linux version.
This allows to #define resource in drm-kmod globally and strip a lot of #ifdef-s

MFC after: 2 weeks

Diff Detail

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

Event Timeline

wulf requested review of this revision.Aug 24 2021, 11:52 PM

Where did the tasklet support go?

sys/compat/linuxkpi/common/include/linux/interrupt.h
107

"device" is no longer __unused here.

Remove extraneous __unused tag

Where did the tasklet support go?

They are left untouched. Nothing happened.

Probably you are confused by using of sys/compat/linuxkpi/common/include/linux/interrupt.h as a base of two diffs.

This revision is now accepted and ready to land.Aug 25 2021, 9:22 AM

Make sure you build the kernel WITH_OFED=YES