From: Algapally Santosh Sagar Date: Wed, 14 Jun 2023 09:03:54 +0000 (-0600) Subject: spi: xilinx_spi: Add missing prototype for xilinx_qspi_mem_exec_op X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=583cebb9ecaec824289a3e2b0dc53158b6030fbb;p=u-boot.git spi: xilinx_spi: Add missing prototype for xilinx_qspi_mem_exec_op Add missing prototype to fix the below sparse warning warning: no previous prototype for 'xilinx_qspi_mem_exec_op' [-Wmissing-prototypes] Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma Link: https://lore.kernel.org/r/20230614090359.10809-2-ashok.reddy.soma@amd.com Signed-off-by: Michal Simek --- diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 33575fe757..b58a3f632a 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -363,8 +363,8 @@ static int xilinx_qspi_check_buswidth(struct spi_slave *slave, u8 width) return -EOPNOTSUPP; } -bool xilinx_qspi_mem_exec_op(struct spi_slave *slave, - const struct spi_mem_op *op) +static bool xilinx_qspi_mem_exec_op(struct spi_slave *slave, + const struct spi_mem_op *op) { if (xilinx_qspi_check_buswidth(slave, op->cmd.buswidth)) return false;