From: Isaku Yamahata Date: Mon, 28 Jul 2008 08:22:45 +0000 (+0900) Subject: [IA64] remove warning. X-Git-Tag: qparent~34 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ef5a39d77ba0688d07ca26ee5dafd1d493211b4f;p=xenclient%2Fkernel.git [IA64] remove warning. This patch removes the following warning. > linux-2.6.18-xen.hg/arch/ia64/kernel/efi.c: In function 'efi_initialize_iomem_machine_resources': > linux-2.6.18-xen.hg/arch/ia64/kernel/efi.c:1185: warning: control reaches end of non-void function Signed-off-by: Isaku Yamahata --- diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index e24973b3..2f5b0b48 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -1149,7 +1149,7 @@ efi_initialize_resources(void *efi_map_start, void *efi_map_end, } #ifdef CONFIG_PROC_IOMEM_MACHINE -static int +static void efi_initialize_iomem_machine_resources(void) { unsigned long size; @@ -1163,7 +1163,7 @@ efi_initialize_iomem_machine_resources(void) for (size = 1024; 1; size += 1024) { memmap_info = kmalloc(size, GFP_KERNEL); if (memmap_info == NULL) - return -ENOMEM; + return; /* -ENOMEM, but no way to return error */ memmap.nr_entries = size; set_xen_guest_handle(memmap.buffer, memmap_info);