mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 08:38:24 +08:00
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>
This commit is contained in:
parent
f38954c93c
commit
b6c6393700
@ -220,7 +220,7 @@ enum {
|
|||||||
#define ERR(format, arg...) \
|
#define ERR(format, arg...) \
|
||||||
printk(KERN_ERR "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
|
printk(KERN_ERR "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
|
||||||
|
|
||||||
#define WARN(format, arg...) \
|
#define WARNING(format, arg...) \
|
||||||
printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
|
printk(KERN_WARNING "%s:%s: " format "\n" , __FILE__, __func__ , ## arg)
|
||||||
|
|
||||||
#define INFO(format, arg...) \
|
#define INFO(format, arg...) \
|
||||||
@ -412,7 +412,7 @@ struct st5481_adapter {
|
|||||||
({ \
|
({ \
|
||||||
int status; \
|
int status; \
|
||||||
if ((status = usb_submit_urb(urb, mem_flags)) < 0) { \
|
if ((status = usb_submit_urb(urb, mem_flags)) < 0) { \
|
||||||
WARN("usb_submit_urb failed,status=%d", status); \
|
WARNING("usb_submit_urb failed,status=%d", status); \
|
||||||
} \
|
} \
|
||||||
status; \
|
status; \
|
||||||
})
|
})
|
||||||
|
@ -180,7 +180,7 @@ static void usb_b_out_complete(struct urb *urb)
|
|||||||
DBG(4,"urb killed status %d", urb->status);
|
DBG(4,"urb killed status %d", urb->status);
|
||||||
return; // Give up
|
return; // Give up
|
||||||
default:
|
default:
|
||||||
WARN("urb status %d",urb->status);
|
WARNING("urb status %d",urb->status);
|
||||||
if (b_out->busy == 0) {
|
if (b_out->busy == 0) {
|
||||||
st5481_usb_pipe_reset(adapter, (bcs->channel+1)*2 | USB_DIR_OUT, NULL, NULL);
|
st5481_usb_pipe_reset(adapter, (bcs->channel+1)*2 | USB_DIR_OUT, NULL, NULL);
|
||||||
}
|
}
|
||||||
@ -372,6 +372,6 @@ void st5481_b_l2l1(struct hisax_if *ifc, int pr, void *arg)
|
|||||||
B_L1L2(bcs, PH_DEACTIVATE | INDICATION, NULL);
|
B_L1L2(bcs, PH_DEACTIVATE | INDICATION, NULL);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARN("pr %#x\n", pr);
|
WARNING("pr %#x\n", pr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -389,7 +389,7 @@ static void usb_d_out_complete(struct urb *urb)
|
|||||||
DBG(1,"urb killed status %d", urb->status);
|
DBG(1,"urb killed status %d", urb->status);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARN("urb status %d",urb->status);
|
WARNING("urb status %d",urb->status);
|
||||||
if (d_out->busy == 0) {
|
if (d_out->busy == 0) {
|
||||||
st5481_usb_pipe_reset(adapter, EP_D_OUT | USB_DIR_OUT, fifo_reseted, adapter);
|
st5481_usb_pipe_reset(adapter, EP_D_OUT | USB_DIR_OUT, fifo_reseted, adapter);
|
||||||
}
|
}
|
||||||
@ -420,7 +420,7 @@ static void dout_start_xmit(struct FsmInst *fsm, int event, void *arg)
|
|||||||
isdnhdlc_out_init(&d_out->hdlc_state, 1, 0);
|
isdnhdlc_out_init(&d_out->hdlc_state, 1, 0);
|
||||||
|
|
||||||
if (test_and_set_bit(buf_nr, &d_out->busy)) {
|
if (test_and_set_bit(buf_nr, &d_out->busy)) {
|
||||||
WARN("ep %d urb %d busy %#lx", EP_D_OUT, buf_nr, d_out->busy);
|
WARNING("ep %d urb %d busy %#lx", EP_D_OUT, buf_nr, d_out->busy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
urb = d_out->urb[buf_nr];
|
urb = d_out->urb[buf_nr];
|
||||||
@ -601,7 +601,7 @@ void st5481_d_l2l1(struct hisax_if *hisax_d_if, int pr, void *arg)
|
|||||||
FsmEvent(&adapter->d_out.fsm, EV_DOUT_START_XMIT, NULL);
|
FsmEvent(&adapter->d_out.fsm, EV_DOUT_START_XMIT, NULL);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARN("pr %#x\n", pr);
|
WARNING("pr %#x\n", pr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ static void usb_ctrl_msg(struct st5481_adapter *adapter,
|
|||||||
struct ctrl_msg *ctrl_msg;
|
struct ctrl_msg *ctrl_msg;
|
||||||
|
|
||||||
if ((w_index = fifo_add(&ctrl->msg_fifo.f)) < 0) {
|
if ((w_index = fifo_add(&ctrl->msg_fifo.f)) < 0) {
|
||||||
WARN("control msg FIFO full");
|
WARNING("control msg FIFO full");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ctrl_msg = &ctrl->msg_fifo.data[w_index];
|
ctrl_msg = &ctrl->msg_fifo.data[w_index];
|
||||||
@ -139,7 +139,7 @@ static void usb_ctrl_complete(struct urb *urb)
|
|||||||
DBG(1,"urb killed status %d", urb->status);
|
DBG(1,"urb killed status %d", urb->status);
|
||||||
return; // Give up
|
return; // Give up
|
||||||
default:
|
default:
|
||||||
WARN("urb status %d",urb->status);
|
WARNING("urb status %d",urb->status);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -198,7 +198,7 @@ static void usb_int_complete(struct urb *urb)
|
|||||||
DBG(2, "urb shutting down with status: %d", urb->status);
|
DBG(2, "urb shutting down with status: %d", urb->status);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
WARN("nonzero urb status received: %d", urb->status);
|
WARNING("nonzero urb status received: %d", urb->status);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ static void usb_int_complete(struct urb *urb)
|
|||||||
exit:
|
exit:
|
||||||
status = usb_submit_urb (urb, GFP_ATOMIC);
|
status = usb_submit_urb (urb, GFP_ATOMIC);
|
||||||
if (status)
|
if (status)
|
||||||
WARN("usb_submit_urb failed with result %d", status);
|
WARNING("usb_submit_urb failed with result %d", status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ======================================================================
|
/* ======================================================================
|
||||||
@ -257,7 +257,7 @@ int st5481_setup_usb(struct st5481_adapter *adapter)
|
|||||||
DBG(2,"");
|
DBG(2,"");
|
||||||
|
|
||||||
if ((status = usb_reset_configuration (dev)) < 0) {
|
if ((status = usb_reset_configuration (dev)) < 0) {
|
||||||
WARN("reset_configuration failed,status=%d",status);
|
WARNING("reset_configuration failed,status=%d",status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,7 +269,7 @@ int st5481_setup_usb(struct st5481_adapter *adapter)
|
|||||||
|
|
||||||
// Check if the config is sane
|
// Check if the config is sane
|
||||||
if ( altsetting->desc.bNumEndpoints != 7 ) {
|
if ( altsetting->desc.bNumEndpoints != 7 ) {
|
||||||
WARN("expecting 7 got %d endpoints!", altsetting->desc.bNumEndpoints);
|
WARNING("expecting 7 got %d endpoints!", altsetting->desc.bNumEndpoints);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,7 +279,7 @@ int st5481_setup_usb(struct st5481_adapter *adapter)
|
|||||||
|
|
||||||
// Use alternative setting 3 on interface 0 to have 2B+D
|
// Use alternative setting 3 on interface 0 to have 2B+D
|
||||||
if ((status = usb_set_interface (dev, 0, 3)) < 0) {
|
if ((status = usb_set_interface (dev, 0, 3)) < 0) {
|
||||||
WARN("usb_set_interface failed,status=%d",status);
|
WARNING("usb_set_interface failed,status=%d",status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -497,7 +497,7 @@ static void usb_in_complete(struct urb *urb)
|
|||||||
DBG(1,"urb killed status %d", urb->status);
|
DBG(1,"urb killed status %d", urb->status);
|
||||||
return; // Give up
|
return; // Give up
|
||||||
default:
|
default:
|
||||||
WARN("urb status %d",urb->status);
|
WARNING("urb status %d",urb->status);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -523,7 +523,7 @@ static void usb_in_complete(struct urb *urb)
|
|||||||
DBG(4,"count=%d",status);
|
DBG(4,"count=%d",status);
|
||||||
DBG_PACKET(0x400, in->rcvbuf, status);
|
DBG_PACKET(0x400, in->rcvbuf, status);
|
||||||
if (!(skb = dev_alloc_skb(status))) {
|
if (!(skb = dev_alloc_skb(status))) {
|
||||||
WARN("receive out of memory\n");
|
WARNING("receive out of memory\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
memcpy(skb_put(skb, status), in->rcvbuf, status);
|
memcpy(skb_put(skb, status), in->rcvbuf, status);
|
||||||
|
@ -171,7 +171,7 @@ struct at91_request {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ERR(stuff...) pr_err("udc: " stuff)
|
#define ERR(stuff...) pr_err("udc: " stuff)
|
||||||
#define WARN(stuff...) pr_warning("udc: " stuff)
|
#define WARNING(stuff...) pr_warning("udc: " stuff)
|
||||||
#define INFO(stuff...) pr_info("udc: " stuff)
|
#define INFO(stuff...) pr_info("udc: " stuff)
|
||||||
#define DBG(stuff...) pr_debug("udc: " stuff)
|
#define DBG(stuff...) pr_debug("udc: " stuff)
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ static int __init cdc_bind(struct usb_composite_dev *cdev)
|
|||||||
* but if the controller isn't recognized at all then
|
* but if the controller isn't recognized at all then
|
||||||
* that assumption is a bit more likely to be wrong.
|
* that assumption is a bit more likely to be wrong.
|
||||||
*/
|
*/
|
||||||
WARN(cdev, "controller '%s' not recognized; trying %s\n",
|
WARNING(cdev, "controller '%s' not recognized; trying %s\n",
|
||||||
gadget->name,
|
gadget->name,
|
||||||
cdc_config_driver.label);
|
cdc_config_driver.label);
|
||||||
device_desc.bcdDevice =
|
device_desc.bcdDevice =
|
||||||
|
@ -293,7 +293,7 @@ static int __init eth_bind(struct usb_composite_dev *cdev)
|
|||||||
* but if the controller isn't recognized at all then
|
* but if the controller isn't recognized at all then
|
||||||
* that assumption is a bit more likely to be wrong.
|
* that assumption is a bit more likely to be wrong.
|
||||||
*/
|
*/
|
||||||
WARN(cdev, "controller '%s' not recognized; trying %s\n",
|
WARNING(cdev, "controller '%s' not recognized; trying %s\n",
|
||||||
gadget->name,
|
gadget->name,
|
||||||
eth_config_driver.label);
|
eth_config_driver.label);
|
||||||
device_desc.bcdDevice =
|
device_desc.bcdDevice =
|
||||||
|
@ -308,7 +308,7 @@ MODULE_LICENSE("Dual BSD/GPL");
|
|||||||
dev_vdbg(&(d)->gadget->dev , fmt , ## args)
|
dev_vdbg(&(d)->gadget->dev , fmt , ## args)
|
||||||
#define ERROR(d, fmt, args...) \
|
#define ERROR(d, fmt, args...) \
|
||||||
dev_err(&(d)->gadget->dev , fmt , ## args)
|
dev_err(&(d)->gadget->dev , fmt , ## args)
|
||||||
#define WARN(d, fmt, args...) \
|
#define WARNING(d, fmt, args...) \
|
||||||
dev_warn(&(d)->gadget->dev , fmt , ## args)
|
dev_warn(&(d)->gadget->dev , fmt , ## args)
|
||||||
#define INFO(d, fmt, args...) \
|
#define INFO(d, fmt, args...) \
|
||||||
dev_info(&(d)->gadget->dev , fmt , ## args)
|
dev_info(&(d)->gadget->dev , fmt , ## args)
|
||||||
@ -1091,7 +1091,7 @@ static int ep0_queue(struct fsg_dev *fsg)
|
|||||||
if (rc != 0 && rc != -ESHUTDOWN) {
|
if (rc != 0 && rc != -ESHUTDOWN) {
|
||||||
|
|
||||||
/* We can't do much more than wait for a reset */
|
/* We can't do much more than wait for a reset */
|
||||||
WARN(fsg, "error in submission: %s --> %d\n",
|
WARNING(fsg, "error in submission: %s --> %d\n",
|
||||||
fsg->ep0->name, rc);
|
fsg->ep0->name, rc);
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
@ -1227,7 +1227,7 @@ static void received_cbi_adsc(struct fsg_dev *fsg, struct fsg_buffhd *bh)
|
|||||||
|
|
||||||
/* Save the command for later */
|
/* Save the command for later */
|
||||||
if (fsg->cbbuf_cmnd_size)
|
if (fsg->cbbuf_cmnd_size)
|
||||||
WARN(fsg, "CB[I] overwriting previous command\n");
|
WARNING(fsg, "CB[I] overwriting previous command\n");
|
||||||
fsg->cbbuf_cmnd_size = req->actual;
|
fsg->cbbuf_cmnd_size = req->actual;
|
||||||
memcpy(fsg->cbbuf_cmnd, req->buf, fsg->cbbuf_cmnd_size);
|
memcpy(fsg->cbbuf_cmnd, req->buf, fsg->cbbuf_cmnd_size);
|
||||||
|
|
||||||
@ -1506,7 +1506,7 @@ static void start_transfer(struct fsg_dev *fsg, struct usb_ep *ep,
|
|||||||
* submissions if DMA is enabled. */
|
* submissions if DMA is enabled. */
|
||||||
if (rc != -ESHUTDOWN && !(rc == -EOPNOTSUPP &&
|
if (rc != -ESHUTDOWN && !(rc == -EOPNOTSUPP &&
|
||||||
req->length == 0))
|
req->length == 0))
|
||||||
WARN(fsg, "error in submission: %s --> %d\n",
|
WARNING(fsg, "error in submission: %s --> %d\n",
|
||||||
ep->name, rc);
|
ep->name, rc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2294,7 +2294,7 @@ static int halt_bulk_in_endpoint(struct fsg_dev *fsg)
|
|||||||
VDBG(fsg, "delayed bulk-in endpoint halt\n");
|
VDBG(fsg, "delayed bulk-in endpoint halt\n");
|
||||||
while (rc != 0) {
|
while (rc != 0) {
|
||||||
if (rc != -EAGAIN) {
|
if (rc != -EAGAIN) {
|
||||||
WARN(fsg, "usb_ep_set_halt -> %d\n", rc);
|
WARNING(fsg, "usb_ep_set_halt -> %d\n", rc);
|
||||||
rc = 0;
|
rc = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -2317,7 +2317,7 @@ static int wedge_bulk_in_endpoint(struct fsg_dev *fsg)
|
|||||||
VDBG(fsg, "delayed bulk-in endpoint wedge\n");
|
VDBG(fsg, "delayed bulk-in endpoint wedge\n");
|
||||||
while (rc != 0) {
|
while (rc != 0) {
|
||||||
if (rc != -EAGAIN) {
|
if (rc != -EAGAIN) {
|
||||||
WARN(fsg, "usb_ep_set_wedge -> %d\n", rc);
|
WARNING(fsg, "usb_ep_set_wedge -> %d\n", rc);
|
||||||
rc = 0;
|
rc = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -3755,7 +3755,7 @@ static int __init check_parameters(struct fsg_dev *fsg)
|
|||||||
if (gcnum >= 0)
|
if (gcnum >= 0)
|
||||||
mod_data.release = 0x0300 + gcnum;
|
mod_data.release = 0x0300 + gcnum;
|
||||||
else {
|
else {
|
||||||
WARN(fsg, "controller '%s' not recognized\n",
|
WARNING(fsg, "controller '%s' not recognized\n",
|
||||||
fsg->gadget->name);
|
fsg->gadget->name);
|
||||||
mod_data.release = 0x0399;
|
mod_data.release = 0x0399;
|
||||||
}
|
}
|
||||||
|
@ -1538,7 +1538,7 @@ static void dtd_complete_irq(struct fsl_udc *udc)
|
|||||||
|
|
||||||
/* If the ep is configured */
|
/* If the ep is configured */
|
||||||
if (curr_ep->name == NULL) {
|
if (curr_ep->name == NULL) {
|
||||||
WARN("Invalid EP?");
|
WARNING("Invalid EP?");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -552,7 +552,7 @@ static void dump_msg(const char *label, const u8 * buf, unsigned int length)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ERR(stuff...) pr_err("udc: " stuff)
|
#define ERR(stuff...) pr_err("udc: " stuff)
|
||||||
#define WARN(stuff...) pr_warning("udc: " stuff)
|
#define WARNING(stuff...) pr_warning("udc: " stuff)
|
||||||
#define INFO(stuff...) pr_info("udc: " stuff)
|
#define INFO(stuff...) pr_info("udc: " stuff)
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------*/
|
||||||
|
@ -138,8 +138,6 @@ static void gmidi_transmit(struct gmidi_device* dev, struct usb_request* req);
|
|||||||
dev_vdbg(&(d)->gadget->dev , fmt , ## args)
|
dev_vdbg(&(d)->gadget->dev , fmt , ## args)
|
||||||
#define ERROR(d, fmt, args...) \
|
#define ERROR(d, fmt, args...) \
|
||||||
dev_err(&(d)->gadget->dev , fmt , ## args)
|
dev_err(&(d)->gadget->dev , fmt , ## args)
|
||||||
#define WARN(d, fmt, args...) \
|
|
||||||
dev_warn(&(d)->gadget->dev , fmt , ## args)
|
|
||||||
#define INFO(d, fmt, args...) \
|
#define INFO(d, fmt, args...) \
|
||||||
dev_info(&(d)->gadget->dev , fmt , ## args)
|
dev_info(&(d)->gadget->dev , fmt , ## args)
|
||||||
|
|
||||||
|
@ -1768,7 +1768,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||||||
* usb_gadget_driver_{register,unregister}() must change.
|
* usb_gadget_driver_{register,unregister}() must change.
|
||||||
*/
|
*/
|
||||||
if (the_controller) {
|
if (the_controller) {
|
||||||
WARN(dev, "ignoring %s\n", pci_name(pdev));
|
WARNING(dev, "ignoring %s\n", pci_name(pdev));
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
if (!pdev->irq) {
|
if (!pdev->irq) {
|
||||||
|
@ -285,7 +285,7 @@ struct goku_udc {
|
|||||||
|
|
||||||
#define ERROR(dev,fmt,args...) \
|
#define ERROR(dev,fmt,args...) \
|
||||||
xprintk(dev , KERN_ERR , fmt , ## args)
|
xprintk(dev , KERN_ERR , fmt , ## args)
|
||||||
#define WARN(dev,fmt,args...) \
|
#define WARNING(dev,fmt,args...) \
|
||||||
xprintk(dev , KERN_WARNING , fmt , ## args)
|
xprintk(dev , KERN_WARNING , fmt , ## args)
|
||||||
#define INFO(dev,fmt,args...) \
|
#define INFO(dev,fmt,args...) \
|
||||||
xprintk(dev , KERN_INFO , fmt , ## args)
|
xprintk(dev , KERN_INFO , fmt , ## args)
|
||||||
|
@ -262,8 +262,6 @@ static const char *CHIP;
|
|||||||
|
|
||||||
#define ERROR(dev,fmt,args...) \
|
#define ERROR(dev,fmt,args...) \
|
||||||
xprintk(dev , KERN_ERR , fmt , ## args)
|
xprintk(dev , KERN_ERR , fmt , ## args)
|
||||||
#define WARN(dev,fmt,args...) \
|
|
||||||
xprintk(dev , KERN_WARNING , fmt , ## args)
|
|
||||||
#define INFO(dev,fmt,args...) \
|
#define INFO(dev,fmt,args...) \
|
||||||
xprintk(dev , KERN_INFO , fmt , ## args)
|
xprintk(dev , KERN_INFO , fmt , ## args)
|
||||||
|
|
||||||
|
@ -1007,7 +1007,7 @@ static void scan_dma_completions (struct net2280_ep *ep)
|
|||||||
* 0122, and 0124; not all cases trigger the warning.
|
* 0122, and 0124; not all cases trigger the warning.
|
||||||
*/
|
*/
|
||||||
if ((tmp & (1 << NAK_OUT_PACKETS)) == 0) {
|
if ((tmp & (1 << NAK_OUT_PACKETS)) == 0) {
|
||||||
WARN (ep->dev, "%s lost packet sync!\n",
|
WARNING (ep->dev, "%s lost packet sync!\n",
|
||||||
ep->ep.name);
|
ep->ep.name);
|
||||||
req->req.status = -EOVERFLOW;
|
req->req.status = -EOVERFLOW;
|
||||||
} else if ((tmp = readl (&ep->regs->ep_avail)) != 0) {
|
} else if ((tmp = readl (&ep->regs->ep_avail)) != 0) {
|
||||||
|
@ -272,7 +272,7 @@ static inline void net2280_led_shutdown (struct net2280 *dev)
|
|||||||
|
|
||||||
#define ERROR(dev,fmt,args...) \
|
#define ERROR(dev,fmt,args...) \
|
||||||
xprintk(dev , KERN_ERR , fmt , ## args)
|
xprintk(dev , KERN_ERR , fmt , ## args)
|
||||||
#define WARN(dev,fmt,args...) \
|
#define WARNING(dev,fmt,args...) \
|
||||||
xprintk(dev , KERN_WARNING , fmt , ## args)
|
xprintk(dev , KERN_WARNING , fmt , ## args)
|
||||||
#define INFO(dev,fmt,args...) \
|
#define INFO(dev,fmt,args...) \
|
||||||
xprintk(dev , KERN_INFO , fmt , ## args)
|
xprintk(dev , KERN_INFO , fmt , ## args)
|
||||||
|
@ -1120,7 +1120,7 @@ static int omap_ep_set_halt(struct usb_ep *_ep, int value)
|
|||||||
status = -EINVAL;
|
status = -EINVAL;
|
||||||
else if (value) {
|
else if (value) {
|
||||||
if (ep->udc->ep0_set_config) {
|
if (ep->udc->ep0_set_config) {
|
||||||
WARN("error changing config?\n");
|
WARNING("error changing config?\n");
|
||||||
omap_writew(UDC_CLR_CFG, UDC_SYSCON2);
|
omap_writew(UDC_CLR_CFG, UDC_SYSCON2);
|
||||||
}
|
}
|
||||||
omap_writew(UDC_STALL_CMD, UDC_SYSCON2);
|
omap_writew(UDC_STALL_CMD, UDC_SYSCON2);
|
||||||
@ -1764,7 +1764,7 @@ do_stall:
|
|||||||
u.r.bRequestType, u.r.bRequest, status);
|
u.r.bRequestType, u.r.bRequest, status);
|
||||||
if (udc->ep0_set_config) {
|
if (udc->ep0_set_config) {
|
||||||
if (udc->ep0_reset_config)
|
if (udc->ep0_reset_config)
|
||||||
WARN("error resetting config?\n");
|
WARNING("error resetting config?\n");
|
||||||
else
|
else
|
||||||
omap_writew(UDC_CLR_CFG, UDC_SYSCON2);
|
omap_writew(UDC_CLR_CFG, UDC_SYSCON2);
|
||||||
}
|
}
|
||||||
@ -3076,7 +3076,7 @@ static int omap_udc_suspend(struct platform_device *dev, pm_message_t message)
|
|||||||
* which would prevent entry to deep sleep...
|
* which would prevent entry to deep sleep...
|
||||||
*/
|
*/
|
||||||
if ((devstat & UDC_ATT) != 0 && (devstat & UDC_SUS) == 0) {
|
if ((devstat & UDC_ATT) != 0 && (devstat & UDC_SUS) == 0) {
|
||||||
WARN("session active; suspend requires disconnect\n");
|
WARNING("session active; suspend requires disconnect\n");
|
||||||
omap_pullup(&udc->gadget, 0);
|
omap_pullup(&udc->gadget, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ struct omap_udc {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ERR(stuff...) pr_err("udc: " stuff)
|
#define ERR(stuff...) pr_err("udc: " stuff)
|
||||||
#define WARN(stuff...) pr_warning("udc: " stuff)
|
#define WARNING(stuff...) pr_warning("udc: " stuff)
|
||||||
#define INFO(stuff...) pr_info("udc: " stuff)
|
#define INFO(stuff...) pr_info("udc: " stuff)
|
||||||
#define DBG(stuff...) pr_debug("udc: " stuff)
|
#define DBG(stuff...) pr_debug("udc: " stuff)
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ module_param(qlen, uint, S_IRUGO|S_IWUSR);
|
|||||||
|
|
||||||
#define ERROR(dev, fmt, args...) \
|
#define ERROR(dev, fmt, args...) \
|
||||||
xprintk(dev, KERN_ERR, fmt, ## args)
|
xprintk(dev, KERN_ERR, fmt, ## args)
|
||||||
#define WARN(dev, fmt, args...) \
|
#define WARNING(dev, fmt, args...) \
|
||||||
xprintk(dev, KERN_WARNING, fmt, ## args)
|
xprintk(dev, KERN_WARNING, fmt, ## args)
|
||||||
#define INFO(dev, fmt, args...) \
|
#define INFO(dev, fmt, args...) \
|
||||||
xprintk(dev, KERN_INFO, fmt, ## args)
|
xprintk(dev, KERN_INFO, fmt, ## args)
|
||||||
|
@ -342,7 +342,7 @@ pxa25x_ep_free_request (struct usb_ep *_ep, struct usb_request *_req)
|
|||||||
struct pxa25x_request *req;
|
struct pxa25x_request *req;
|
||||||
|
|
||||||
req = container_of (_req, struct pxa25x_request, req);
|
req = container_of (_req, struct pxa25x_request, req);
|
||||||
WARN_ON (!list_empty (&req->queue));
|
WARN_ON(!list_empty (&req->queue));
|
||||||
kfree(req);
|
kfree(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1556,7 +1556,7 @@ config_change:
|
|||||||
* tell us about config change events,
|
* tell us about config change events,
|
||||||
* so later ones may fail...
|
* so later ones may fail...
|
||||||
*/
|
*/
|
||||||
WARN("config change %02x fail %d?\n",
|
WARNING("config change %02x fail %d?\n",
|
||||||
u.r.bRequest, i);
|
u.r.bRequest, i);
|
||||||
return;
|
return;
|
||||||
/* TODO experiment: if has_cfr,
|
/* TODO experiment: if has_cfr,
|
||||||
@ -2330,7 +2330,7 @@ static int pxa25x_udc_suspend(struct platform_device *dev, pm_message_t state)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
if (!udc->mach->gpio_pullup && !udc->mach->udc_command)
|
if (!udc->mach->gpio_pullup && !udc->mach->udc_command)
|
||||||
WARN("USB host won't detect disconnect!\n");
|
WARNING("USB host won't detect disconnect!\n");
|
||||||
udc->suspended = 1;
|
udc->suspended = 1;
|
||||||
|
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
|
@ -259,7 +259,7 @@ dump_state(struct pxa25x_udc *dev)
|
|||||||
#define DBG(lvl, stuff...) do{if ((lvl) <= UDC_DEBUG) DMSG(stuff);}while(0)
|
#define DBG(lvl, stuff...) do{if ((lvl) <= UDC_DEBUG) DMSG(stuff);}while(0)
|
||||||
|
|
||||||
#define ERR(stuff...) pr_err("udc: " stuff)
|
#define ERR(stuff...) pr_err("udc: " stuff)
|
||||||
#define WARN(stuff...) pr_warning("udc: " stuff)
|
#define WARNING(stuff...) pr_warning("udc: " stuff)
|
||||||
#define INFO(stuff...) pr_info("udc: " stuff)
|
#define INFO(stuff...) pr_info("udc: " stuff)
|
||||||
|
|
||||||
|
|
||||||
|
@ -116,7 +116,6 @@ static inline int qlen(struct usb_gadget *gadget)
|
|||||||
#undef DBG
|
#undef DBG
|
||||||
#undef VDBG
|
#undef VDBG
|
||||||
#undef ERROR
|
#undef ERROR
|
||||||
#undef WARN
|
|
||||||
#undef INFO
|
#undef INFO
|
||||||
|
|
||||||
#define xprintk(d, level, fmt, args...) \
|
#define xprintk(d, level, fmt, args...) \
|
||||||
@ -140,8 +139,6 @@ static inline int qlen(struct usb_gadget *gadget)
|
|||||||
|
|
||||||
#define ERROR(dev, fmt, args...) \
|
#define ERROR(dev, fmt, args...) \
|
||||||
xprintk(dev , KERN_ERR , fmt , ## args)
|
xprintk(dev , KERN_ERR , fmt , ## args)
|
||||||
#define WARN(dev, fmt, args...) \
|
|
||||||
xprintk(dev , KERN_WARNING , fmt , ## args)
|
|
||||||
#define INFO(dev, fmt, args...) \
|
#define INFO(dev, fmt, args...) \
|
||||||
xprintk(dev , KERN_INFO , fmt , ## args)
|
xprintk(dev , KERN_INFO , fmt , ## args)
|
||||||
|
|
||||||
|
@ -882,7 +882,7 @@ static void isp116x_endpoint_disable(struct usb_hcd *hcd,
|
|||||||
for (i = 0; i < 100 && !list_empty(&hep->urb_list); i++)
|
for (i = 0; i < 100 && !list_empty(&hep->urb_list); i++)
|
||||||
msleep(3);
|
msleep(3);
|
||||||
if (!list_empty(&hep->urb_list))
|
if (!list_empty(&hep->urb_list))
|
||||||
WARN("ep %p not empty?\n", ep);
|
WARNING("ep %p not empty?\n", ep);
|
||||||
|
|
||||||
kfree(ep);
|
kfree(ep);
|
||||||
hep->hcpriv = NULL;
|
hep->hcpriv = NULL;
|
||||||
|
@ -338,7 +338,7 @@ struct isp116x_ep {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ERR(stuff...) printk(KERN_ERR "116x: " stuff)
|
#define ERR(stuff...) printk(KERN_ERR "116x: " stuff)
|
||||||
#define WARN(stuff...) printk(KERN_WARNING "116x: " stuff)
|
#define WARNING(stuff...) printk(KERN_WARNING "116x: " stuff)
|
||||||
#define INFO(stuff...) printk(KERN_INFO "116x: " stuff)
|
#define INFO(stuff...) printk(KERN_INFO "116x: " stuff)
|
||||||
|
|
||||||
/* ------------------------------------------------- */
|
/* ------------------------------------------------- */
|
||||||
|
@ -1026,7 +1026,7 @@ sl811h_endpoint_disable(struct usb_hcd *hcd, struct usb_host_endpoint *hep)
|
|||||||
if (!list_empty(&hep->urb_list))
|
if (!list_empty(&hep->urb_list))
|
||||||
msleep(3);
|
msleep(3);
|
||||||
if (!list_empty(&hep->urb_list))
|
if (!list_empty(&hep->urb_list))
|
||||||
WARN("ep %p not empty?\n", ep);
|
WARNING("ep %p not empty?\n", ep);
|
||||||
|
|
||||||
kfree(ep);
|
kfree(ep);
|
||||||
hep->hcpriv = NULL;
|
hep->hcpriv = NULL;
|
||||||
|
@ -261,6 +261,6 @@ sl811_read_buf(struct sl811 *sl811, int addr, void *buf, size_t count)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ERR(stuff...) printk(KERN_ERR "sl811: " stuff)
|
#define ERR(stuff...) printk(KERN_ERR "sl811: " stuff)
|
||||||
#define WARN(stuff...) printk(KERN_WARNING "sl811: " stuff)
|
#define WARNING(stuff...) printk(KERN_WARNING "sl811: " stuff)
|
||||||
#define INFO(stuff...) printk(KERN_INFO "sl811: " stuff)
|
#define INFO(stuff...) printk(KERN_INFO "sl811: " stuff)
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ static struct usb_device *testdev_to_usbdev (struct usbtest_dev *test)
|
|||||||
|
|
||||||
#define ERROR(tdev, fmt, args...) \
|
#define ERROR(tdev, fmt, args...) \
|
||||||
dev_err(&(tdev)->intf->dev , fmt , ## args)
|
dev_err(&(tdev)->intf->dev , fmt , ## args)
|
||||||
#define WARN(tdev, fmt, args...) \
|
#define WARNING(tdev, fmt, args...) \
|
||||||
dev_warn(&(tdev)->intf->dev , fmt , ## args)
|
dev_warn(&(tdev)->intf->dev , fmt , ## args)
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------*/
|
||||||
@ -1946,7 +1946,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id)
|
|||||||
|
|
||||||
status = get_endpoints (dev, intf);
|
status = get_endpoints (dev, intf);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
WARN(dev, "couldn't get endpoints, %d\n",
|
WARNING(dev, "couldn't get endpoints, %d\n",
|
||||||
status);
|
status);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -330,7 +330,7 @@ extern int usb_string_id(struct usb_composite_dev *c);
|
|||||||
dev_vdbg(&(d)->gadget->dev , fmt , ## args)
|
dev_vdbg(&(d)->gadget->dev , fmt , ## args)
|
||||||
#define ERROR(d, fmt, args...) \
|
#define ERROR(d, fmt, args...) \
|
||||||
dev_err(&(d)->gadget->dev , fmt , ## args)
|
dev_err(&(d)->gadget->dev , fmt , ## args)
|
||||||
#define WARN(d, fmt, args...) \
|
#define WARNING(d, fmt, args...) \
|
||||||
dev_warn(&(d)->gadget->dev , fmt , ## args)
|
dev_warn(&(d)->gadget->dev , fmt , ## args)
|
||||||
#define INFO(d, fmt, args...) \
|
#define INFO(d, fmt, args...) \
|
||||||
dev_info(&(d)->gadget->dev , fmt , ## args)
|
dev_info(&(d)->gadget->dev , fmt , ## args)
|
||||||
|
Loading…
Reference in New Issue
Block a user