diff mbox series

spi: mpc52xx-psc: Make mpc52xx_psc_spi_transfer_one_message() static

Message ID 20231006112945.1491265-1-geert+renesas@glider.be (mailing list archive)
State Accepted
Commit 881fe6ed21e8c7e60095aabc274c4f2bfdc87c5e
Headers show
Series spi: mpc52xx-psc: Make mpc52xx_psc_spi_transfer_one_message() static | expand

Commit Message

Geert Uytterhoeven Oct. 6, 2023, 11:29 a.m. UTC
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>
---
 drivers/spi/spi-mpc52xx-psc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown Oct. 6, 2023, 2:44 p.m. UTC | #1
On Fri, 06 Oct 2023 13:29:45 +0200, Geert Uytterhoeven wrote:
> 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.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: mpc52xx-psc: Make mpc52xx_psc_spi_transfer_one_message() static
      commit: 881fe6ed21e8c7e60095aabc274c4f2bfdc87c5e

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/drivers/spi/spi-mpc52xx-psc.c b/drivers/spi/spi-mpc52xx-psc.c
index 78405cb45c961ff9..28f06122edac5632 100644
--- a/drivers/spi/spi-mpc52xx-psc.c
+++ b/drivers/spi/spi-mpc52xx-psc.c
@@ -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;