Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Jonathan McDowell <noodles@earth.li>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] Fix omap-gpio warnings when compiling for ARCH_OMAP15XX
Date: Wed, 26 Nov 2008 09:54:19 -0800	[thread overview]
Message-ID: <20081126175418.GR11997@atomide.com> (raw)
In-Reply-To: <20081111225348.GZ3162@earth.li>

* Jonathan McDowell <noodles@earth.li> [081111 15:44]:
> When compiling for ARCH_OMAP15XX I get the following compiler warning in
> gpio.c:
> 
> arch/arm/plat-omap/gpio.c: In function ‘_set_gpio_wakeup’:
> arch/arm/plat-omap/gpio.c:848: warning: unused variable ‘flags’
> 
> Simple patch below fixes this.

Sorry for the delay on responding to this.. Let's rather start
splitting the gpio code into common code and processor specific code
to fix issues like this for good. In this case, we would only register
set_wakeup functions for 16xx, 24xx, and 34xx.

Regards,

Tony

> 
> Signed-off-by: Jonathan McDowell <noodles@earth.li>
> 
> -----
> diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
> index 8bb4542..bfbe366 100644
> --- a/arch/arm/plat-omap/gpio.c
> +++ b/arch/arm/plat-omap/gpio.c
> @@ -845,7 +845,10 @@ static inline void _set_gpio_irqenable(struct gpio_bank *bank, int gpio, int ena
>   */
>  static int _set_gpio_wakeup(struct gpio_bank *bank, int gpio, int enable)
>  {
> +#if defined(CONFIG_ARCH_OMAP16XX) || defined(CONFIG_ARCH_OMAP24XX) || \
> +		defined(CONFIG_ARCH_OMAP34XX)
>  	unsigned long flags;
> +#endif
>  
>  	switch (bank->method) {
>  #ifdef CONFIG_ARCH_OMAP16XX
> -----
> 
> J.
> 
> -- 
> Web [   Asking whether machines can think is like asking whether   ]
> site: http:// [           submarines can swim.           ]       Made by
> www.earth.li/~noodles/  [                      ]         HuggieTag 0.0.23
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2008-11-26 17:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-11 22:53 [PATCH] Fix omap-gpio warnings when compiling for ARCH_OMAP15XX Jonathan McDowell
2008-11-26 17:54 ` Tony Lindgren [this message]
2008-11-26 18:35   ` David Brownell

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=20081126175418.GR11997@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=noodles@earth.li \
    /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