Page MenuHomeFreeBSD

Merge the md_page structs for AIM and Book-E into a single unioned struct

Authored by jhibbits on Jul 11 2018, 10:22 PM.



Ports like sysutils/lsof troll through kernel structures, and
therefore include kernel headers and all the dirty secrets involved. struct
vm_page includes the struct md_page inline, which currently is only defined
if AIM or BOOKE is defined. Thus, by default, sysutils/lsof cannot build,
due to the struct md_page having an incomplete type. Fix this by merging
the two struct definitions into an anonymous struct-union.

Compile-tested only.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhibbits created this revision.Jul 11 2018, 10:22 PM
nwhitehorn accepted this revision.Jul 19 2018, 8:05 PM
This revision is now accepted and ready to land.Jul 19 2018, 8:05 PM
This revision was automatically updated to reflect the committed changes.