Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49cf10c6 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d1281615
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2510,7 +2510,7 @@ void dwc2_set_param_otg_ver(struct dwc2_hsotg *hsotg, int val)
	hsotg->core_params->otg_ver = 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 (DWC2_OUT_OF_BOUNDS(val, 0, 1)) {
		if (val >= 0) {
		if (val >= 0) {