[PATCH] clk: versal: Mark versal_clock_setup() as static
Venkatesh Yadav Abbarapu
venkatesh.abbarapu at amd.com
Fri Oct 7 12:55:35 CEST 2022
Fix the following sparse and compile time warning
triggered with W=1:
drivers/clk/clk_versal.c:605:5:
warning: no previous prototype for 'versal_clock_setup'
[-Wmissing-prototypes]
605 | int versal_clock_setup(void)
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
---
drivers/clk/clk_versal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c
index b2f62061ce..76fde00491 100644
--- a/drivers/clk/clk_versal.c
+++ b/drivers/clk/clk_versal.c
@@ -602,7 +602,7 @@ static void versal_get_clock_info(void)
}
}
-int versal_clock_setup(void)
+static int versal_clock_setup(void)
{
int ret;
--
2.17.1
More information about the U-Boot
mailing list