From: Quanyang Wang <[email protected]>

Since the function "__dwc3_gadget_kick_transfer" is used by
drivers/usb/dwc3/gadget_hibernation.c, so declare it as global.
This is to fix a compile error as below:

drivers/usb/dwc3/gadget.c:1248:12: error: static declaration of 
'__dwc3_gadget_kick_transfer' follows non-static declaration
 1248 | static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/usb/dwc3/gadget.c:27:
drivers/usb/dwc3/gadget.h:126:5: note: previous declaration of 
'__dwc3_gadget_kick_transfer' was here
  126 | int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Quanyang Wang <[email protected]>
---
 drivers/usb/dwc3/gadget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 09403af93d76..cfc0091a385d 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1245,7 +1245,7 @@ static void dwc3_prepare_trbs(struct dwc3_ep *dep)
 
 static void dwc3_gadget_ep_cleanup_cancelled_requests(struct dwc3_ep *dep);
 
-static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep)
+int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep)
 {
        struct dwc3_gadget_ep_cmd_params params;
        struct dwc3_request             *req;
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8778): 
https://lists.yoctoproject.org/g/linux-yocto/message/8778
Mute This Topic: https://lists.yoctoproject.org/mt/75162680/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to