From a571c70c14a86d242be39fc12610b2519499379f Mon Sep 17 00:00:00 2001 From: Han Shen Date: Tue, 16 Oct 2012 10:42:25 -0700 Subject: Fix gcc-4.7 building problem. Applied function attribute to function definition to avoid 'conflicting type' warning. Function declaration is in src/include/cpu.h void secondary_cpu_init(unsigned int cpu_index)__attribute__((regparm(0))); But function definition in lapic_cpu_init.c is missing the "__attribute__" part. Change-Id: Idb7cd00fda5a2d486893f9866920929c685d266e Signed-off-by: Han Shen Reviewed-on: http://review.coreboot.org/1784 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov --- src/include/cpu/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/cpu') diff --git a/src/include/cpu/cpu.h b/src/include/cpu/cpu.h index 34ba61ec26..a9369fbf76 100644 --- a/src/include/cpu/cpu.h +++ b/src/include/cpu/cpu.h @@ -7,7 +7,7 @@ void cpu_initialize(void); struct bus; void initialize_cpus(struct bus *cpu_bus); -void secondary_cpu_init(void); +void __attribute__((regparm(0))) secondary_cpu_init(void); #if CONFIG_HAVE_SMI_HANDLER void smm_init(void); -- cgit v1.2.3