From: Shiji Yang <yangshiji66@outlook.com>
To: linux-mips@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-spi@vger.kernel.org
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
John Crispin <john@phrozen.org>,
Linus Walleij <linus.walleij@linaro.org>,
Mark Brown <broonie@kernel.org>,
linux-kernel@vger.kernel.org,
Shiji Yang <yangshiji66@outlook.com>
Subject: [PATCH 16/16] spi: falcon: mark falcon_sflash_xfer() as static
Date: Wed, 18 Jun 2025 22:53:29 +0800 [thread overview]
Message-ID: <OSBPR01MB16705BE87E549B6210CD6BCABC72A@OSBPR01MB1670.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <OSBPR01MB1670163BDCA60924B3671D45BC72A@OSBPR01MB1670.jpnprd01.prod.outlook.com>
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>
---
drivers/spi/spi-falcon.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/spi-falcon.c b/drivers/spi/spi-falcon.c
index 84279058f..faa893f83 100644
--- 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);
--
2.50.0
next prev parent reply other threads:[~2025-06-18 14:54 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 14:53 [PATCH 00/16] MIPS: some compilation fixes for the Lantiq platform Shiji Yang
2025-06-18 14:53 ` [PATCH 01/16] MIPS: lantiq: xway: mark ltq_ar9_sys_hz() as static Shiji Yang
2025-06-18 14:53 ` [PATCH 02/16] MIPS: lantiq: xway: mark dma_init() " Shiji Yang
2025-06-18 14:53 ` [PATCH 03/16] MIPS: lantiq: xway: mark dcdc_init() " Shiji Yang
2025-06-18 14:53 ` [PATCH 04/16] MIPS: lantiq: irq: fix misc missing-prototypes warnings Shiji Yang
2025-06-18 14:53 ` [PATCH 05/16] MIPS: lantiq: xway: add prototype for ltq_get_cp1_base() Shiji Yang
2025-06-18 14:53 ` [PATCH 06/16] MIPS: pci: lantiq: marks pcibios_init() as static Shiji Yang
2025-06-18 14:53 ` [PATCH 07/16] MIPS: lantiq: falcon: fix misc missing-prototypes warnings Shiji Yang
2025-06-18 14:53 ` [PATCH 08/16] MIPS: lantiq: falcon: sysctrl: remove unused falcon_trigger_hrst() Shiji Yang
2025-06-18 14:53 ` [PATCH 09/16] MIPS: lantiq: falcon: sysctrl: add missing header prom.h Shiji Yang
2025-06-18 14:53 ` [PATCH 10/16] MIPS: lantiq: falcon: sysctrl: fix request memory check logic Shiji Yang
2025-06-18 14:53 ` [PATCH 11/16] MIPS: lantiq: xway: gptu: mark gptu_init() as static Shiji Yang
2025-06-18 14:53 ` [PATCH 12/16] MIPS: vpe-mt: mark vpe_free() and vpe_stop() " Shiji Yang
2025-07-02 12:06 ` Thomas Bogendoerfer
2025-07-03 13:25 ` Shiji Yang
2025-06-18 14:53 ` [PATCH 13/16] MIPS: vpe-mt: drop unused functions vpe_alloc() and vpe_start() Shiji Yang
2025-06-18 14:53 ` [PATCH 14/16] pinctrl: xway: mark xway_pinconf_group_set() as static Shiji Yang
2025-06-18 14:53 ` [PATCH 15/16] pinctrl: falcon: mark pinctrl_falcon_init() " Shiji Yang
2025-06-18 14:53 ` Shiji Yang [this message]
2025-06-18 15:08 ` [PATCH 16/16] spi: falcon: mark falcon_sflash_xfer() " Mark Brown
2025-06-19 18:00 ` (subset) [PATCH 00/16] MIPS: some compilation fixes for the Lantiq platform Mark Brown
2025-06-24 19:04 ` Linus Walleij
2025-07-02 12:07 ` Thomas Bogendoerfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OSBPR01MB16705BE87E549B6210CD6BCABC72A@OSBPR01MB1670.jpnprd01.prod.outlook.com \
--to=yangshiji66@outlook.com \
--cc=broonie@kernel.org \
--cc=john@phrozen.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®