[PATCH] spi: zynqmp_qspi: Mark zynqmp_qspi_set_tapdelay() as static

Michal Simek monstr at monstr.eu
Fri Oct 7 11:31:43 CEST 2022



On 10/4/22 07:37, Venkatesh Yadav Abbarapu wrote:
> Fix the following sparse and compile time warning triggered with W=1:
> 
> drivers/spi/zynqmp_gqspi.c:286:6:
> warning: no previous prototype for 'zynqmp_qspi_set_tapdelay'
> [-Wmissing-prototypes]
> 
> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
> ---
> 
>   drivers/spi/zynqmp_gqspi.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c
> index c772bae3cc..ab8c551466 100644
> --- a/drivers/spi/zynqmp_gqspi.c
> +++ b/drivers/spi/zynqmp_gqspi.c
> @@ -283,7 +283,7 @@ static void zynqmp_qspi_chipselect(struct zynqmp_qspi_priv *priv, int is_on)
>   	zynqmp_qspi_fill_gen_fifo(priv, gqspi_fifo_reg);
>   }
>   
> -void zynqmp_qspi_set_tapdelay(struct udevice *bus, u32 baudrateval)
> +static void zynqmp_qspi_set_tapdelay(struct udevice *bus, u32 baudrateval)
>   {
>   	struct zynqmp_qspi_plat *plat = dev_get_plat(bus);
>   	struct zynqmp_qspi_priv *priv = dev_get_priv(bus);

Applied.
M
-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs



More information about the U-Boot mailing list