Skip to contentSkip to conversation

spi: core: Staticize __spi_split_transfer_maxsize()

PATCH New Fabio Estevam 1 participant 1 message Feb 14, 2016 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: core: Staticize __spi_split_transfer_maxsize()

From: Fabio Estevam <[email protected]>

__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?

---
 drivers/spi/spi.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/spi/spi.c +5 -5
index 1413a6b..ced6c88 100644
@@ -2263,11 +2263,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;
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html