From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] net: kirkwood_egiga.c: fixed build warning
Date: Sun, 04 Oct 2009 22:55:47 -0700 [thread overview]
Message-ID: <4AC98A63.1070407@gmail.com> (raw)
In-Reply-To: <1252492159-14408-1-git-send-email-prafulla@marvell.com>
Hi Prafulla,
Prafulla Wadaskar wrote:
> if link up detection code is disabled through config option, it gives build warning.
> This patch fixes the same
>
> Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
> ---
> Changelog:
> v2: unwanted commit in v1 patch removed
>
> drivers/net/kirkwood_egiga.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c
> index 479035d..07a86cd 100644
> --- a/drivers/net/kirkwood_egiga.c
> +++ b/drivers/net/kirkwood_egiga.c
> @@ -400,8 +400,10 @@ static int kwgbe_init(struct eth_device *dev)
> {
> struct kwgbe_device *dkwgbe = to_dkwgbe(dev);
> struct kwgbe_registers *regs = dkwgbe->regs;
> +#if (defined (CONFIG_MII) || defined (CONFIG_CMD_MII)) \
> + && defined (CONFIG_SYS_FAULT_ECHO_LINK_DOWN)
> int i;
> -
> +#endif
> /* setup RX rings */
> kwgbe_init_rx_desc_ring(dkwgbe);
>
>
Applied to net repo.
thanks,
Ben
prev parent reply other threads:[~2009-10-05 5:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-09 10:29 [U-Boot] [PATCH v2] net: kirkwood_egiga.c: fixed build warning Prafulla Wadaskar
2009-10-05 5:55 ` Ben Warren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AC98A63.1070407@gmail.com \
--to=biggerbadderben@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox