diff options
author | David Rientjes <rientjes@google.com> | 2007-05-11 17:39:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:29:50 -0400 |
commit | 8234509c3968a87faa301a8a9d7f8b987cd9181c (patch) | |
tree | b31f012ab48f870ce554ccc345639fcec10f356d /drivers/usb/host/ohci-dbg.c | |
parent | ba02978a48f0117b3d0aced97a30615a5d7412e2 (diff) |
USB: use function attribute __maybe_unused
Substitute USB instances of __attribute__ ((unused)) functions with the
newly introduced __maybe_unused.
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-dbg.c')
-rw-r--r-- | drivers/usb/host/ohci-dbg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-dbg.c b/drivers/usb/host/ohci-dbg.c index 273d5ddb72be..6f9e43e9a6ca 100644 --- a/drivers/usb/host/ohci-dbg.c +++ b/drivers/usb/host/ohci-dbg.c | |||
@@ -23,7 +23,7 @@ | |||
23 | /* debug| print the main components of an URB | 23 | /* debug| print the main components of an URB |
24 | * small: 0) header + data packets 1) just header | 24 | * small: 0) header + data packets 1) just header |
25 | */ | 25 | */ |
26 | static void __attribute__((unused)) | 26 | static void __maybe_unused |
27 | urb_print (struct urb * urb, char * str, int small) | 27 | urb_print (struct urb * urb, char * str, int small) |
28 | { | 28 | { |
29 | unsigned int pipe= urb->pipe; | 29 | unsigned int pipe= urb->pipe; |
@@ -338,7 +338,7 @@ static void ohci_dump_td (const struct ohci_hcd *ohci, const char *label, | |||
338 | } | 338 | } |
339 | 339 | ||
340 | /* caller MUST own hcd spinlock if verbose is set! */ | 340 | /* caller MUST own hcd spinlock if verbose is set! */ |
341 | static void __attribute__((unused)) | 341 | static void __maybe_unused |
342 | ohci_dump_ed (const struct ohci_hcd *ohci, const char *label, | 342 | ohci_dump_ed (const struct ohci_hcd *ohci, const char *label, |
343 | const struct ed *ed, int verbose) | 343 | const struct ed *ed, int verbose) |
344 | { | 344 | { |