From: Dirk Behme Date: Sun, 13 Sep 2009 10:40:43 +0200 Subject: [U-Boot] [PATCH] OMAP3 Overo: Fix ethernet related warnings Message-ID: <1252831243-32274-1-git-send-email-dirk.behme@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Fix warning 'setup_net_chip' declared 'static' but never defined with CONFIG_OMAP3_OVERO_TOBI disabled and implicit declaration of function 'smc911x_initialize' with CONFIG_OMAP3_OVERO_TOBI enabled. Signed-off-by: Dirk Behme --- Patch against recent u-boot-ti git f4f92c81835ccc43f74925737dfd478edb0182f2 "TI: OMAP3: Overo Tobi ethernet support" Compile tested only ./MAKEALL omap3_overo with and without CONFIG_OMAP3_OVERO_TOBI enabled. board/overo/overo.c | 1 + board/overo/overo.h | 2 ++ 2 files changed, 3 insertions(+) Index: u-boot-ti/board/overo/overo.h =================================================================== --- u-boot-ti.orig/board/overo/overo.h +++ u-boot-ti/board/overo/overo.h @@ -33,7 +33,9 @@ const omap3_sysinfo sysinfo = { #endif }; +#if defined(CONFIG_OMAP3_OVERO_TOBI) static void setup_net_chip(void); +#endif /* * IEN - Input Enable Index: u-boot-ti/board/overo/overo.c =================================================================== --- u-boot-ti.orig/board/overo/overo.c +++ u-boot-ti/board/overo/overo.c @@ -29,6 +29,7 @@ * MA 02111-1307 USA */ #include +#include #include #include #include