Skip to contentSkip to conversation

pinctrl: tb10x: Mark base as __iomem

PATCH In review Linus Walleij 2 participants 2 messages Jun 30

Subsystems (2)
lore
Share & tools
lore

Linus Walleij

author maintainer
#0 lore raw

PATCH 1/1 pinctrl: tb10x: Mark base as __iomem

The compile tests are complaining that this is not correctly typed.

Fixes 1982621decaf ("pinctrl: Allow compile testing for K210, TB10X and ZYNQ")
---
 drivers/pinctrl/pinctrl-tb10x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-tb10x.c +1 -1
index 3f581404a9b9..b7cbd69dd877 100644
@@ -479,7 +479,7 @@ struct tb10x_port {
  */
 struct tb10x_pinctrl {
 	struct pinctrl_dev *pctl;
-	void *base;
+	void __iomem *base;
 	const struct tb10x_pinfuncgrp *pingroups;
 	unsigned int pinfuncgrpcnt;
 	unsigned int pinfuncnt;

---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260630-tb10x-0360d5489542

Best regards,

Signature · 1 line
Linus Walleij <[email protected]>
#1 lore raw
Quoted 3 lines · Linus Walleij

The compile tests are complaining that this is not correctly typed.

Fixes 1982621decaf ("pinctrl: Allow compile testing for K210, TB10X and ZYNQ")

I do not think this is a correct fixes tag. The issue was introduced by whichever commit made iomem memory a plain pointer.

Issue was reproducible earlier, just not on x86.

Quoted 12 lines
---
 drivers/pinctrl/pinctrl-tb10x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-tb10x.c +0 -0
index 3f581404a9b9..b7cbd69dd877 100644

drivers/pinctrl/pinctrl-tb10x.c struct tb10x_port { · line 482

Quoted 5 lines
drivers/pinctrl/pinctrl-tb10x.c +1 -1
@@ -479,7 +479,7 @@ struct tb10x_port {
  */
 struct tb10x_pinctrl {
 	struct pinctrl_dev *pctl;
-	void *base;
+	void __iomem *base;

Best regards,
Krzysztof