soc: fsl: cpm1: qmc: Fix __iomem addresses declaration
authorHerve Codina <herve.codina@bootlin.com>
Tue, 5 Dec 2023 15:20:59 +0000 (16:20 +0100)
committerHerve Codina <herve.codina@bootlin.com>
Tue, 12 Dec 2023 09:29:20 +0000 (10:29 +0100)
commita5ec3a21220da06bdda2e686012ca64fdb6c513d
treecdf9e82685c462f48ccd7344f37463110bd2e86d
parentfc0c64154e5ddeb6f63c954735bd646ce5b8d9a4
soc: fsl: cpm1: qmc: Fix __iomem addresses declaration

Running sparse (make C=1) on qmc.c raises a lot of warning such as:
  ...
  warning: incorrect type in assignment (different address spaces)
     expected struct cpm_buf_desc [usertype] *[noderef] __iomem bd
     got struct cpm_buf_desc [noderef] [usertype] __iomem *txbd_free
  ...

Indeed, some variable were declared 'type *__iomem var' instead of
'type __iomem *var'.

Use the correct declaration to remove these warnings.

Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC")
Cc: stable@vger.kernel.org
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20231205152116.122512-3-herve.codina@bootlin.com
drivers/soc/fsl/qe/qmc.c