mm: make early_pfn_to_nid() a C function