Skip to content

Commit 881fe6e

Browse files
geertubroonie
authored andcommitted
spi: mpc52xx-psc: Make mpc52xx_psc_spi_transfer_one_message() static
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: 145cfc3 ("spi: mpc52xx-psc: Switch to using core message queue") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 8640113 commit 881fe6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-mpc52xx-psc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ static int mpc52xx_psc_spi_transfer_rxtx(struct spi_device *spi,
175175
return 0;
176176
}
177177

178-
int mpc52xx_psc_spi_transfer_one_message(struct spi_controller *ctlr,
179-
struct spi_message *m)
178+
static int mpc52xx_psc_spi_transfer_one_message(struct spi_controller *ctlr,
179+
struct spi_message *m)
180180
{
181181
struct spi_device *spi;
182182
struct spi_transfer *t = NULL;

0 commit comments

Comments
 (0)