Hey Pankaj Gupta, please install "sparse", compile your driver with "C=1" and fix the following warnings: | drivers/firmware/imx/se_ctrl.c:347:63: warning: incorrect type in argument 2 (different address spaces) | drivers/firmware/imx/se_ctrl.c:347:63: expected void [noderef] __iomem *addr | drivers/firmware/imx/se_ctrl.c:347:63: got unsigned char [usertype] *ptr | drivers/firmware/imx/se_ctrl.c:379:58: warning: incorrect type in argument 1 (different address spaces) | drivers/firmware/imx/se_ctrl.c:379:58: expected void [noderef] __user *to | drivers/firmware/imx/se_ctrl.c:379:58: got unsigned char [usertype] *usr_buf_ptr | drivers/firmware/imx/se_ctrl.c:570:52: warning: incorrect type in argument 2 (different address spaces) | drivers/firmware/imx/se_ctrl.c:570:52: expected void const [noderef] __user *from | drivers/firmware/imx/se_ctrl.c:570:52: got unsigned char [usertype] * | drivers/firmware/imx/se_ctrl.c:595:50: warning: incorrect type in argument 1 (different address spaces) | drivers/firmware/imx/se_ctrl.c:595:50: expected void const [noderef] __user * | drivers/firmware/imx/se_ctrl.c:595:50: got unsigned int [usertype] *[addressable] tx_buf | drivers/firmware/imx/se_ctrl.c:642:46: warning: incorrect type in argument 1 (different address spaces) | drivers/firmware/imx/se_ctrl.c:642:46: expected void [noderef] __user *to | drivers/firmware/imx/se_ctrl.c:642:46: got unsigned int [usertype] *[addressable] rx_buf | drivers/firmware/imx/se_ctrl.c:653:27: warning: incorrect type in argument 1 (different address spaces) | drivers/firmware/imx/se_ctrl.c:653:27: expected void [noderef] __user *to | drivers/firmware/imx/se_ctrl.c:653:27: got void * | drivers/firmware/imx/se_ctrl.c:689:27: warning: incorrect type in argument 1 (different address spaces) | drivers/firmware/imx/se_ctrl.c:689:27: expected void [noderef] __user *to | drivers/firmware/imx/se_ctrl.c:689:27: got unsigned char [usertype] * | drivers/firmware/imx/se_ctrl.c:713:34: warning: incorrect type in argument 2 (different address spaces) | drivers/firmware/imx/se_ctrl.c:713:34: expected void const [noderef] __user *from | drivers/firmware/imx/se_ctrl.c:713:34: got unsigned char [usertype] * | drivers/firmware/imx/se_ctrl.c:762:61: warning: incorrect type in argument 2 (different address spaces) | drivers/firmware/imx/se_ctrl.c:762:61: expected void const [noderef] __user *from | drivers/firmware/imx/se_ctrl.c:762:61: got unsigned char [usertype] *[addressable] [assigned] user_buf | drivers/firmware/imx/se_ctrl.c:782:27: warning: incorrect type in argument 1 (different address spaces) | drivers/firmware/imx/se_ctrl.c:782:27: expected void [noderef] __user *to | drivers/firmware/imx/se_ctrl.c:782:27: got unsigned char [usertype] * | drivers/firmware/imx/se_ctrl.c:808:34: warning: incorrect type in argument 1 (different address spaces) | drivers/firmware/imx/se_ctrl.c:808:34: expected void [noderef] __user *to | drivers/firmware/imx/se_ctrl.c:808:34: got unsigned char [usertype] * regards, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Attachment:
signature.asc
Description: PGP signature