]> git.itanic.dy.fi Git - linux-stable/commitdiff
spi: mpc52xx-psc: Make mpc52xx_psc_spi_transfer_one_message() static
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 6 Oct 2023 11:29:45 +0000 (13:29 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 6 Oct 2023 11:34:31 +0000 (12:34 +0100)
With W=1:

    drivers/spi/spi-mpc52xx-psc.c:178:5: warning: no previous prototype for ‘mpc52xx_psc_spi_transfer_one_message’ [-Wmissing-prototypes]
      178 | int mpc52xx_psc_spi_transfer_one_message(struct spi_controller *ctlr,
  |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

mpc52xx_psc_spi_transfer_one_message() is only used inside the file that
defines it.  Hence fix this by making it static.

Fixes: 145cfc3840e5931a ("spi: mpc52xx-psc: Switch to using core message queue")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310061815.7Rtyi4hs-lkp@intel.com/
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20231006112945.1491265-1-geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mpc52xx-psc.c

index 78405cb45c961ff97cc9a8f2a4e2786c5c9868dc..28f06122edac56328120b2307550b7b97d2550c7 100644 (file)
@@ -175,8 +175,8 @@ static int mpc52xx_psc_spi_transfer_rxtx(struct spi_device *spi,
        return 0;
 }
 
-int mpc52xx_psc_spi_transfer_one_message(struct spi_controller *ctlr,
-                                        struct spi_message *m)
+static int mpc52xx_psc_spi_transfer_one_message(struct spi_controller *ctlr,
+                                               struct spi_message *m)
 {
        struct spi_device *spi;
        struct spi_transfer *t = NULL;