]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: zynq_qspi: Add missing prototype for update_stripe
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Wed, 16 Oct 2024 04:44:02 +0000 (10:14 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 25 Oct 2024 14:19:55 +0000 (16:19 +0200)
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@amd.com>
Link: https://lore.kernel.org/r/20241016044402.18052-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/spi/zynq_qspi.c

index f5b3fb5c12536e6d26cd0b7a70c9e6b662362f78..4aad3248d9e844caa3de073509fa0e707817c728 100644 (file)
@@ -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 ||