[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241015-eminent-fat-muskrat-de8bbd-mkl@pengutronix.de>
Date: Tue, 15 Oct 2024 12:07:46 +0200
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: Pankaj Gupta <pankaj.gupta@....com>
Cc: Jonathan Corbet <corbet@....net>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Shawn Guo <shawnguo@...nel.org>, Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>, Fabio Estevam <festevam@...il.com>,
Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org, imx@...ts.linux.dev,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org, linux-doc@...r.kernel.org
Subject: Re: [PATCH v8 0/5] v8: firmware: imx: driver for NXP secure-enclave
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 |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists