linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] usb: cdnsp: Mark cdnsp_gadget_ops with static keyword
@ 2020-12-08 12:30 Zou Wei
  2020-12-09  2:40 ` Peter Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Zou Wei @ 2020-12-08 12:30 UTC (permalink / raw)
  To: pawell, gregkh; +Cc: linux-usb, linux-kernel, Zou Wei

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 <zou_wei@huawei.com>
---
 drivers/usb/cdns3/cdnsp-gadget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/cdns3/cdnsp-gadget.c b/drivers/usb/cdns3/cdnsp-gadget.c
index 9716273..c7c5d0a 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,
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-09  2:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-08 12:30 [PATCH -next] usb: cdnsp: Mark cdnsp_gadget_ops with static keyword Zou Wei
2020-12-09  2:40 ` Peter Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).