diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-07-25 04:45:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 13:53:29 -0400 |
commit | b6c63937001889af6fe431aaba97e59d04e028e7 (patch) | |
tree | cf73a1124a73e62fa5353098c276bb18b44cb867 | |
parent | f38954c93c4a548f55d73ac5c1cf5e7f4023bb6c (diff) |
Rename WARN() to WARNING() to clear the namespace
We want to use WARN() as a variant of WARN_ON(), however a few drivers are
using WARN() internally. This patch renames these to WARNING() to avoid the
namespace clash. A few cases were defining but not using the thing, for those
cases I just deleted the definition.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Greg KH <greg@kroah.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
28 files changed, 48 insertions, 55 deletions
diff --git a/drivers/isdn/hisax/st5481.h b/drivers/isdn/hisax/st5481.h index 2044e7173ab4..cff7a6354334 100644 --- a/drivers/isdn/hisax/st5481.h +++ b/drivers/isdn/hisax/st5481.h | |||
@@ -220,7 +220,7 @@ enum { | |||
220 | #define ERR(format, arg...) \ | 220 | #define ERR(format, arg...) \ |
221 | printk(KERN_ERR "%s:%s: " format "\n" , __FILE__, __func__ , ## arg) | 221 | printk(KERN_ERR "%s:%s: " format "\n" , __FILE__, __func__ , ## arg) |
222 | 222 | ||
223 | #define WARN(format, arg...) \ | 223 | #define WARNING(format, arg...) \ |
224 | printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __func__ , ## arg) | 224 | printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __func__ , ## arg) |
225 | 225 | ||
226 | #define INFO(format, arg...) \ | 226 | #define INFO(format, arg...) \ |
@@ -412,7 +412,7 @@ struct st5481_adapter { | |||
412 | ({ \ | 412 | ({ \ |
413 | int status; \ | 413 | int status; \ |
414 | if ((status = usb_submit_urb(urb, mem_flags)) < 0) { \ | 414 | if ((status = usb_submit_urb(urb, mem_flags)) < 0) { \ |
415 | WARN("usb_submit_urb failed,status=%d", status); \ | 415 | WARNING("usb_submit_urb failed,status=%d", status); \ |
416 | } \ | 416 | } \ |
417 | status; \ | 417 | status; \ |
418 | }) | 418 | }) |
diff --git a/drivers/isdn/hisax/st5481_b.c b/drivers/isdn/hisax/st5481_b.c index fa64115cd7c7..0074b600a0ef 100644 --- a/drivers/isdn/hisax/st5481_b.c +++ b/drivers/isdn/hisax/st5481_b.c | |||
@@ -180,7 +180,7 @@ static void usb_b_out_complete(struct urb *urb) | |||
180 | DBG(4,"urb killed status %d", urb->status); | 180 | DBG(4,"urb killed status %d", urb->status); |
181 | return; // Give up | 181 | return; // Give up |
182 | default: | 182 | default: |
183 | WARN("urb status %d",urb->status); | 183 | WARNING("urb status %d",urb->status); |
184 | if (b_out->busy == 0) { | 184 | if (b_out->busy == 0) { |
185 | st5481_usb_pipe_reset(adapter, (bcs->channel+1)*2 | USB_DIR_OUT, NULL, NULL); | 185 | st5481_usb_pipe_reset(adapter, (bcs->channel+1)*2 | USB_DIR_OUT, NULL, NULL); |
186 | } | 186 | } |
@@ -372,6 +372,6 @@ void st5481_b_l2l1(struct hisax_if *ifc, int pr, void *arg) | |||
372 | B_L1L2(bcs, PH_DEACTIVATE | INDICATION, NULL); | 372 | B_L1L2(bcs, PH_DEACTIVATE | INDICATION, NULL); |
373 | break; | 373 | break; |
374 | default: | 374 | default: |
375 | WARN("pr %#x\n", pr); | 375 | WARNING("pr %#x\n", pr); |
376 | } | 376 | } |
377 | } | 377 | } |
diff --git a/drivers/isdn/hisax/st5481_d.c b/drivers/isdn/hisax/st5481_d.c index b8c4855cc889..077991c1cd05 100644 --- a/drivers/isdn/hisax/st5481_d.c +++ b/drivers/isdn/hisax/st5481_d.c | |||
@@ -389,7 +389,7 @@ static void usb_d_out_complete(struct urb *urb) | |||
389 | DBG(1,"urb killed status %d", urb->status); | 389 | DBG(1,"urb killed status %d", urb->status); |
390 | break; | 390 | break; |
391 | default: | 391 | default: |
392 | WARN("urb status %d",urb->status); | 392 | WARNING("urb status %d",urb->status); |
393 | if (d_out->busy == 0) { | 393 | if (d_out->busy == 0) { |
394 | st5481_usb_pipe_reset(adapter, EP_D_OUT | USB_DIR_OUT, fifo_reseted, adapter); | 394 | st5481_usb_pipe_reset(adapter, EP_D_OUT | USB_DIR_OUT, fifo_reseted, adapter); |
395 | } | 395 | } |
@@ -420,7 +420,7 @@ static void dout_start_xmit(struct FsmInst *fsm, int event, void *arg) | |||
420 | isdnhdlc_out_init(&d_out->hdlc_state, 1, 0); | 420 | isdnhdlc_out_init(&d_out->hdlc_state, 1, 0); |
421 | 421 | ||
422 | if (test_and_set_bit(buf_nr, &d_out->busy)) { | 422 | if (test_and_set_bit(buf_nr, &d_out->busy)) { |
423 | WARN("ep %d urb %d busy %#lx", EP_D_OUT, buf_nr, d_out->busy); | 423 | WARNING("ep %d urb %d busy %#lx", EP_D_OUT, buf_nr, d_out->busy); |
424 | return; | 424 | return; |
425 | } | 425 | } |
426 | urb = d_out->urb[buf_nr]; | 426 | urb = d_out->urb[buf_nr]; |
@@ -601,7 +601,7 @@ void st5481_d_l2l1(struct hisax_if *hisax_d_if, int pr, void *arg) | |||
601 | FsmEvent(&adapter->d_out.fsm, EV_DOUT_START_XMIT, NULL); | 601 | FsmEvent(&adapter->d_out.fsm, EV_DOUT_START_XMIT, NULL); |
602 | break; | 602 | break; |
603 | default: | 603 | default: |
604 | WARN("pr %#x\n", pr); | 604 | WARNING("pr %#x\n", pr); |
605 | break; | 605 | break; |
606 | } | 606 | } |
607 | } | 607 | } |
diff --git a/drivers/isdn/hisax/st5481_usb.c b/drivers/isdn/hisax/st5481_usb.c index 427a8b0520f5..ec3c0e507669 100644 --- a/drivers/isdn/hisax/st5481_usb.c +++ b/drivers/isdn/hisax/st5481_usb.c | |||
@@ -66,7 +66,7 @@ static void usb_ctrl_msg(struct st5481_adapter *adapter, | |||
66 | struct ctrl_msg *ctrl_msg; | 66 | struct ctrl_msg *ctrl_msg; |
67 | 67 | ||
68 | if ((w_index = fifo_add(&ctrl->msg_fifo.f)) < 0) { | 68 | if ((w_index = fifo_add(&ctrl->msg_fifo.f)) < 0) { |
69 | WARN("control msg FIFO full"); | 69 | WARNING("control msg FIFO full"); |
70 | return; | 70 | return; |
71 | } | 71 | } |
72 | ctrl_msg = &ctrl->msg_fifo.data[w_index]; | 72 | ctrl_msg = &ctrl->msg_fifo.data[w_index]; |
@@ -139,7 +139,7 @@ static void usb_ctrl_complete(struct urb *urb) | |||
139 | DBG(1,"urb killed status %d", urb->status); | 139 | DBG(1,"urb killed status %d", urb->status); |
140 | return; // Give up | 140 | return; // Give up |
141 | default: | 141 | default: |
142 | WARN("urb status %d",urb->status); | 142 | WARNING("urb status %d",urb->status); |
143 | break; | 143 | break; |
144 | } | 144 | } |
145 | } | 145 | } |
@@ -198,7 +198,7 @@ static void usb_int_complete(struct urb *urb) | |||
198 | DBG(2, "urb shutting down with status: %d", urb->status); | 198 | DBG(2, "urb shutting down with status: %d", urb->status); |
199 | return; | 199 | return; |
200 | default: | 200 | default: |
201 | WARN("nonzero urb status received: %d", urb->status); | 201 | WARNING("nonzero urb status received: %d", urb->status); |
202 | goto exit; | 202 | goto exit; |
203 | } | 203 | } |
204 | 204 | ||
@@ -235,7 +235,7 @@ static void usb_int_complete(struct urb *urb) | |||
235 | exit: | 235 | exit: |
236 | status = usb_submit_urb (urb, GFP_ATOMIC); | 236 | status = usb_submit_urb (urb, GFP_ATOMIC); |
237 | if (status) | 237 | if (status) |
238 | WARN("usb_submit_urb failed with result %d", status); | 238 | WARNING("usb_submit_urb failed with result %d", status); |
239 | } | 239 | } |
240 | 240 | ||
241 | /* ====================================================================== | 241 | /* ====================================================================== |
@@ -257,7 +257,7 @@ int st5481_setup_usb(struct st5481_adapter *adapter) | |||
257 | DBG(2,""); | 257 | DBG(2,""); |
258 | 258 | ||
259 | if ((status = usb_reset_configuration (dev)) < 0) { | 259 | if ((status = usb_reset_configuration (dev)) < 0) { |
260 | WARN("reset_configuration failed,status=%d",status); | 260 | WARNING("reset_configuration failed,status=%d",status); |
261 | return status; | 261 | return status; |
262 | } | 262 | } |
263 | 263 | ||
@@ -269,7 +269,7 @@ int st5481_setup_usb(struct st5481_adapter *adapter) | |||
269 | 269 | ||
270 | // Check if the config is sane | 270 | // Check if the config is sane |
271 | if ( altsetting->desc.bNumEndpoints != 7 ) { | 271 | if ( altsetting->desc.bNumEndpoints != 7 ) { |
272 | WARN("expecting 7 got %d endpoints!", altsetting->desc.bNumEndpoints); | 272 | WARNING("expecting 7 got %d endpoints!", altsetting->desc.bNumEndpoints); |
273 | return -EINVAL; | 273 | return -EINVAL; |
274 | } | 274 | } |
275 | 275 | ||
@@ -279,7 +279,7 @@ int st5481_setup_usb(struct st5481_adapter *adapter) | |||
279 | 279 | ||
280 | // Use alternative setting 3 on interface 0 to have 2B+D | 280 | // Use alternative setting 3 on interface 0 to have 2B+D |
281 | if ((status = usb_set_interface (dev, 0, 3)) < 0) { | 281 | if ((status = usb_set_interface (dev, 0, 3)) < 0) { |
282 | WARN("usb_set_interface failed,status=%d",status); | 282 | WARNING("usb_set_interface failed,status=%d",status); |
283 | return status; | 283 | return status; |
284 | } | 284 | } |
285 | 285 | ||
@@ -497,7 +497,7 @@ static void usb_in_complete(struct urb *urb) | |||
497 | DBG(1,"urb killed status %d", urb->status); | 497 | DBG(1,"urb killed status %d", urb->status); |
498 | return; // Give up | 498 | return; // Give up |
499 | default: | 499 | default: |
500 | WARN("urb status %d",urb->status); | 500 | WARNING("urb status %d",urb->status); |
501 | break; | 501 | break; |
502 | } | 502 | } |
503 | } | 503 | } |
@@ -523,7 +523,7 @@ static void usb_in_complete(struct urb *urb) | |||
523 | DBG(4,"count=%d",status); | 523 | DBG(4,"count=%d",status); |
524 | DBG_PACKET(0x400, in->rcvbuf, status); | 524 | DBG_PACKET(0x400, in->rcvbuf, status); |
525 | if (!(skb = dev_alloc_skb(status))) { | 525 | if (!(skb = dev_alloc_skb(status))) { |
526 | WARN("receive out of memory\n"); | 526 | WARNING("receive out of memory\n"); |
527 | break; | 527 | break; |
528 | } | 528 | } |
529 | memcpy(skb_put(skb, status), in->rcvbuf, status); | 529 | memcpy(skb_put(skb, status), in->rcvbuf, status); |
diff --git a/drivers/usb/gadget/at91_udc.h b/drivers/usb/gadget/at91_udc.h index a973f2a50fb9..c65d62295890 100644 --- a/drivers/usb/gadget/at91_udc.h +++ b/drivers/usb/gadget/at91_udc.h | |||
@@ -171,7 +171,7 @@ struct at91_request { | |||
171 | #endif | 171 | #endif |
172 | 172 | ||
173 | #define ERR(stuff...) pr_err("udc: " stuff) | 173 | #define ERR(stuff...) pr_err("udc: " stuff) |
174 | #define WARN(stuff...) pr_warning("udc: " stuff) | 174 | #define WARNING(stuff...) pr_warning("udc: " stuff) |
175 | #define INFO(stuff...) pr_info("udc: " stuff) | 175 | #define INFO(stuff...) pr_info("udc: " stuff) |
176 | #define DBG(stuff...) pr_debug("udc: " stuff) | 176 | #define DBG(stuff...) pr_debug("udc: " stuff) |
177 | 177 | ||
diff --git a/drivers/usb/gadget/cdc2.c b/drivers/usb/gadget/cdc2.c index d490d0289507..a39a4b940c33 100644 --- a/drivers/usb/gadget/cdc2.c +++ b/drivers/usb/gadget/cdc2.c | |||
@@ -170,7 +170,7 @@ static int __init cdc_bind(struct usb_composite_dev *cdev) | |||
170 | * but if the controller isn't recognized at all then | 170 | * but if the controller isn't recognized at all then |
171 | * that assumption is a bit more likely to be wrong. | 171 | * that assumption is a bit more likely to be wrong. |
172 | */ | 172 | */ |
173 | WARN(cdev, "controller '%s' not recognized; trying %s\n", | 173 | WARNING(cdev, "controller '%s' not recognized; trying %s\n", |
174 | gadget->name, | 174 | gadget->name, |
175 | cdc_config_driver.label); | 175 | cdc_config_driver.label); |
176 | device_desc.bcdDevice = | 176 | device_desc.bcdDevice = |
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index d7aaaa29b1e1..bcac2e68660d 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
@@ -293,7 +293,7 @@ static int __init eth_bind(struct usb_composite_dev *cdev) | |||
293 | * but if the controller isn't recognized at all then | 293 | * but if the controller isn't recognized at all then |
294 | * that assumption is a bit more likely to be wrong. | 294 | * that assumption is a bit more likely to be wrong. |
295 | */ | 295 | */ |
296 | WARN(cdev, "controller '%s' not recognized; trying %s\n", | 296 | WARNING(cdev, "controller '%s' not recognized; trying %s\n", |
297 | gadget->name, | 297 | gadget->name, |
298 | eth_config_driver.label); | 298 | eth_config_driver.label); |
299 | device_desc.bcdDevice = | 299 | device_desc.bcdDevice = |
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index 15c24edbb61a..ea2c31d18080 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -308,7 +308,7 @@ MODULE_LICENSE("Dual BSD/GPL"); | |||
308 | dev_vdbg(&(d)->gadget->dev , fmt , ## args) | 308 | dev_vdbg(&(d)->gadget->dev , fmt , ## args) |
309 | #define ERROR(d, fmt, args...) \ | 309 | #define ERROR(d, fmt, args...) \ |
310 | dev_err(&(d)->gadget->dev , fmt , ## args) | 310 | dev_err(&(d)->gadget->dev , fmt , ## args) |
311 | #define WARN(d, fmt, args...) \ | 311 | #define WARNING(d, fmt, args...) \ |
312 | dev_warn(&(d)->gadget->dev , fmt , ## args) | 312 | dev_warn(&(d)->gadget->dev , fmt , ## args) |
313 | #define INFO(d, fmt, args...) \ | 313 | #define INFO(d, fmt, args...) \ |
314 | dev_info(&(d)->gadget->dev , fmt , ## args) | 314 | dev_info(&(d)->gadget->dev , fmt , ## args) |
@@ -1091,7 +1091,7 @@ static int ep0_queue(struct fsg_dev *fsg) | |||
1091 | if (rc != 0 && rc != -ESHUTDOWN) { | 1091 | if (rc != 0 && rc != -ESHUTDOWN) { |
1092 | 1092 | ||
1093 | /* We can't do much more than wait for a reset */ | 1093 | /* We can't do much more than wait for a reset */ |
1094 | WARN(fsg, "error in submission: %s --> %d\n", | 1094 | WARNING(fsg, "error in submission: %s --> %d\n", |
1095 | fsg->ep0->name, rc); | 1095 | fsg->ep0->name, rc); |
1096 | } | 1096 | } |
1097 | return rc; | 1097 | return rc; |
@@ -1227,7 +1227,7 @@ static void received_cbi_adsc(struct fsg_dev *fsg, struct fsg_buffhd *bh) | |||
1227 | 1227 | ||
1228 | /* Save the command for later */ | 1228 | /* Save the command for later */ |
1229 | if (fsg->cbbuf_cmnd_size) | 1229 | if (fsg->cbbuf_cmnd_size) |
1230 | WARN(fsg, "CB[I] overwriting previous command\n"); | 1230 | WARNING(fsg, "CB[I] overwriting previous command\n"); |
1231 | fsg->cbbuf_cmnd_size = req->actual; | 1231 | fsg->cbbuf_cmnd_size = req->actual; |
1232 | memcpy(fsg->cbbuf_cmnd, req->buf, fsg->cbbuf_cmnd_size); | 1232 | memcpy(fsg->cbbuf_cmnd, req->buf, fsg->cbbuf_cmnd_size); |
1233 | 1233 | ||
@@ -1506,7 +1506,7 @@ static void start_transfer(struct fsg_dev *fsg, struct usb_ep *ep, | |||
1506 | * submissions if DMA is enabled. */ | 1506 | * submissions if DMA is enabled. */ |
1507 | if (rc != -ESHUTDOWN && !(rc == -EOPNOTSUPP && | 1507 | if (rc != -ESHUTDOWN && !(rc == -EOPNOTSUPP && |
1508 | req->length == 0)) | 1508 | req->length == 0)) |
1509 | WARN(fsg, "error in submission: %s --> %d\n", | 1509 | WARNING(fsg, "error in submission: %s --> %d\n", |
1510 | ep->name, rc); | 1510 | ep->name, rc); |
1511 | } | 1511 | } |
1512 | } | 1512 | } |
@@ -2294,7 +2294,7 @@ static int halt_bulk_in_endpoint(struct fsg_dev *fsg) | |||
2294 | VDBG(fsg, "delayed bulk-in endpoint halt\n"); | 2294 | VDBG(fsg, "delayed bulk-in endpoint halt\n"); |
2295 | while (rc != 0) { | 2295 | while (rc != 0) { |
2296 | if (rc != -EAGAIN) { | 2296 | if (rc != -EAGAIN) { |
2297 | WARN(fsg, "usb_ep_set_halt -> %d\n", rc); | 2297 | WARNING(fsg, "usb_ep_set_halt -> %d\n", rc); |
2298 | rc = 0; | 2298 | rc = 0; |
2299 | break; | 2299 | break; |
2300 | } | 2300 | } |
@@ -2317,7 +2317,7 @@ static int wedge_bulk_in_endpoint(struct fsg_dev *fsg) | |||
2317 | VDBG(fsg, "delayed bulk-in endpoint wedge\n"); | 2317 | VDBG(fsg, "delayed bulk-in endpoint wedge\n"); |
2318 | while (rc != 0) { | 2318 | while (rc != 0) { |
2319 | if (rc != -EAGAIN) { | 2319 | if (rc != -EAGAIN) { |
2320 | WARN(fsg, "usb_ep_set_wedge -> %d\n", rc); | 2320 | WARNING(fsg, "usb_ep_set_wedge -> %d\n", rc); |
2321 | rc = 0; | 2321 | rc = 0; |
2322 | break; | 2322 | break; |
2323 | } | 2323 | } |
@@ -3755,7 +3755,7 @@ static int __init check_parameters(struct fsg_dev *fsg) | |||
3755 | if (gcnum >= 0) | 3755 | if (gcnum >= 0) |
3756 | mod_data.release = 0x0300 + gcnum; | 3756 | mod_data.release = 0x0300 + gcnum; |
3757 | else { | 3757 | else { |
3758 | WARN(fsg, "controller '%s' not recognized\n", | 3758 | WARNING(fsg, "controller '%s' not recognized\n", |
3759 | fsg->gadget->name); | 3759 | fsg->gadget->name); |
3760 | mod_data.release = 0x0399; | 3760 | mod_data.release = 0x0399; |
3761 | } | 3761 | } |
diff --git a/drivers/usb/gadget/fsl_usb2_udc.c b/drivers/usb/gadget/fsl_usb2_udc.c index 1695382f30fe..1cfccf102a2d 100644 --- a/drivers/usb/gadget/fsl_usb2_udc.c +++ b/drivers/usb/gadget/fsl_usb2_udc.c | |||
@@ -1538,7 +1538,7 @@ static void dtd_complete_irq(struct fsl_udc *udc) | |||
1538 | 1538 | ||
1539 | /* If the ep is configured */ | 1539 | /* If the ep is configured */ |
1540 | if (curr_ep->name == NULL) { | 1540 | if (curr_ep->name == NULL) { |
1541 | WARN("Invalid EP?"); | 1541 | WARNING("Invalid EP?"); |
1542 | continue; | 1542 | continue; |
1543 | } | 1543 | } |
1544 | 1544 | ||
diff --git a/drivers/usb/gadget/fsl_usb2_udc.h b/drivers/usb/gadget/fsl_usb2_udc.h index 98b1483ef6a5..6131752a38bc 100644 --- a/drivers/usb/gadget/fsl_usb2_udc.h +++ b/drivers/usb/gadget/fsl_usb2_udc.h | |||
@@ -552,7 +552,7 @@ static void dump_msg(const char *label, const u8 * buf, unsigned int length) | |||
552 | #endif | 552 | #endif |
553 | 553 | ||
554 | #define ERR(stuff...) pr_err("udc: " stuff) | 554 | #define ERR(stuff...) pr_err("udc: " stuff) |
555 | #define WARN(stuff...) pr_warning("udc: " stuff) | 555 | #define WARNING(stuff...) pr_warning("udc: " stuff) |
556 | #define INFO(stuff...) pr_info("udc: " stuff) | 556 | #define INFO(stuff...) pr_info("udc: " stuff) |
557 | 557 | ||
558 | /*-------------------------------------------------------------------------*/ | 558 | /*-------------------------------------------------------------------------*/ |
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index 7f4d4828e3aa..ea8651e3da1a 100644 --- a/drivers/usb/gadget/gmidi.c +++ b/drivers/usb/gadget/gmidi.c | |||
@@ -138,8 +138,6 @@ static void gmidi_transmit(struct gmidi_device* dev, struct usb_request* req); | |||
138 | dev_vdbg(&(d)->gadget->dev , fmt , ## args) | 138 | dev_vdbg(&(d)->gadget->dev , fmt , ## args) |
139 | #define ERROR(d, fmt, args...) \ | 139 | #define ERROR(d, fmt, args...) \ |
140 | dev_err(&(d)->gadget->dev , fmt , ## args) | 140 | dev_err(&(d)->gadget->dev , fmt , ## args) |
141 | #define WARN(d, fmt, args...) \ | ||
142 | dev_warn(&(d)->gadget->dev , fmt , ## args) | ||
143 | #define INFO(d, fmt, args...) \ | 141 | #define INFO(d, fmt, args...) \ |
144 | dev_info(&(d)->gadget->dev , fmt , ## args) | 142 | dev_info(&(d)->gadget->dev , fmt , ## args) |
145 | 143 | ||
diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c index 48f1c63b7013..60aa04847b18 100644 --- a/drivers/usb/gadget/goku_udc.c +++ b/drivers/usb/gadget/goku_udc.c | |||
@@ -1768,7 +1768,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1768 | * usb_gadget_driver_{register,unregister}() must change. | 1768 | * usb_gadget_driver_{register,unregister}() must change. |
1769 | */ | 1769 | */ |
1770 | if (the_controller) { | 1770 | if (the_controller) { |
1771 | WARN(dev, "ignoring %s\n", pci_name(pdev)); | 1771 | WARNING(dev, "ignoring %s\n", pci_name(pdev)); |
1772 | return -EBUSY; | 1772 | return -EBUSY; |
1773 | } | 1773 | } |
1774 | if (!pdev->irq) { | 1774 | if (!pdev->irq) { |
diff --git a/drivers/usb/gadget/goku_udc.h b/drivers/usb/gadget/goku_udc.h index bc4eb1e0b507..566cb2319056 100644 --- a/drivers/usb/gadget/goku_udc.h +++ b/drivers/usb/gadget/goku_udc.h | |||
@@ -285,7 +285,7 @@ struct goku_udc { | |||
285 | 285 | ||
286 | #define ERROR(dev,fmt,args...) \ | 286 | #define ERROR(dev,fmt,args...) \ |
287 | xprintk(dev , KERN_ERR , fmt , ## args) | 287 | xprintk(dev , KERN_ERR , fmt , ## args) |
288 | #define WARN(dev,fmt,args...) \ | 288 | #define WARNING(dev,fmt,args...) \ |
289 | xprintk(dev , KERN_WARNING , fmt , ## args) | 289 | xprintk(dev , KERN_WARNING , fmt , ## args) |
290 | #define INFO(dev,fmt,args...) \ | 290 | #define INFO(dev,fmt,args...) \ |
291 | xprintk(dev , KERN_INFO , fmt , ## args) | 291 | xprintk(dev , KERN_INFO , fmt , ## args) |
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index 04692d59fc1c..f4585d3e90d7 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
@@ -262,8 +262,6 @@ static const char *CHIP; | |||
262 | 262 | ||
263 | #define ERROR(dev,fmt,args...) \ | 263 | #define ERROR(dev,fmt,args...) \ |
264 | xprintk(dev , KERN_ERR , fmt , ## args) | 264 | xprintk(dev , KERN_ERR , fmt , ## args) |
265 | #define WARN(dev,fmt,args...) \ | ||
266 | xprintk(dev , KERN_WARNING , fmt , ## args) | ||
267 | #define INFO(dev,fmt,args...) \ | 265 | #define INFO(dev,fmt,args...) \ |
268 | xprintk(dev , KERN_INFO , fmt , ## args) | 266 | xprintk(dev , KERN_INFO , fmt , ## args) |
269 | 267 | ||
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index b67ab677af72..5cfb5ebf3881 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c | |||
@@ -1007,7 +1007,7 @@ static void scan_dma_completions (struct net2280_ep *ep) | |||
1007 | * 0122, and 0124; not all cases trigger the warning. | 1007 | * 0122, and 0124; not all cases trigger the warning. |
1008 | */ | 1008 | */ |
1009 | if ((tmp & (1 << NAK_OUT_PACKETS)) == 0) { | 1009 | if ((tmp & (1 << NAK_OUT_PACKETS)) == 0) { |
1010 | WARN (ep->dev, "%s lost packet sync!\n", | 1010 | WARNING (ep->dev, "%s lost packet sync!\n", |
1011 | ep->ep.name); | 1011 | ep->ep.name); |
1012 | req->req.status = -EOVERFLOW; | 1012 | req->req.status = -EOVERFLOW; |
1013 | } else if ((tmp = readl (&ep->regs->ep_avail)) != 0) { | 1013 | } else if ((tmp = readl (&ep->regs->ep_avail)) != 0) { |
diff --git a/drivers/usb/gadget/net2280.h b/drivers/usb/gadget/net2280.h index 1f2af398a9a4..81a71dbdc2c6 100644 --- a/drivers/usb/gadget/net2280.h +++ b/drivers/usb/gadget/net2280.h | |||
@@ -272,7 +272,7 @@ static inline void net2280_led_shutdown (struct net2280 *dev) | |||
272 | 272 | ||
273 | #define ERROR(dev,fmt,args...) \ | 273 | #define ERROR(dev,fmt,args...) \ |
274 | xprintk(dev , KERN_ERR , fmt , ## args) | 274 | xprintk(dev , KERN_ERR , fmt , ## args) |
275 | #define WARN(dev,fmt,args...) \ | 275 | #define WARNING(dev,fmt,args...) \ |
276 | xprintk(dev , KERN_WARNING , fmt , ## args) | 276 | xprintk(dev , KERN_WARNING , fmt , ## args) |
277 | #define INFO(dev,fmt,args...) \ | 277 | #define INFO(dev,fmt,args...) \ |
278 | xprintk(dev , KERN_INFO , fmt , ## args) | 278 | xprintk(dev , KERN_INFO , fmt , ## args) |
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 4b79a8509e84..395bd1844482 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -1120,7 +1120,7 @@ static int omap_ep_set_halt(struct usb_ep *_ep, int value) | |||
1120 | status = -EINVAL; | 1120 | status = -EINVAL; |
1121 | else if (value) { | 1121 | else if (value) { |
1122 | if (ep->udc->ep0_set_config) { | 1122 | if (ep->udc->ep0_set_config) { |
1123 | WARN("error changing config?\n"); | 1123 | WARNING("error changing config?\n"); |
1124 | omap_writew(UDC_CLR_CFG, UDC_SYSCON2); | 1124 | omap_writew(UDC_CLR_CFG, UDC_SYSCON2); |
1125 | } | 1125 | } |
1126 | omap_writew(UDC_STALL_CMD, UDC_SYSCON2); | 1126 | omap_writew(UDC_STALL_CMD, UDC_SYSCON2); |
@@ -1764,7 +1764,7 @@ do_stall: | |||
1764 | u.r.bRequestType, u.r.bRequest, status); | 1764 | u.r.bRequestType, u.r.bRequest, status); |
1765 | if (udc->ep0_set_config) { | 1765 | if (udc->ep0_set_config) { |
1766 | if (udc->ep0_reset_config) | 1766 | if (udc->ep0_reset_config) |
1767 | WARN("error resetting config?\n"); | 1767 | WARNING("error resetting config?\n"); |
1768 | else | 1768 | else |
1769 | omap_writew(UDC_CLR_CFG, UDC_SYSCON2); | 1769 | omap_writew(UDC_CLR_CFG, UDC_SYSCON2); |
1770 | } | 1770 | } |
@@ -3076,7 +3076,7 @@ static int omap_udc_suspend(struct platform_device *dev, pm_message_t message) | |||
3076 | * which would prevent entry to deep sleep... | 3076 | * which would prevent entry to deep sleep... |
3077 | */ | 3077 | */ |
3078 | if ((devstat & UDC_ATT) != 0 && (devstat & UDC_SUS) == 0) { | 3078 | if ((devstat & UDC_ATT) != 0 && (devstat & UDC_SUS) == 0) { |
3079 | WARN("session active; suspend requires disconnect\n"); | 3079 | WARNING("session active; suspend requires disconnect\n"); |
3080 | omap_pullup(&udc->gadget, 0); | 3080 | omap_pullup(&udc->gadget, 0); |
3081 | } | 3081 | } |
3082 | 3082 | ||
diff --git a/drivers/usb/gadget/omap_udc.h b/drivers/usb/gadget/omap_udc.h index 8522bbb12278..29edc51b6b22 100644 --- a/drivers/usb/gadget/omap_udc.h +++ b/drivers/usb/gadget/omap_udc.h | |||
@@ -188,7 +188,7 @@ struct omap_udc { | |||
188 | #endif | 188 | #endif |
189 | 189 | ||
190 | #define ERR(stuff...) pr_err("udc: " stuff) | 190 | #define ERR(stuff...) pr_err("udc: " stuff) |
191 | #define WARN(stuff...) pr_warning("udc: " stuff) | 191 | #define WARNING(stuff...) pr_warning("udc: " stuff) |
192 | #define INFO(stuff...) pr_info("udc: " stuff) | 192 | #define INFO(stuff...) pr_info("udc: " stuff) |
193 | #define DBG(stuff...) pr_debug("udc: " stuff) | 193 | #define DBG(stuff...) pr_debug("udc: " stuff) |
194 | 194 | ||
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c index 49cd9e145a9b..e0090085b78e 100644 --- a/drivers/usb/gadget/printer.c +++ b/drivers/usb/gadget/printer.c | |||
@@ -179,7 +179,7 @@ module_param(qlen, uint, S_IRUGO|S_IWUSR); | |||
179 | 179 | ||
180 | #define ERROR(dev, fmt, args...) \ | 180 | #define ERROR(dev, fmt, args...) \ |
181 | xprintk(dev, KERN_ERR, fmt, ## args) | 181 | xprintk(dev, KERN_ERR, fmt, ## args) |
182 | #define WARN(dev, fmt, args...) \ | 182 | #define WARNING(dev, fmt, args...) \ |
183 | xprintk(dev, KERN_WARNING, fmt, ## args) | 183 | xprintk(dev, KERN_WARNING, fmt, ## args) |
184 | #define INFO(dev, fmt, args...) \ | 184 | #define INFO(dev, fmt, args...) \ |
185 | xprintk(dev, KERN_INFO, fmt, ## args) | 185 | xprintk(dev, KERN_INFO, fmt, ## args) |
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c index 8fb0066609bb..7e6725d89976 100644 --- a/drivers/usb/gadget/pxa25x_udc.c +++ b/drivers/usb/gadget/pxa25x_udc.c | |||
@@ -342,7 +342,7 @@ pxa25x_ep_free_request (struct usb_ep *_ep, struct usb_request *_req) | |||
342 | struct pxa25x_request *req; | 342 | struct pxa25x_request *req; |
343 | 343 | ||
344 | req = container_of (_req, struct pxa25x_request, req); | 344 | req = container_of (_req, struct pxa25x_request, req); |
345 | WARN_ON (!list_empty (&req->queue)); | 345 | WARN_ON(!list_empty (&req->queue)); |
346 | kfree(req); | 346 | kfree(req); |
347 | } | 347 | } |
348 | 348 | ||
@@ -1556,7 +1556,7 @@ config_change: | |||
1556 | * tell us about config change events, | 1556 | * tell us about config change events, |
1557 | * so later ones may fail... | 1557 | * so later ones may fail... |
1558 | */ | 1558 | */ |
1559 | WARN("config change %02x fail %d?\n", | 1559 | WARNING("config change %02x fail %d?\n", |
1560 | u.r.bRequest, i); | 1560 | u.r.bRequest, i); |
1561 | return; | 1561 | return; |
1562 | /* TODO experiment: if has_cfr, | 1562 | /* TODO experiment: if has_cfr, |
@@ -2330,7 +2330,7 @@ static int pxa25x_udc_suspend(struct platform_device *dev, pm_message_t state) | |||
2330 | unsigned long flags; | 2330 | unsigned long flags; |
2331 | 2331 | ||
2332 | if (!udc->mach->gpio_pullup && !udc->mach->udc_command) | 2332 | if (!udc->mach->gpio_pullup && !udc->mach->udc_command) |
2333 | WARN("USB host won't detect disconnect!\n"); | 2333 | WARNING("USB host won't detect disconnect!\n"); |
2334 | udc->suspended = 1; | 2334 | udc->suspended = 1; |
2335 | 2335 | ||
2336 | local_irq_save(flags); | 2336 | local_irq_save(flags); |
diff --git a/drivers/usb/gadget/pxa25x_udc.h b/drivers/usb/gadget/pxa25x_udc.h index 4d11ece7c95f..c8a13215e02c 100644 --- a/drivers/usb/gadget/pxa25x_udc.h +++ b/drivers/usb/gadget/pxa25x_udc.h | |||
@@ -259,7 +259,7 @@ dump_state(struct pxa25x_udc *dev) | |||
259 | #define DBG(lvl, stuff...) do{if ((lvl) <= UDC_DEBUG) DMSG(stuff);}while(0) | 259 | #define DBG(lvl, stuff...) do{if ((lvl) <= UDC_DEBUG) DMSG(stuff);}while(0) |
260 | 260 | ||
261 | #define ERR(stuff...) pr_err("udc: " stuff) | 261 | #define ERR(stuff...) pr_err("udc: " stuff) |
262 | #define WARN(stuff...) pr_warning("udc: " stuff) | 262 | #define WARNING(stuff...) pr_warning("udc: " stuff) |
263 | #define INFO(stuff...) pr_info("udc: " stuff) | 263 | #define INFO(stuff...) pr_info("udc: " stuff) |
264 | 264 | ||
265 | 265 | ||
diff --git a/drivers/usb/gadget/u_ether.c b/drivers/usb/gadget/u_ether.c index 5458f43a8668..3791e6271903 100644 --- a/drivers/usb/gadget/u_ether.c +++ b/drivers/usb/gadget/u_ether.c | |||
@@ -116,7 +116,6 @@ static inline int qlen(struct usb_gadget *gadget) | |||
116 | #undef DBG | 116 | #undef DBG |
117 | #undef VDBG | 117 | #undef VDBG |
118 | #undef ERROR | 118 | #undef ERROR |
119 | #undef WARN | ||
120 | #undef INFO | 119 | #undef INFO |
121 | 120 | ||
122 | #define xprintk(d, level, fmt, args...) \ | 121 | #define xprintk(d, level, fmt, args...) \ |
@@ -140,8 +139,6 @@ static inline int qlen(struct usb_gadget *gadget) | |||
140 | 139 | ||
141 | #define ERROR(dev, fmt, args...) \ | 140 | #define ERROR(dev, fmt, args...) \ |
142 | xprintk(dev , KERN_ERR , fmt , ## args) | 141 | xprintk(dev , KERN_ERR , fmt , ## args) |
143 | #define WARN(dev, fmt, args...) \ | ||
144 | xprintk(dev , KERN_WARNING , fmt , ## args) | ||
145 | #define INFO(dev, fmt, args...) \ | 142 | #define INFO(dev, fmt, args...) \ |
146 | xprintk(dev , KERN_INFO , fmt , ## args) | 143 | xprintk(dev , KERN_INFO , fmt , ## args) |
147 | 144 | ||
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index 31178e10cbbe..ce1ca0ba0515 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
@@ -882,7 +882,7 @@ static void isp116x_endpoint_disable(struct usb_hcd *hcd, | |||
882 | for (i = 0; i < 100 && !list_empty(&hep->urb_list); i++) | 882 | for (i = 0; i < 100 && !list_empty(&hep->urb_list); i++) |
883 | msleep(3); | 883 | msleep(3); |
884 | if (!list_empty(&hep->urb_list)) | 884 | if (!list_empty(&hep->urb_list)) |
885 | WARN("ep %p not empty?\n", ep); | 885 | WARNING("ep %p not empty?\n", ep); |
886 | 886 | ||
887 | kfree(ep); | 887 | kfree(ep); |
888 | hep->hcpriv = NULL; | 888 | hep->hcpriv = NULL; |
diff --git a/drivers/usb/host/isp116x.h b/drivers/usb/host/isp116x.h index 595b90a99848..aa211bafcff9 100644 --- a/drivers/usb/host/isp116x.h +++ b/drivers/usb/host/isp116x.h | |||
@@ -338,7 +338,7 @@ struct isp116x_ep { | |||
338 | #endif | 338 | #endif |
339 | 339 | ||
340 | #define ERR(stuff...) printk(KERN_ERR "116x: " stuff) | 340 | #define ERR(stuff...) printk(KERN_ERR "116x: " stuff) |
341 | #define WARN(stuff...) printk(KERN_WARNING "116x: " stuff) | 341 | #define WARNING(stuff...) printk(KERN_WARNING "116x: " stuff) |
342 | #define INFO(stuff...) printk(KERN_INFO "116x: " stuff) | 342 | #define INFO(stuff...) printk(KERN_INFO "116x: " stuff) |
343 | 343 | ||
344 | /* ------------------------------------------------- */ | 344 | /* ------------------------------------------------- */ |
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 340d72da554a..8a74bbb57d08 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
@@ -1026,7 +1026,7 @@ sl811h_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep) | |||
1026 | if (!list_empty(&hep->urb_list)) | 1026 | if (!list_empty(&hep->urb_list)) |
1027 | msleep(3); | 1027 | msleep(3); |
1028 | if (!list_empty(&hep->urb_list)) | 1028 | if (!list_empty(&hep->urb_list)) |
1029 | WARN("ep %p not empty?\n", ep); | 1029 | WARNING("ep %p not empty?\n", ep); |
1030 | 1030 | ||
1031 | kfree(ep); | 1031 | kfree(ep); |
1032 | hep->hcpriv = NULL; | 1032 | hep->hcpriv = NULL; |
diff --git a/drivers/usb/host/sl811.h b/drivers/usb/host/sl811.h index 7690d98e42a7..b6b8c1f233dd 100644 --- a/drivers/usb/host/sl811.h +++ b/drivers/usb/host/sl811.h | |||
@@ -261,6 +261,6 @@ sl811_read_buf(struct sl811 *sl811, int addr, void *buf, size_t count) | |||
261 | #endif | 261 | #endif |
262 | 262 | ||
263 | #define ERR(stuff...) printk(KERN_ERR "sl811: " stuff) | 263 | #define ERR(stuff...) printk(KERN_ERR "sl811: " stuff) |
264 | #define WARN(stuff...) printk(KERN_WARNING "sl811: " stuff) | 264 | #define WARNING(stuff...) printk(KERN_WARNING "sl811: " stuff) |
265 | #define INFO(stuff...) printk(KERN_INFO "sl811: " stuff) | 265 | #define INFO(stuff...) printk(KERN_INFO "sl811: " stuff) |
266 | 266 | ||
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index 054dedd28127..b358c4e1cf21 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -81,7 +81,7 @@ static struct usb_device *testdev_to_usbdev (struct usbtest_dev *test) | |||
81 | 81 | ||
82 | #define ERROR(tdev, fmt, args...) \ | 82 | #define ERROR(tdev, fmt, args...) \ |
83 | dev_err(&(tdev)->intf->dev , fmt , ## args) | 83 | dev_err(&(tdev)->intf->dev , fmt , ## args) |
84 | #define WARN(tdev, fmt, args...) \ | 84 | #define WARNING(tdev, fmt, args...) \ |
85 | dev_warn(&(tdev)->intf->dev , fmt , ## args) | 85 | dev_warn(&(tdev)->intf->dev , fmt , ## args) |
86 | 86 | ||
87 | /*-------------------------------------------------------------------------*/ | 87 | /*-------------------------------------------------------------------------*/ |
@@ -1946,7 +1946,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id) | |||
1946 | 1946 | ||
1947 | status = get_endpoints (dev, intf); | 1947 | status = get_endpoints (dev, intf); |
1948 | if (status < 0) { | 1948 | if (status < 0) { |
1949 | WARN(dev, "couldn't get endpoints, %d\n", | 1949 | WARNING(dev, "couldn't get endpoints, %d\n", |
1950 | status); | 1950 | status); |
1951 | return status; | 1951 | return status; |
1952 | } | 1952 | } |
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 747c3a49cdc9..c932390c6da0 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
@@ -330,7 +330,7 @@ extern int usb_string_id(struct usb_composite_dev *c); | |||
330 | dev_vdbg(&(d)->gadget->dev , fmt , ## args) | 330 | dev_vdbg(&(d)->gadget->dev , fmt , ## args) |
331 | #define ERROR(d, fmt, args...) \ | 331 | #define ERROR(d, fmt, args...) \ |
332 | dev_err(&(d)->gadget->dev , fmt , ## args) | 332 | dev_err(&(d)->gadget->dev , fmt , ## args) |
333 | #define WARN(d, fmt, args...) \ | 333 | #define WARNING(d, fmt, args...) \ |
334 | dev_warn(&(d)->gadget->dev , fmt , ## args) | 334 | dev_warn(&(d)->gadget->dev , fmt , ## args) |
335 | #define INFO(d, fmt, args...) \ | 335 | #define INFO(d, fmt, args...) \ |
336 | dev_info(&(d)->gadget->dev , fmt , ## args) | 336 | dev_info(&(d)->gadget->dev , fmt , ## args) |