From 5d7415673f93ddac743de71fb2272fccdd7300fb Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 29 Mar 2013 11:07:22 +0100 Subject: AMD Inagua: broadcom.c: Add missing prototype for `broadcom_init()` Building the AMD Inagua board, the following warning is thrown. CC mainboard/amd/inagua/get_bus_conf.ramstage.o src/mainboard/amd/inagua/broadcom.c:319:6: warning: no previous prototype for 'broadcom_init' [-Wmissing-prototypes] This warning was introduced by commit 3926b4c5. commit 3926b4c520e74da9dc22e3d136a8a178483e0d25 Author: Jens Rottmann Date: Fri Mar 1 19:41:41 2013 +0100 AMD Inagua: add GEC firmware, document Broadcom BCM57xx Selfboot Patch format Reviewed-on: http://review.coreboot.org/2831 Adding the prototype to `broadcom.c` and removing it from `mainboard.c` fixes the warning. Change-Id: I1da0c4e972e129047dd8230d573f1c43fd71eb20 Signed-off-by: Paul Menzel Reviewed-on: http://review.coreboot.org/2952 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/amd/inagua/broadcom.c | 2 ++ src/mainboard/amd/inagua/mainboard.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainboard/amd/inagua/broadcom.c b/src/mainboard/amd/inagua/broadcom.c index 357fdbcf62..86de3b4552 100644 --- a/src/mainboard/amd/inagua/broadcom.c +++ b/src/mainboard/amd/inagua/broadcom.c @@ -35,6 +35,8 @@ #include #include +void broadcom_init(void); + #define be16(x) cpu_to_be16(x) //a little easier to type #define be(x) cpu_to_be32(x) //this is used a lot! diff --git a/src/mainboard/amd/inagua/mainboard.c b/src/mainboard/amd/inagua/mainboard.c index dc230076ec..7e9f1d9b9e 100644 --- a/src/mainboard/amd/inagua/mainboard.c +++ b/src/mainboard/amd/inagua/mainboard.c @@ -26,8 +26,8 @@ #include #include #include "SBPLATFORM.h" /* Platfrom Specific Definitions */ +// #include "broadcom.c" /* broadcom_init() */ -void broadcom_init(void); void set_pcie_reset(void); void set_pcie_dereset(void); -- cgit v1.2.3