[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] [IA64] remove warning.



# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1217233365 -32400
# Node ID ccfec88b3538b2c87eb85d68584313e71e4e887a
# Parent  c4b12c90de0e72ae0611cb6240d0745c965c417f
[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@xxxxxxxxxxxxx>
---
 arch/ia64/kernel/efi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r c4b12c90de0e -r ccfec88b3538 arch/ia64/kernel/efi.c
--- a/arch/ia64/kernel/efi.c    Mon Jul 28 10:53:43 2008 +0900
+++ b/arch/ia64/kernel/efi.c    Mon Jul 28 17:22:45 2008 +0900
@@ -1149,7 +1149,7 @@ efi_initialize_resources(void *efi_map_s
 }
 
 #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(v
        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);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.