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)
Tue, Mar 11, 5:07 AM
Unknown Object (File)
Sun, Feb 23, 5:41 AM
Unknown Object (File)
Sat, Feb 22, 2:29 PM
Unknown Object (File)
Fri, Feb 21, 5:45 AM
Unknown Object (File)
Jan 18 2025, 1:01 AM
Unknown Object (File)
Jan 15 2025, 2:35 PM
Unknown Object (File)
Dec 12 2024, 2:21 AM
Unknown Object (File)
Nov 29 2024, 2:22 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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