spi: core: Staticize __spi_split_transfer_maxsize()
authorFabio Estevam <fabio.estevam@nxp.com>
Sun, 14 Feb 2016 15:33:50 +0000 (13:33 -0200)
committerMark Brown <broonie@kernel.org>
Mon, 15 Feb 2016 19:55:46 +0000 (19:55 +0000)
__spi_split_transfer_maxsize() can be made static as it is only
used in this file.

This fixes the following sparse warning:

drivers/spi/spi.c:2266:5: warning: symbol '__spi_split_transfer_maxsize' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c

index 801e8900898ba31aae7d3d32e562bd24837cce4f..9490273ed81175d8e8e31284721772bde3fc2f19 100644 (file)
@@ -2241,11 +2241,11 @@ struct spi_replaced_transfers *spi_replace_transfers(
 }
 EXPORT_SYMBOL_GPL(spi_replace_transfers);
 
-int __spi_split_transfer_maxsize(struct spi_master *master,
-                                struct spi_message *msg,
-                                struct spi_transfer **xferp,
-                                size_t maxsize,
-                                gfp_t gfp)
+static int __spi_split_transfer_maxsize(struct spi_master *master,
+                                       struct spi_message *msg,
+                                       struct spi_transfer **xferp,
+                                       size_t maxsize,
+                                       gfp_t gfp)
 {
        struct spi_transfer *xfer = *xferp, *xfers;
        struct spi_replaced_transfers *srt;