]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: en7523: fix SPI patch no prototype error 20138/head
authorAndrew LaMarche <andrewjlamarche@gmail.com>
Tue, 23 Sep 2025 17:26:46 +0000 (13:26 -0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 24 Sep 2025 22:12:27 +0000 (00:12 +0200)
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>
target/linux/airoha/patches-6.12/300-spi-Add-support-for-the-Airoha-EN7523-SoC-SPI-contro.patch

index d3f3054fe758bf1bb3276e98f862bbd0ec693fb0..a9437b0e631025f0aba1f9db6d63cfc54c8860bd 100644 (file)
 +      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;