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/gadget | |
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/gadget')
-rw-r--r-- | drivers/usb/gadget/pxa2xx_udc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/pxa2xx_udc.h b/drivers/usb/gadget/pxa2xx_udc.h index 773e549aff3f..6b012e06af3a 100644 --- a/drivers/usb/gadget/pxa2xx_udc.h +++ b/drivers/usb/gadget/pxa2xx_udc.h | |||
@@ -204,7 +204,7 @@ static const char *state_name[] = { | |||
204 | # define UDC_DEBUG DBG_NORMAL | 204 | # define UDC_DEBUG DBG_NORMAL |
205 | #endif | 205 | #endif |
206 | 206 | ||
207 | static void __attribute__ ((__unused__)) | 207 | static void __maybe_unused |
208 | dump_udccr(const char *label) | 208 | dump_udccr(const char *label) |
209 | { | 209 | { |
210 | u32 udccr = UDCCR; | 210 | u32 udccr = UDCCR; |
@@ -220,7 +220,7 @@ dump_udccr(const char *label) | |||
220 | (udccr & UDCCR_UDE) ? " ude" : ""); | 220 | (udccr & UDCCR_UDE) ? " ude" : ""); |
221 | } | 221 | } |
222 | 222 | ||
223 | static void __attribute__ ((__unused__)) | 223 | static void __maybe_unused |
224 | dump_udccs0(const char *label) | 224 | dump_udccs0(const char *label) |
225 | { | 225 | { |
226 | u32 udccs0 = UDCCS0; | 226 | u32 udccs0 = UDCCS0; |
@@ -237,7 +237,7 @@ dump_udccs0(const char *label) | |||
237 | (udccs0 & UDCCS0_OPR) ? " opr" : ""); | 237 | (udccs0 & UDCCS0_OPR) ? " opr" : ""); |
238 | } | 238 | } |
239 | 239 | ||
240 | static void __attribute__ ((__unused__)) | 240 | static void __maybe_unused |
241 | dump_state(struct pxa2xx_udc *dev) | 241 | dump_state(struct pxa2xx_udc *dev) |
242 | { | 242 | { |
243 | u32 tmp; | 243 | u32 tmp; |