mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-09-28 12:52:39 +00:00
Patches 12 and 13 have been superseded by patch 12. Other patches have no significant changes. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Link: https://github.com/openwrt/openwrt/pull/19675 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 5fc2c383125c2b4b6037e02ad8796b776b25e6d0 Mon Sep 17 00:00:00 2001
|
|
From: Shiji Yang <yangshiji66@outlook.com>
|
|
Date: Wed, 18 Jun 2025 22:53:29 +0800
|
|
Subject: [PATCH] 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>
|
|
---
|
|
drivers/spi/spi-falcon.c | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/spi/spi-falcon.c
|
|
+++ b/drivers/spi/spi-falcon.c
|
|
@@ -94,8 +94,9 @@ struct falcon_sflash {
|
|
struct spi_controller *host;
|
|
};
|
|
|
|
-int falcon_sflash_xfer(struct spi_device *spi, struct spi_transfer *t,
|
|
- unsigned long flags)
|
|
+static int
|
|
+falcon_sflash_xfer(struct spi_device *spi, struct spi_transfer *t,
|
|
+ unsigned long flags)
|
|
{
|
|
struct device *dev = &spi->dev;
|
|
struct falcon_sflash *priv = spi_controller_get_devdata(spi->controller);
|