Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: dwc2: fix sparse non static symbol warning

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>

authored by

Wei Yongjun and committed by
Greg Kroah-Hartman
49cf10c6 d1281615

+1 -1
+1 -1
drivers/staging/dwc2/core.c
··· 2510 2510 hsotg->core_params->otg_ver = val; 2511 2511 } 2512 2512 2513 - void dwc2_set_param_uframe_sched(struct dwc2_hsotg *hsotg, int val) 2513 + static void dwc2_set_param_uframe_sched(struct dwc2_hsotg *hsotg, int val) 2514 2514 { 2515 2515 if (DWC2_OUT_OF_BOUNDS(val, 0, 1)) { 2516 2516 if (val >= 0) {