]> err.no Git - linux-2.6/commitdiff
[IA64] vmcore_find_descriptor_size should be in __init
authorSimon Horman <horms@verge.net.au>
Mon, 29 Oct 2007 08:10:29 +0000 (17:10 +0900)
committerTony Luck <tony.luck@intel.com>
Mon, 29 Oct 2007 17:43:29 +0000 (10:43 -0700)
vmcore_find_descriptor_size() is only called by
reserve_elfcorehdr(), which is in __init, so it seems to me that
vmcore_find_descriptor_size() should be there too.

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

index 3f7ea13358e952366eeef347a208facb92d5e57f..6216eba2e38f2a5293683e501827fcf9490a5ab9 100644 (file)
@@ -1231,7 +1231,7 @@ kdump_find_rsvd_region (unsigned long size,
 
 #ifdef CONFIG_PROC_VMCORE
 /* locate the size find a the descriptor at a certain address */
-unsigned long
+unsigned long __init
 vmcore_find_descriptor_size (unsigned long address)
 {
        void *efi_map_start, *efi_map_end, *p;