ia64/linux-2.6.18-xen.hg

changeset 611:ccfec88b3538

[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 <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jul 28 17:22:45 2008 +0900 (2008-07-28)
parents c4b12c90de0e
children 4921b258e132
files arch/ia64/kernel/efi.c
line diff
     1.1 --- a/arch/ia64/kernel/efi.c	Mon Jul 28 10:53:43 2008 +0900
     1.2 +++ b/arch/ia64/kernel/efi.c	Mon Jul 28 17:22:45 2008 +0900
     1.3 @@ -1149,7 +1149,7 @@ efi_initialize_resources(void *efi_map_s
     1.4  }
     1.5  
     1.6  #ifdef CONFIG_PROC_IOMEM_MACHINE
     1.7 -static int
     1.8 +static void
     1.9  efi_initialize_iomem_machine_resources(void)
    1.10  {
    1.11  	unsigned long size;
    1.12 @@ -1163,7 +1163,7 @@ efi_initialize_iomem_machine_resources(v
    1.13  	for (size = 1024; 1; size += 1024) {
    1.14  		memmap_info = kmalloc(size, GFP_KERNEL);
    1.15  		if (memmap_info == NULL)
    1.16 -			return -ENOMEM;
    1.17 +			return; /* -ENOMEM, but no way to return error */
    1.18  
    1.19  		memmap.nr_entries = size;
    1.20  		set_xen_guest_handle(memmap.buffer, memmap_info);