There's no reason not to just move setup_bootmem_allocator() above the first call to it, except for code churn. This saves a predeclaration.