]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ixp4xx/qmgr: fix invalid __iomem access
authorArnd Bergmann <arnd@arndb.de>
Tue, 3 Aug 2021 08:12:34 +0000 (10:12 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 3 Aug 2021 08:16:34 +0000 (10:16 +0200)
commit97848f47d5c72f5a49fd6d1678df2a6b9e3b9a0b
tree06e92322f9933233d817e99e05a2f3fcaa73c1ab
parent044b68305db19a3cd94ee55d532264d8effbce7f
soc: ixp4xx/qmgr: fix invalid __iomem access

Sparse reports a compile time warning when dereferencing an
__iomem pointer:

drivers/soc/ixp4xx/ixp4xx-qmgr.c:149:37: warning: dereference of noderef expression
drivers/soc/ixp4xx/ixp4xx-qmgr.c:153:40: warning: dereference of noderef expression
drivers/soc/ixp4xx/ixp4xx-qmgr.c:154:40: warning: dereference of noderef expression
drivers/soc/ixp4xx/ixp4xx-qmgr.c:174:38: warning: dereference of noderef expression
drivers/soc/ixp4xx/ixp4xx-qmgr.c:174:44: warning: dereference of noderef expression

Use __raw_readl() here for consistency with the rest of the file.
This should really get converted to some proper accessor, as the
__raw functions are not meant to be used in drivers, but the driver
has used these since the start, so for the moment, let's only fix
the warning.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 1f7a4cac5325 ("IXP42x: Add QMgr support for IXP425 rev. A0 processors.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/ixp4xx/ixp4xx-qmgr.c