diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-02-14 13:33:50 -0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-15 19:55:46 +0000 |
commit | 08933418d71e52f60859319ef9fb4e6f754297c1 (patch) | |
tree | 84a3a146ed9d6f8bfeac56c9380f8c55783f1944 /drivers | |
parent | 657d32efe04197736ed328a34ba659b5172c8cce (diff) |
spi: core: Staticize __spi_split_transfer_maxsize()
__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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 801e8900898b..9490273ed811 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -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; |