Skip to contentSkip to conversation

Input: apbps2 - add __iomem to register struct

PATCH New Ben Dooks (Codethink) 1 participant 1 message Dec 17, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: apbps2 - add __iomem to register struct

Add __iomem to the apbps2_priv.regs field to make the numerous warnings about differing address spaces go away. Fixes warnings such as:

drivers/input/serio/apbps2.c:65:26: warning: incorrect type in argument 1 (different address spaces)
drivers/input/serio/apbps2.c:65:26: expected void const volatile [noderef] <asn:2> *addr
drivers/input/serio/apbps2.c:65:26: got unsigned int [noderef] *
drivers/input/serio/apbps2.c:65:26: warning: incorrect type in argument 1 (different address spaces)
drivers/input/serio/apbps2.c:65:26: expected void const volatile [noderef] <asn:2> *addr
drivers/input/serio/apbps2.c:65:26: got unsigned int [noderef] *
drivers/input/serio/apbps2.c:65:26: warning: incorrect type in argument 1 (different address spaces)
drivers/input/serio/apbps2.c:65:26: expected void const volatile [noderef] <asn:2> *addr
drivers/input/serio/apbps2.c:65:26: got unsigned int [noderef] *
drivers/input/serio/apbps2.c:65:26: warning: incorrect type in argument 1 (different address spaces)
drivers/input/serio/apbps2.c:65:26: expected void const volatile [noderef] <asn:2> *addr
[rest snipped]

---
Cc: Dmitry Torokhov <[email protected]>
Cc: Allison Randal <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]

---
 drivers/input/serio/apbps2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/serio/apbps2.c +1 -1
index f290d5d146c3..594ac4e6f8ea 100644
@@ -51,7 +51,7 @@ struct apbps2_regs {
 
 struct apbps2_priv {
 	struct serio		*io;
-	struct apbps2_regs	*regs;
+	struct apbps2_regs	__iomem *regs;
 };
 
 static int apbps2_idx;
Signature · 1 line
2.24.0