]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: versal: Mark versal_clock_setup() as static
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Fri, 7 Oct 2022 10:55:35 +0000 (16:25 +0530)
committerMichal Simek <michal.simek@amd.com>
Mon, 10 Oct 2022 10:28:08 +0000 (12:28 +0200)
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@amd.com>
Link: https://lore.kernel.org/r/20221007105535.31902-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/clk/clk_versal.c

index b2f62061cea2768e89cad01e51bd3395622885a1..76fde00491b23556fd974e5c4b05f93973d2ded3 100644 (file)
@@ -602,7 +602,7 @@ static void versal_get_clock_info(void)
        }
 }
 
-int versal_clock_setup(void)
+static int versal_clock_setup(void)
 {
        int ret;