From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Alexander Clouter <alex@digriz.org.uk>
Cc: linux-mips@linux-mips.org, florian@openwrt.org
Subject: Re: [PATCH] MIPS: AR7: Fix GCC 4.6.0 build error.
Date: Fri, 13 May 2011 19:31:21 +0400 [thread overview]
Message-ID: <4DCD4EC9.1070804@mvista.com> (raw)
In-Reply-To: <20110513152855.GM25017@chipmunk>
Hello.
Alexander Clouter wrote:
> CC arch/mips/ar7/gpio.o
> arch/mips/ar7/gpio.c: In function 'ar7_gpio_init':
> arch/mips/ar7/gpio.c:318:11: error: variable 'size' set but not used [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
> Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
> ---
> arch/mips/ar7/gpio.c | 12 ++----------
> 1 files changed, 2 insertions(+), 10 deletions(-)
> diff --git a/arch/mips/ar7/gpio.c b/arch/mips/ar7/gpio.c
> index 425dfa5..6917427 100644
> --- a/arch/mips/ar7/gpio.c
> +++ b/arch/mips/ar7/gpio.c
> @@ -314,16 +314,8 @@ static void titan_gpio_init(void)
> int __init ar7_gpio_init(void)
> {
> int ret;
> - struct ar7_gpio_chip *gpch;
> - unsigned size;
> -
> - if (!ar7_is_titan()) {
> - gpch = &ar7_gpio_chip;
> - size = 0x10;
> - } else {
> - gpch = &titan_gpio_chip;
> - size = 0x1f;
> - }
> + struct ar7_gpio_chip *gpch = (!ar7_is_titan())
Parens around (!x) are not really necessary. Perhaps Ralf could remove them
while applying...
> + ? &ar7_gpio_chip : &titan_gpio_chip;
WBR, Sergei
next prev parent reply other threads:[~2011-05-13 15:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-13 15:28 [PATCH] MIPS: AR7: Fix GCC 4.6.0 build error Alexander Clouter
2011-05-13 15:31 ` Sergei Shtylyov [this message]
2011-05-13 15:50 ` Alexander Clouter
2011-05-13 16:30 ` Ralf Baechle
2011-05-13 16:39 ` Ralf Baechle
2011-05-13 15:52 ` Florian Fainelli
2011-05-13 16:20 ` Jonas Gorski
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=4DCD4EC9.1070804@mvista.com \
--to=sshtylyov@mvista.com \
--cc=alex@digriz.org.uk \
--cc=florian@openwrt.org \
--cc=linux-mips@linux-mips.org \
/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