From: Sasha Levin Date: Fri, 11 May 2012 04:39:37 +0000 (+0200) Subject: usb: gadget: dummy_hcd: fix build when BUG is not set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72688dc95afcb42f4d5e8762f8790144cec9a280;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git usb: gadget: dummy_hcd: fix build when BUG is not set Use WARN_ON() instead of __WARN, which also means we won't use any internal macros. Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index 83bb2e3fa861..b799106027ad 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c @@ -598,7 +598,7 @@ static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req) struct dummy_request *req; if (!_ep || !_req) { - __WARN(); + WARN_ON(1); return; }