* [freescale-fslc:pr/629 3494/9838] drivers/staging/ethosu/ethosu_network.c:149:1: warning: the frame size of 1588 bytes is larger than 1024 bytes
@ 2023-04-15 17:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-15 17:20 UTC (permalink / raw)
To: Otavio Salvador; +Cc: oe-kbuild-all
tree: https://github.com/Freescale/linux-fslc pr/629
head: d1033c2e51746dfdb7179c82e38b03ba7de39c63
commit: 3a39366ac72824dade6536b0d1398b4a0392409d [3494/9838] ethosu: Add support for inference cancellation
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230416/202304160149.PxDXTITL-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/3a39366ac72824dade6536b0d1398b4a0392409d
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/629
git checkout 3a39366ac72824dade6536b0d1398b4a0392409d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/pwm/ drivers/soc/imx/ drivers/staging/ethosu/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304160149.PxDXTITL-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/staging/ethosu/ethosu_network.c: In function 'ethosu_network_ioctl':
>> drivers/staging/ethosu/ethosu_network.c:149:1: warning: the frame size of 1588 bytes is larger than 1024 bytes [-Wframe-larger-than=]
149 | }
| ^
vim +149 drivers/staging/ethosu/ethosu_network.c
95ce4103b59b6a Alison Wang 2022-10-14 91
95ce4103b59b6a Alison Wang 2022-10-14 92 static long ethosu_network_ioctl(struct file *file,
95ce4103b59b6a Alison Wang 2022-10-14 93 unsigned int cmd,
95ce4103b59b6a Alison Wang 2022-10-14 94 unsigned long arg)
95ce4103b59b6a Alison Wang 2022-10-14 95 {
95ce4103b59b6a Alison Wang 2022-10-14 96 struct ethosu_network *net = file->private_data;
95ce4103b59b6a Alison Wang 2022-10-14 97 void __user *udata = (void __user *)arg;
95ce4103b59b6a Alison Wang 2022-10-14 98 int ret = -EINVAL;
95ce4103b59b6a Alison Wang 2022-10-14 99
95ce4103b59b6a Alison Wang 2022-10-14 100 ret = mutex_lock_interruptible(&net->edev->mutex);
95ce4103b59b6a Alison Wang 2022-10-14 101 if (ret)
95ce4103b59b6a Alison Wang 2022-10-14 102 return ret;
95ce4103b59b6a Alison Wang 2022-10-14 103
68d267d8be8c72 Alison Wang 2022-09-27 104 dev_dbg(net->edev->dev,
68d267d8be8c72 Alison Wang 2022-09-27 105 "Network ioctl: file=0x%pK, net=0x%pK, cmd=0x%x, arg=0x%lx\n",
68d267d8be8c72 Alison Wang 2022-09-27 106 file, net, cmd, arg);
95ce4103b59b6a Alison Wang 2022-10-14 107
95ce4103b59b6a Alison Wang 2022-10-14 108 switch (cmd) {
10684f4bdf1ef0 Alison Wang 2022-09-27 109 case ETHOSU_IOCTL_NETWORK_INFO: {
10684f4bdf1ef0 Alison Wang 2022-09-27 110 struct ethosu_uapi_network_info uapi;
10684f4bdf1ef0 Alison Wang 2022-09-27 111
10684f4bdf1ef0 Alison Wang 2022-09-27 112 if (copy_from_user(&uapi, udata, sizeof(uapi)))
10684f4bdf1ef0 Alison Wang 2022-09-27 113 break;
10684f4bdf1ef0 Alison Wang 2022-09-27 114
10684f4bdf1ef0 Alison Wang 2022-09-27 115 dev_dbg(net->edev->dev,
10684f4bdf1ef0 Alison Wang 2022-09-27 116 "Network ioctl: Network info. net=0x%pK\n",
10684f4bdf1ef0 Alison Wang 2022-09-27 117 net);
10684f4bdf1ef0 Alison Wang 2022-09-27 118
10684f4bdf1ef0 Alison Wang 2022-09-27 119 ret = ethosu_network_info_request(net, &uapi);
10684f4bdf1ef0 Alison Wang 2022-09-27 120 if (ret)
10684f4bdf1ef0 Alison Wang 2022-09-27 121 break;
10684f4bdf1ef0 Alison Wang 2022-09-27 122
10684f4bdf1ef0 Alison Wang 2022-09-27 123 ret = copy_to_user(udata, &uapi, sizeof(uapi)) ? -EFAULT : 0;
10684f4bdf1ef0 Alison Wang 2022-09-27 124 break;
10684f4bdf1ef0 Alison Wang 2022-09-27 125 }
95ce4103b59b6a Alison Wang 2022-10-14 126 case ETHOSU_IOCTL_INFERENCE_CREATE: {
95ce4103b59b6a Alison Wang 2022-10-14 127 struct ethosu_uapi_inference_create uapi;
95ce4103b59b6a Alison Wang 2022-10-14 128
95ce4103b59b6a Alison Wang 2022-10-14 129 if (copy_from_user(&uapi, udata, sizeof(uapi)))
95ce4103b59b6a Alison Wang 2022-10-14 130 break;
95ce4103b59b6a Alison Wang 2022-10-14 131
68d267d8be8c72 Alison Wang 2022-09-27 132 dev_dbg(net->edev->dev,
68d267d8be8c72 Alison Wang 2022-09-27 133 "Network ioctl: Inference. ifm_fd=%u, ofm_fd=%u\n",
95ce4103b59b6a Alison Wang 2022-10-14 134 uapi.ifm_fd[0], uapi.ofm_fd[0]);
95ce4103b59b6a Alison Wang 2022-10-14 135
95ce4103b59b6a Alison Wang 2022-10-14 136 ret = ethosu_inference_create(net->edev, net, &uapi);
95ce4103b59b6a Alison Wang 2022-10-14 137 break;
95ce4103b59b6a Alison Wang 2022-10-14 138 }
95ce4103b59b6a Alison Wang 2022-10-14 139 default: {
95ce4103b59b6a Alison Wang 2022-10-14 140 dev_err(net->edev->dev, "Invalid ioctl. cmd=%u, arg=%lu",
95ce4103b59b6a Alison Wang 2022-10-14 141 cmd, arg);
95ce4103b59b6a Alison Wang 2022-10-14 142 break;
95ce4103b59b6a Alison Wang 2022-10-14 143 }
95ce4103b59b6a Alison Wang 2022-10-14 144 }
95ce4103b59b6a Alison Wang 2022-10-14 145
95ce4103b59b6a Alison Wang 2022-10-14 146 mutex_unlock(&net->edev->mutex);
95ce4103b59b6a Alison Wang 2022-10-14 147
95ce4103b59b6a Alison Wang 2022-10-14 148 return ret;
95ce4103b59b6a Alison Wang 2022-10-14 @149 }
95ce4103b59b6a Alison Wang 2022-10-14 150
:::::: The code at line 149 was first introduced by commit
:::::: 95ce4103b59b6af5d3c264fc137f9dd174e78d3e npu: ethosu: Add Arm ethos-u driver
:::::: TO: Alison Wang <alison.wang@nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong@nxp.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-15 17:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-15 17:20 [freescale-fslc:pr/629 3494/9838] drivers/staging/ethosu/ethosu_network.c:149:1: warning: the frame size of 1588 bytes is larger than 1024 bytes kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.