usb: dwc3: gadget: dwc3_gadget_del_and_unmap_request() can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 29 Mar 2018 02:20:10 +0000 (02:20 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 25 Apr 2018 11:26:06 +0000 (14:26 +0300)
Fixes the following sparse warning:

drivers/usb/dwc3/gadget.c:169:6: warning:
 symbol 'dwc3_gadget_del_and_unmap_request' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c

index 8796a5ee9bb95fe2e9e0b0455d3ae55614ca9bef..206ecc7428dabea0f86190793ac887e9a08b544e 100644 (file)
@@ -166,7 +166,7 @@ static void dwc3_ep_inc_deq(struct dwc3_ep *dep)
        dwc3_ep_inc_trb(&dep->trb_dequeue);
 }
 
-void dwc3_gadget_del_and_unmap_request(struct dwc3_ep *dep,
+static void dwc3_gadget_del_and_unmap_request(struct dwc3_ep *dep,
                struct dwc3_request *req, int status)
 {
        struct dwc3                     *dwc = dep->dwc;