spi: zynq_qspi: Add missing prototype for update_stripe
Subsystems (2)
PATCH 1/1 spi: zynq_qspi: Add missing prototype for update_stripe
Add missing prototype to fix the sparse warning,
warning: no previous prototype for 'update_stripe' [-Wmissing-prototypes].
Signed-off-by Venkatesh Yadav Abbarapu <[email protected]>
--- drivers/spi/zynq_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/zynq_qspi.c +1 -1
@@ -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 ||
Signature · 1 line
2.17.1
Quoted 14 lines · Venkatesh Yadav Abbarapu
Add missing prototype to fix the sparse warning,
warning: no previous prototype for 'update_stripe' [-Wmissing-prototypes].Signed-off-by Venkatesh Yadav Abbarapu <[email protected]>--- drivers/spi/zynq_qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/spi/zynq_qspi.c +0
-0
drivers/spi/zynq_qspi.c static int zynq_qspi_set_mode(struct udevice *bus, uint mode) · line 740
Quoted 8 lines
drivers/spi/zynq_qspi.c +1
-1@@ -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