[PATCH] clk: versal: Mark versal_clock_setup() as static
Michal Simek
michal.simek at amd.com
Mon Oct 10 08:56:07 CEST 2022
On 10/7/22 12:55, Venkatesh Yadav Abbarapu wrote:
> 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;
>
Applied.
M
More information about the U-Boot
mailing list