]> Pileus Git - ~andy/linux/commitdiff
staging: dwc2: fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 28 Nov 2013 02:27:59 +0000 (10:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:35:18 +0000 (09:35 -0800)
Fixes the following sparse warning:

drivers/staging/dwc2/core.c:2672:6: warning:
 symbol 'dwc2_set_param_uframe_sched' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/core.c

index 8a71726a35663a4a605d0ba437e68e81f6994bd7..8565d87f94b4872e6f5fb7cb1d813f8e0b4493bc 100644 (file)
@@ -2510,7 +2510,7 @@ void dwc2_set_param_otg_ver(struct dwc2_hsotg *hsotg, int val)
        hsotg->core_params->otg_ver = val;
 }
 
-void dwc2_set_param_uframe_sched(struct dwc2_hsotg *hsotg, int val)
+static void dwc2_set_param_uframe_sched(struct dwc2_hsotg *hsotg, int val)
 {
        if (DWC2_OUT_OF_BOUNDS(val, 0, 1)) {
                if (val >= 0) {