From: Zou Wei Date: Tue, 8 Dec 2020 12:30:49 +0000 (+0800) Subject: usb: cdnsp: Mark cdnsp_gadget_ops with static keyword X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7650778e79b9daf09cfccb46445036ae0ea984ac;p=linux.git usb: cdnsp: Mark cdnsp_gadget_ops with static keyword Fix the following sparse warning: drivers/usb/cdns3/cdnsp-gadget.c:1546:29: warning: symbol 'cdnsp_gadget_ops' was not declared. Should it be static? Signed-off-by: Zou Wei Signed-off-by: Peter Chen --- diff --git a/drivers/usb/cdns3/cdnsp-gadget.c b/drivers/usb/cdns3/cdnsp-gadget.c index 97162739a5aeb..c7c5d0a29f4d4 100644 --- a/drivers/usb/cdns3/cdnsp-gadget.c +++ b/drivers/usb/cdns3/cdnsp-gadget.c @@ -1543,7 +1543,7 @@ static int cdnsp_gadget_pullup(struct usb_gadget *gadget, int is_on) return 0; } -const struct usb_gadget_ops cdnsp_gadget_ops = { +static const struct usb_gadget_ops cdnsp_gadget_ops = { .get_frame = cdnsp_gadget_get_frame, .wakeup = cdnsp_gadget_wakeup, .set_selfpowered = cdnsp_gadget_set_selfpowered,