Skip to content

Commit 5fc2c38

Browse files
DragonBluepbroonie
authored andcommitted
spi: falcon: mark falcon_sflash_xfer() as static
Fix the following missing-prototypes build warning: drivers/spi/spi-falcon.c:97:5: error: no previous prototype for 'falcon_sflash_xfer' [-Werror=missing-prototypes] 97 | int falcon_sflash_xfer(struct spi_device *spi, struct spi_transfer *t, | ^~~~~~~~~~~~~~~~~~ Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://patch.msgid.link/OSBPR01MB16705BE87E549B6210CD6BCABC72A@OSBPR01MB1670.jpnprd01.prod.outlook.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent dce4bc3 commit 5fc2c38

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/spi/spi-falcon.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ struct falcon_sflash {
9494
struct spi_controller *host;
9595
};
9696

97-
int falcon_sflash_xfer(struct spi_device *spi, struct spi_transfer *t,
98-
unsigned long flags)
97+
static int
98+
falcon_sflash_xfer(struct spi_device *spi, struct spi_transfer *t,
99+
unsigned long flags)
99100
{
100101
struct device *dev = &spi->dev;
101102
struct falcon_sflash *priv = spi_controller_get_devdata(spi->controller);

0 commit comments

Comments
 (0)