All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org, <arm@kernel.org>,
	<linux-kernel@vger.kernel.org>,
	Richard Zhao <richard.zhao@freescale.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH 03/11] usb/ohci-omap: remove unused variable
Date: Wed, 8 Aug 2012 11:34:47 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44L0.1208081134350.1701-100000@iolanthe.rowland.org> (raw)
In-Reply-To: <1344437248-20560-4-git-send-email-arnd@arndb.de>

On Wed, 8 Aug 2012, Arnd Bergmann wrote:

> Commit c2e935a7d "USB: move transceiver from ehci_hcd and ohci_hcd to
> hcd and rename it as phy" removed the last use of the "ohci" variable
> in the usb_hcd_omap_remove function, but left the variable in place
> unused.
> 
> Without this patch, building omap1_defconfig results in:
> 
> In file included from drivers/usb/host/ohci-hcd.c:1013:0:
> drivers/usb/host/ohci-omap.c: In function 'usb_hcd_omap_remove':
> drivers/usb/host/ohci-omap.c:406:19: warning: unused variable 'ohci' [-Wunused-variable]
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Cc: Richard Zhao <richard.zhao@freescale.com>
> Cc: Alan Stern <stern@rowland.harvard.edu>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> ---
>  drivers/usb/host/ohci-omap.c |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c
> index e7d75d2..f8b2d91 100644
> --- a/drivers/usb/host/ohci-omap.c
> +++ b/drivers/usb/host/ohci-omap.c
> @@ -403,8 +403,6 @@ err0:
>  static inline void
>  usb_hcd_omap_remove (struct usb_hcd *hcd, struct platform_device *pdev)
>  {
> -	struct ohci_hcd		*ohci = hcd_to_ohci (hcd);
> -
>  	usb_remove_hcd(hcd);
>  	if (!IS_ERR_OR_NULL(hcd->phy)) {
>  		(void) otg_set_host(hcd->phy->otg, 0);
> 

Acked-by: Alan Stern <stern@rowland.harvard.edu>


WARNING: multiple messages have this Message-ID (diff)
From: stern@rowland.harvard.edu (Alan Stern)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 03/11] usb/ohci-omap: remove unused variable
Date: Wed, 8 Aug 2012 11:34:47 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44L0.1208081134350.1701-100000@iolanthe.rowland.org> (raw)
In-Reply-To: <1344437248-20560-4-git-send-email-arnd@arndb.de>

On Wed, 8 Aug 2012, Arnd Bergmann wrote:

> Commit c2e935a7d "USB: move transceiver from ehci_hcd and ohci_hcd to
> hcd and rename it as phy" removed the last use of the "ohci" variable
> in the usb_hcd_omap_remove function, but left the variable in place
> unused.
> 
> Without this patch, building omap1_defconfig results in:
> 
> In file included from drivers/usb/host/ohci-hcd.c:1013:0:
> drivers/usb/host/ohci-omap.c: In function 'usb_hcd_omap_remove':
> drivers/usb/host/ohci-omap.c:406:19: warning: unused variable 'ohci' [-Wunused-variable]
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Cc: Richard Zhao <richard.zhao@freescale.com>
> Cc: Alan Stern <stern@rowland.harvard.edu>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> ---
>  drivers/usb/host/ohci-omap.c |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c
> index e7d75d2..f8b2d91 100644
> --- a/drivers/usb/host/ohci-omap.c
> +++ b/drivers/usb/host/ohci-omap.c
> @@ -403,8 +403,6 @@ err0:
>  static inline void
>  usb_hcd_omap_remove (struct usb_hcd *hcd, struct platform_device *pdev)
>  {
> -	struct ohci_hcd		*ohci = hcd_to_ohci (hcd);
> -
>  	usb_remove_hcd(hcd);
>  	if (!IS_ERR_OR_NULL(hcd->phy)) {
>  		(void) otg_set_host(hcd->phy->otg, 0);
> 

Acked-by: Alan Stern <stern@rowland.harvard.edu>

  parent reply	other threads:[~2012-08-08 15:34 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-08 14:47 [PATCH 00/11] recently added ARM defconfig warnings Arnd Bergmann
2012-08-08 14:47 ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 01/11] ARM: topology: mark init_cpu_topology as __init Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-08 17:53   ` Stephen Boyd
2012-08-08 17:53     ` Stephen Boyd
2012-08-08 19:14     ` Arnd Bergmann
2012-08-08 19:14       ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 02/11] mfd/asic3: fix asic3_mfd_probe return value Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 03/11] usb/ohci-omap: remove unused variable Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-08 15:25   ` Greg Kroah-Hartman
2012-08-08 15:25     ` Greg Kroah-Hartman
2012-08-08 15:34   ` Alan Stern [this message]
2012-08-08 15:34     ` Alan Stern
2012-08-08 14:47 ` [PATCH 04/11] ARM: ux500: really kill snowball_of_platform_devs Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-08 16:22   ` Lee Jones
2012-08-08 16:22     ` Lee Jones
2012-08-08 17:19     ` Arnd Bergmann
2012-08-08 17:19       ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 05/11] ARM: exynos: exynos_pm_add_dev_to_genpd may be unused Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-10  6:48   ` Kukjin Kim
2012-08-10  6:48     ` Kukjin Kim
2012-08-10  6:57   ` Thomas Abraham
2012-08-10  6:57     ` Thomas Abraham
2012-08-08 14:47 ` [PATCH 06/11] gpio: em: do not discard em_gio_irq_domain_cleanup Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-10 10:59   ` Linus Walleij
2012-08-10 10:59     ` Linus Walleij
2012-08-10 11:33     ` Arnd Bergmann
2012-08-10 11:33       ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 07/11] net/stmmac: mark probe function as __devinit Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-08 15:07   ` Stefan Roese
2012-08-08 15:07     ` Stefan Roese
2012-08-08 23:08   ` David Miller
2012-08-08 23:08     ` David Miller
2012-08-08 14:47 ` [PATCH 08/11] mtd/omap2: fix dmaengine_slave_config error handling Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 09/11] regulator/twl: remove fixed resource handling Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-08 14:50   ` Mark Brown
2012-08-08 14:50     ` Mark Brown
2012-08-08 15:06     ` Arnd Bergmann
2012-08-08 15:06       ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 10/11] spi/s3c64xx: improve error handling Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-10  6:39   ` Kukjin Kim
2012-08-10  6:39     ` Kukjin Kim
2012-08-10  7:34     ` Arnd Bergmann
2012-08-10  7:34       ` Arnd Bergmann
2012-08-10  6:58   ` Thomas Abraham
2012-08-10  6:58     ` Thomas Abraham
2012-08-08 14:47 ` [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS Arnd Bergmann
2012-08-08 14:47   ` Arnd Bergmann
2012-08-08 15:40   ` Stephen Warren
2012-08-08 15:40     ` Stephen Warren
2012-08-08 16:22     ` Arnd Bergmann
2012-08-08 16:22       ` Arnd Bergmann
2012-08-08 16:43       ` Takashi Iwai
2012-08-08 16:43         ` Takashi Iwai
2012-08-08 17:26         ` Arnd Bergmann
2012-08-08 17:26           ` Arnd Bergmann
2012-08-08 19:25           ` Rafael J. Wysocki
2012-08-08 19:25             ` Rafael J. Wysocki
2012-08-20  8:32           ` Herbert Xu
2012-08-20  8:32             ` Herbert Xu
2012-08-08 18:11   ` Kevin Hilman
2012-08-08 18:11     ` Kevin Hilman

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=Pine.LNX.4.44L0.1208081134350.1701-100000@iolanthe.rowland.org \
    --to=stern@rowland.harvard.edu \
    --cc=arm@kernel.org \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=richard.zhao@freescale.com \
    /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.