We only create the static devmap on arm. Stop building this code on
other architectures.
Sponsored by: Arm Ltd
Differential D50016
subr_devmap: Reduce the use of the static devmap andrew on Apr 25 2025, 10:06 AM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions Thanks, this is great. To me it is preferable to replace the repeated #ifdef __arm__ instances with a named flag, e.g. #ifdef DEVMAP_HAS_STATIC. If it is annoying to achieve then no problem.
Comment Actions We could add a __HAVE_STATIC_DEVMAP in <machine/param.h>. Similar to what we do for __HAVE_ACPI. Comment Actions I love it. I wish we did this more often, honestly, but in the early days that was shouted down. While it may |