]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fsl: add missing __iomem annotation
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Mon, 22 Jun 2020 16:26:11 +0000 (18:26 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2020 22:21:26 +0000 (23:21 +0100)
commit2c0d4132c48bb22cc81681b5d65bc83f87257ef4
treec2ab8e0aff65f7b3c528a3f1637693db36ec476d
parent390455ca02c8170612da53725843006cc2280fa3
spi: fsl: add missing __iomem annotation

The field mspi->reg_base is annotated as an __iomem pointer. Good.

However, this field is often assigned to a temporary variable:
before being used. For example:
struct fsl_spi_reg *reg_base = mspi->reg_base;

But this variable is missing the __iomem annotation.
So, add the missing __iomem and make sparse & the bot happier.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Link: https://lore.kernel.org/r/20200622162611.83694-1-luc.vanoostenryck@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-spi.c