This patch fixes the following errores. We need C99 struct initialization. CC arch/mips/kernel/setup.o arch/mips/kernel/setup.c:89: warning: initialization makes integer from pointer without a cast arch/mips/kernel/setup.c:89: error: initializer element is not computable at load time arch/mips/kernel/setup.c:89: error: (near initialization for 'code_resource.start') arch/mips/kernel/setup.c:90: warning: initialization makes integer from pointer without a cast arch/mips/kernel/setup.c:90: error: initializer element is not computable at load time arch/mips/kernel/setup.c:90: error: (near initialization for 'data_resource.start') make[1]: *** [arch/mips/kernel/setup.o] Error 1 make: *** [arch/mips/kernel] Error 2
Yoichi Signed-off-by: Yoichi Yuasa <[EMAIL PROTECTED]> diff -urN -X dontdiff a-orig/arch/mips/kernel/setup.c a/arch/mips/kernel/setup.c --- a-orig/arch/mips/kernel/setup.c Sun Feb 13 12:05:29 2005 +++ a/arch/mips/kernel/setup.c Thu Feb 24 00:33:49 2005 @@ -86,8 +86,8 @@ unsigned long isa_slot_offset; EXPORT_SYMBOL(isa_slot_offset); -static struct resource code_resource = { "Kernel code" }; -static struct resource data_resource = { "Kernel data" }; +static struct resource code_resource = { .name = "Kernel code", }; +static struct resource data_resource = { .name = "Kernel data", }; void __init add_memory_region(phys_t start, phys_t size, long type) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/