[PATCH] spi: zynq_qspi: Add missing prototype for update_stripe

Michal Simek michal.simek at amd.com
Fri Oct 25 16:20:01 CEST 2024



On 10/16/24 06:44, Venkatesh Yadav Abbarapu wrote:
> Add missing prototype to fix the sparse warning,
> warning: no previous prototype for 'update_stripe'
> [-Wmissing-prototypes].
> 
> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
> ---
>   drivers/spi/zynq_qspi.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c
> index f5b3fb5c125..4aad3248d9e 100644
> --- a/drivers/spi/zynq_qspi.c
> +++ b/drivers/spi/zynq_qspi.c
> @@ -734,7 +734,7 @@ static int zynq_qspi_set_mode(struct udevice *bus, uint mode)
>   	return 0;
>   }
>   
> -bool update_stripe(const struct spi_mem_op *op)
> +static bool update_stripe(const struct spi_mem_op *op)
>   {
>   	if (op->cmd.opcode == SPINOR_OP_BE_4K ||
>   	    op->cmd.opcode == SPINOR_OP_CHIP_ERASE ||

Applied.
M


More information about the U-Boot mailing list