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)
Sun, Oct 27, 3:17 PM
Unknown Object (File)
Oct 1 2024, 4:30 PM
Unknown Object (File)
Sep 29 2024, 6:19 PM
Unknown Object (File)
Sep 29 2024, 4:25 PM
Unknown Object (File)
Sep 27 2024, 7:09 AM
Unknown Object (File)
Sep 22 2024, 6:36 AM
Unknown Object (File)
Sep 19 2024, 2:54 PM
Unknown Object (File)
Sep 19 2024, 5:04 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 Not Applicable
Unit
Tests Not Applicable

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.