rtc: mxc_v2: Fix _iomem pointer notation
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/1 rtc: mxc_v2: Fix _iomem pointer notation
From: Fabio Estevam <[email protected]>
Fix the iomem pointer notation in order to fix the following sparse warnings:
drivers/rtc/rtc-mxc_v2.c:280:18: warning: incorrect type in argument 1 (different address spaces)drivers/rtc/rtc-mxc_v2.c:280:18: expected void const volatile [noderef] <asn:2>*addrdrivers/rtc/rtc-mxc_v2.c:280:18: got void *[noderef] <asn:2>ioaddrdrivers/rtc/rtc-mxc_v2.c:329:44: warning: incorrect type in argument 1 (different address spaces)drivers/rtc/rtc-mxc_v2.c:329:44: expected void *[noderef] <asn:2>ioaddrdrivers/rtc/rtc-mxc_v2.c:329:44: got void [noderef] <asn:2>*drivers/rtc/rtc-mxc_v2.c:339:44: warning: incorrect type in argument 1 (different address spaces)drivers/rtc/rtc-mxc_v2.c:339:44: expected void *[noderef] <asn:2>ioaddrdrivers/rtc/rtc-mxc_v2.c:339:44: got void [noderef] <asn:2>*
--- drivers/rtc/rtc-mxc_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-mxc_v2.c +1 -1
@@ -273,7 +273,7 @@ static const struct rtc_class_ops mxc_rtc_ops = { .alarm_irq_enable = mxc_rtc_alarm_irq_enable, }; -static int mxc_rtc_wait_for_flag (void *__iomem ioaddr,int flag) +static int mxc_rtc_wait_for_flag (void __iomem *ioaddr,int flag) {unsigned int timeout =REG_READ_TIMEOUT ;
Signature · 1 line
2.7.4
Alexandre Belloni
AppliedQuoted 15 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Fix the iomem pointer notation in order to fix the following sparse warnings:
drivers/rtc/rtc-mxc_v2.c:280:18: warning: incorrect type in argument 1 (different address spaces)drivers/rtc/rtc-mxc_v2.c:280:18: expected void const volatile [noderef] <asn:2>*addrdrivers/rtc/rtc-mxc_v2.c:280:18: got void *[noderef] <asn:2>ioaddrdrivers/rtc/rtc-mxc_v2.c:329:44: warning: incorrect type in argument 1 (different address spaces)drivers/rtc/rtc-mxc_v2.c:329:44: expected void *[noderef] <asn:2>ioaddrdrivers/rtc/rtc-mxc_v2.c:329:44: got void [noderef] <asn:2>*drivers/rtc/rtc-mxc_v2.c:339:44: warning: incorrect type in argument 1 (different address spaces)drivers/rtc/rtc-mxc_v2.c:339:44: expected void *[noderef] <asn:2>ioaddrdrivers/rtc/rtc-mxc_v2.c:339:44: got void [noderef] <asn:2>*
Quoted 5 lines
Signed-off-by Fabio Estevam <[email protected]>--- drivers/rtc/rtc-mxc_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Signature · 3 lines
Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com