From b2086a0e22eb7727fdff52063c18ccc471b25fc6 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 19 Nov 2014 11:55:33 +1100 Subject: mainboard/intel/cougar_canyon2/romstage.c: Missing prototype Fix warning thrown by Clang due to missing prototype for main entry point function in -ffreestanding. main() is as any other function in freestanding and so a prototype is strictly needed. Change-Id: Icb29ced0306d5089049a35b1d8862f86a555ff1f Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/7517 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/mainboard/intel/cougar_canyon2/romstage.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/mainboard/intel/cougar_canyon2/romstage.c b/src/mainboard/intel/cougar_canyon2/romstage.c index cc956a7847..9ac70ef78d 100644 --- a/src/mainboard/intel/cougar_canyon2/romstage.c +++ b/src/mainboard/intel/cougar_canyon2/romstage.c @@ -173,6 +173,7 @@ static void rcba_config(void) RCBA32(FD) = reg32; } +void main(FSP_INFO_HEADER *fsp_info_header); // XXX find a better place dorothy void main(FSP_INFO_HEADER *fsp_info_header) { #if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) -- cgit v1.2.3