From: Lad, Prabhakar Date: Wed, 4 Feb 2015 17:49:36 +0000 (+0000) Subject: usb: gadget: function: f_hid: fix sparse warning X-Git-Tag: v4.0-rc3~2^2~10^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7a3cc4618497e1c6b2f9cd4c8c20759ad8ceb2d1;p=karo-tx-linux.git usb: gadget: function: f_hid: fix sparse warning this patch fixes following sparse warning: f_hid.c:572:30: warning: symbol 'f_hidg_fops' was not declared. Should it be static? Signed-off-by: Lad, Prabhakar Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c index 426d69a9c018..a2612fb79eff 100644 --- a/drivers/usb/gadget/function/f_hid.c +++ b/drivers/usb/gadget/function/f_hid.c @@ -569,7 +569,7 @@ fail: return status; } -const struct file_operations f_hidg_fops = { +static const struct file_operations f_hidg_fops = { .owner = THIS_MODULE, .open = f_hidg_open, .release = f_hidg_release,