From: Fengguang Wu Date: Wed, 12 Nov 2014 14:44:05 +0000 (+0800) Subject: usb: gadget: f_hid: hidg_alloc() can be static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0fc57ea0595e2d12eb4d5c8509d4b4aec864c9c5;p=openwrt%2Fstaging%2Fblogic.git usb: gadget: f_hid: hidg_alloc() can be static drivers/usb/gadget/function/f_hid.c:852:21: sparse: symbol 'hidg_alloc' was not declared. Should it be static? Signed-off-by: Fengguang Wu Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c index 56ca3fc81555..7d18f413ffea 100644 --- a/drivers/usb/gadget/function/f_hid.c +++ b/drivers/usb/gadget/function/f_hid.c @@ -913,7 +913,7 @@ static void hidg_unbind(struct usb_configuration *c, struct usb_function *f) usb_free_all_descriptors(f); } -struct usb_function *hidg_alloc(struct usb_function_instance *fi) +static struct usb_function *hidg_alloc(struct usb_function_instance *fi) { struct f_hidg *hidg; struct f_hid_opts *opts;