mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ohci-hub: Mark ohci_finish_controller_resume() as __maybe_unused
@ 2012-06-04 19:20 Roland Stigge
  2012-06-04 20:16 ` Alan Stern
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Stigge @ 2012-06-04 19:20 UTC (permalink / raw)
  To: stern, gregkh, grant.likely, rob.herring, linux-usb,
	linux-kernel, linux-arm-kernel, kevin.wells, srinivas.bakki
  Cc: Roland Stigge

ohci_finish_controller_resume() is intended to be used in platform specific
drivers ohci-*.c, included from ohci-hcd.c. Some of them don't actually use
ohci_finish_controller_resume(), so mark it as __maybe_unused.

Signed-off-by: Roland Stigge <stigge@antcom.de>

---
 drivers/usb/host/ohci-hub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.orig/drivers/usb/host/ohci-hub.c
+++ linux-2.6/drivers/usb/host/ohci-hub.c
@@ -317,7 +317,7 @@ static int ohci_bus_resume (struct usb_h
 }
 
 /* Carry out the final steps of resuming the controller device */
-static void ohci_finish_controller_resume(struct usb_hcd *hcd)
+static void __maybe_unused ohci_finish_controller_resume(struct usb_hcd *hcd)
 {
 	struct ohci_hcd		*ohci = hcd_to_ohci(hcd);
 	int			port;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ohci-hub: Mark ohci_finish_controller_resume() as __maybe_unused
  2012-06-04 19:20 [PATCH] ohci-hub: Mark ohci_finish_controller_resume() as __maybe_unused Roland Stigge
@ 2012-06-04 20:16 ` Alan Stern
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2012-06-04 20:16 UTC (permalink / raw)
  To: Roland Stigge
  Cc: gregkh, grant.likely, rob.herring, linux-usb, linux-kernel,
	linux-arm-kernel, kevin.wells, srinivas.bakki

On Mon, 4 Jun 2012, Roland Stigge wrote:

> ohci_finish_controller_resume() is intended to be used in platform specific
> drivers ohci-*.c, included from ohci-hcd.c. Some of them don't actually use
> ohci_finish_controller_resume(), so mark it as __maybe_unused.
> 
> Signed-off-by: Roland Stigge <stigge@antcom.de>

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

> ---
>  drivers/usb/host/ohci-hub.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- linux-2.6.orig/drivers/usb/host/ohci-hub.c
> +++ linux-2.6/drivers/usb/host/ohci-hub.c
> @@ -317,7 +317,7 @@ static int ohci_bus_resume (struct usb_h
>  }
>  
>  /* Carry out the final steps of resuming the controller device */
> -static void ohci_finish_controller_resume(struct usb_hcd *hcd)
> +static void __maybe_unused ohci_finish_controller_resume(struct usb_hcd *hcd)
>  {
>  	struct ohci_hcd		*ohci = hcd_to_ohci(hcd);
>  	int			port;
> 
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-04 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04 19:20 [PATCH] ohci-hub: Mark ohci_finish_controller_resume() as __maybe_unused Roland Stigge
2012-06-04 20:16 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®