Skip to contentSkip to conversation

spi: zynq_qspi: Add missing prototype for update_stripe

PATCH Applied Venkatesh Yadav Abbarapu 2 participants 2 messages Oct 16, 2024 – Oct 25, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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].

---
 drivers/spi/zynq_qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/zynq_qspi.c +1 -1
index f5b3fb5c125..4aad3248d9e 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 14 lines · Venkatesh Yadav Abbarapu

Add missing prototype to fix the sparse warning,
warning: no previous prototype for 'update_stripe' [-Wmissing-prototypes].

---
  drivers/spi/zynq_qspi.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/zynq_qspi.c +0 -0
index f5b3fb5c125..4aad3248d9e 100644

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