[IA64] put kdump_find_rsvd_region in __init
authorHorms <horms@verge.net.au>
Tue, 6 Mar 2007 07:28:50 +0000 (16:28 +0900)
committerTony Luck <tony.luck@intel.com>
Thu, 8 Mar 2007 18:29:58 +0000 (10:29 -0800)
kdump_find_rsvd_region() is only called by
reserve_memory() which is in __init, so it seems that
kdump_find_rsvd_region() should also be in there.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/efi.c

index 49b93682c75279956a98650696ec5adfd46554ad..f45f91d38caba314092a9e87173036ca1318dbec 100644 (file)
@@ -1142,7 +1142,7 @@ efi_initialize_iomem_resources(struct resource *code_resource,
 /* find a block of memory aligned to 64M exclude reserved regions
    rsvd_regions are sorted
  */
-unsigned long
+unsigned long __init
 kdump_find_rsvd_region (unsigned long size,
                struct rsvd_region *r, int n)
 {