Page MenuHomeFreeBSD

extres: syscon: pull in sys/malloc.h (fix !FDT)
ClosedPublic

Authored by kevans on Sep 29 2022, 6:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 27, 7:09 AM
Unknown Object (File)
Sun, Sep 22, 6:36 AM
Unknown Object (File)
Thu, Sep 19, 2:54 PM
Unknown Object (File)
Thu, Sep 19, 5:04 AM
Unknown Object (File)
Mon, Sep 16, 6:48 PM
Unknown Object (File)
Sat, Sep 7, 6:44 PM
Unknown Object (File)
Fri, Sep 6, 11:50 AM
Unknown Object (File)
Thu, Sep 5, 7:25 AM
Subscribers

Details

Summary

syscon currently includes sys/malloc.h via header pollution from
dev/ofw/ofw_bus.h -> dev/ofw/openfirm.h. Fix the build without FDT
defined by including sys/malloc.h directly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47599
Build 44486: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Sep 29 2022, 6:33 AM

I like this. For more obscure .h files an ifdef might make sense, but for sys/malloc.h, I think unconditional is fine.