summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew LaMarche2025-09-23 17:26:46 +0000
committerHauke Mehrtens2025-09-24 22:12:27 +0000
commit3db08ebaa78356a17ebb84ceb4c35a0224cb2d1e (patch)
treea86a38a24412addb3616b5d2b4ce382cff3dd658
parent46d83193e8d44b0dfa8790fdc84f6eea6b11ec9c (diff)
downloadopenwrt-3db08ebaa78356a17ebb84ceb4c35a0224cb2d1e.tar.gz
airoha: en7523: fix SPI patch no prototype error
en7523 compilation on 6.12 fails with a no prototype warning. Fix this by declaring max_transfer_size and transfer_one_message static. Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20138 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/airoha/patches-6.12/300-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/airoha/patches-6.12/300-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch b/target/linux/airoha/patches-6.12/300-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch
index d3f3054fe7..a9437b0e63 100644
--- a/target/linux/airoha/patches-6.12/300-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch
+++ b/target/linux/airoha/patches-6.12/300-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch
@@ -254,12 +254,12 @@
+ return xfer->len;
+}
+
-+size_t max_transfer_size(struct spi_device *spi)
++static size_t max_transfer_size(struct spi_device *spi)
+{
+ return _ENSPI_MAX_XFER;
+}
+
-+int transfer_one_message(struct spi_controller *ctrl, struct spi_message *msg)
++static int transfer_one_message(struct spi_controller *ctrl, struct spi_message *msg)
+{
+ struct spi_transfer *xfer;
+ int next_xfer_is_rx = 0;