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:
committed by
Linus Torvalds
parent
f38954c93c
commit
b6c6393700
@@ -81,7 +81,7 @@ static struct usb_device *testdev_to_usbdev (struct usbtest_dev *test)
|
||||
|
||||
#define ERROR(tdev, 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)
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -1946,7 +1946,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id)
|
||||
|
||||
status = get_endpoints (dev, intf);
|
||||
if (status < 0) {
|
||||
WARN(dev, "couldn't get endpoints, %d\n",
|
||||
WARNING(dev, "couldn't get endpoints, %d\n",
|
||||
status);
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user