Input: apbps2 - add __iomem to register struct
Subsystems (2)
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> *addrdrivers/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> *addrdrivers/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> *addrdrivers/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
@@ -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