[PATCH 3/4] soc: imx: secvio: Add support for SNVS secvio and tamper via SCFW
kernel test robot
lkp at intel.com
Wed May 1 17:54:44 PDT 2024
Hi Vabhav,
kernel test robot noticed the following build warnings:
[auto build test WARNING on shawnguo/for-next]
[also build test WARNING on robh/for-next krzk/for-next krzk-dt/for-next linus/master v6.9-rc6 next-20240501]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Vabhav-Sharma/dt-bindings-firmware-secvio-Add-documentation/20240501-133607
base: https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next
patch link: https://lore.kernel.org/r/20240501053205.1737248-4-vabhav.sharma%40nxp.com
patch subject: [PATCH 3/4] soc: imx: secvio: Add support for SNVS secvio and tamper via SCFW
config: hexagon-randconfig-r131-20240502 (https://download.01.org/0day-ci/archive/20240502/202405020818.2mTfooXt-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 37ae4ad0eef338776c7e2cffb3896153d43dcd90)
reproduce: (https://download.01.org/0day-ci/archive/20240502/202405020818.2mTfooXt-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405020818.2mTfooXt-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/soc/imx/secvio/imx-secvio-sc.c:381:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *to @@ got void * @@
drivers/soc/imx/secvio/imx-secvio-sc.c:381:37: sparse: expected void [noderef] __user *to
drivers/soc/imx/secvio/imx-secvio-sc.c:381:37: sparse: got void *
>> drivers/soc/imx/secvio/imx-secvio-sc.c:393:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void * @@
drivers/soc/imx/secvio/imx-secvio-sc.c:393:46: sparse: expected void const [noderef] __user *from
drivers/soc/imx/secvio/imx-secvio-sc.c:393:46: sparse: got void *
vim +381 drivers/soc/imx/secvio/imx-secvio-sc.c
368
369 static long imx_secvio_sc_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
370 {
371 struct device *dev = file->private_data;
372 struct secvio_sc_notifier_info info;
373 int ret;
374
375 switch (cmd) {
376 case IMX_SECVIO_SC_GET_STATE:
377 ret = imx_secvio_sc_get_state(dev, &info);
378 if (ret)
379 return ret;
380
> 381 ret = copy_to_user((void *)arg, &info, sizeof(info));
382 if (ret) {
383 dev_err(dev, "Fail to copy info to user\n");
384 return -EFAULT;
385 }
386 break;
387 case IMX_SECVIO_SC_CHECK_STATE:
388 ret = imx_secvio_sc_check_state(dev);
389 if (ret)
390 return ret;
391 break;
392 case IMX_SECVIO_SC_CLEAR_STATE:
> 393 ret = copy_from_user(&info, (void *)arg, sizeof(info));
394 if (ret) {
395 dev_err(dev, "Fail to copy info from user\n");
396 return -EFAULT;
397 }
398
399 ret = imx_secvio_sc_clear_state(dev, info.hpsvs, info.lps,
400 info.lptds);
401 if (ret)
402 return ret;
403 break;
404 default:
405 ret = -ENOIOCTLCMD;
406 }
407
408 return ret;
409 }
410
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list