From mboxrd@z Thu Jan 1 00:00:00 1970 From: richardretanubun Date: Mon, 06 Oct 2008 15:31:43 -0400 Subject: [U-Boot] [PATCH v3] [83xx] Adds two more ethernet interface to 83xx In-Reply-To: <48E99E53.8000401@gmail.com> References: <48DB89C4.3060204@ruggedcom.com> <20080925145035.cebab0df.kim.phillips@freescale.com> <48DBF3B0.1090009@ruggedcom.com> <48DC0652.5030409@ruggedcom.com> <20080925222439.8858F24851@gemini.denx.de> <48DC1637.5000707@ruggedcom.com> <20080925232807.4E641248F9@gemini.denx.de> <48E0CD6C.90202@ruggedcom.com> <48E0D32A.1030602@ge.com> <48E15687.8010007@ruggedcom.com> <48E99E53.8000401@gmail.com> Message-ID: <48EA679F.2090609@ruggedcom.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Fixed compiler warning "declared but unused" eth5_uec_info and eth6_uec_info. Signed-off-by: Richard Retanubun --- Hi Ben, Thanks for applying the patch. I got a compiler warning when using it, here is a patch to fix that. Thanks for all the help Richard drivers/qe/uec.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c index e1dec5e..582a1c0 100644 --- a/drivers/qe/uec.c +++ b/drivers/qe/uec.c @@ -1414,6 +1414,14 @@ int uec_initialize(int index) #ifdef CONFIG_UEC_ETH4 uec_info = ð4_uec_info; #endif + } else if (index == 4) { +#ifdef CONFIG_UEC_ETH5 + uec_info = ð5_uec_info; +#endif + } else if (index == 5) { +#ifdef CONFIG_UEC_ETH6 + uec_info = ð6_uec_info; +#endif } else { printf("%s: index is illegal.\n", __FUNCTION__); return -EINVAL; -- 1.5.5.GIT