From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 1/7] mips: ath79: ar933x: Avoid warning with gcc5
Date: Sun, 22 May 2016 13:15:41 +0200 [thread overview]
Message-ID: <574194DD.2020200@denx.de> (raw)
In-Reply-To: <BLU436-SMTP2269513342EEB53D378A15FF4D0@phx.gbl>
On 05/22/2016 05:59 AM, Wills Wang wrote:
> GCC 5.3 report a warning: 'upper' and 'lower' may be used
> uninitialized in this function [-Wmaybe-uninitialized].
> Compiler might need explicit initializer.
>
> Signed-off-by: Wills Wang <wills.wang@live.com>
> ---
>
> arch/mips/mach-ath79/ar933x/ddr.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/mips/mach-ath79/ar933x/ddr.c b/arch/mips/mach-ath79/ar933x/ddr.c
> index 91452bc..7f20d34 100644
> --- a/arch/mips/mach-ath79/ar933x/ddr.c
> +++ b/arch/mips/mach-ath79/ar933x/ddr.c
> @@ -268,6 +268,8 @@ void ddr_tap_tuning(void)
> dir = 1;
> tap = readl(regs + AR71XX_DDR_REG_TAP_CTRL0);
> val = tap;
> + upper = tap;
> + lower = tap;
> while (!done) {
> err = 0;
>
>
So what's new in V2 here ?
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-05-22 11:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-22 3:59 [U-Boot] [PATCH V2 1/7] mips: ath79: ar933x: Avoid warning with gcc5 Wills Wang
2016-05-22 11:15 ` Marek Vasut [this message]
2016-05-22 11:25 ` Wills Wang
2016-05-25 23:30 ` Daniel Schwierzeck
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=574194DD.2020200@denx.de \
--to=marex@denx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.