Hi Jeffrey,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on soc/for-next linus/master v5.7-rc6 next-20200518]
[cannot apply to linux/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Jeffrey-Hugo/Qualcomm-Cloud-AI-1...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
57c76221d5af648c8355a55c09b050c5d8d38189
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/misc/qaic/qaic_drv.c: In function 'qaic_ioctl':
> drivers/misc/qaic/qaic_drv.c:150:2: error: case label does not
reduce to an integer constant
150 | case QAIC_IOCTL_MANAGE:
| ^~~~
drivers/misc/qaic/qaic_drv.c: At top level:
drivers/misc/qaic/qaic_drv.c:220:6: warning: no previous prototype for
'qaic_dev_reset_clean_local_state' [-Wmissing-prototypes]
220 | void qaic_dev_reset_clean_local_state(struct qaic_device *qdev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +150 drivers/misc/qaic/qaic_drv.c
127
128 static long qaic_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
129 {
130 struct qaic_user *usr = filp->private_data;
131 struct qaic_device *qdev = usr->qdev;
132 int qdev_rcu_id;
133 int usr_rcu_id;
134 int ret;
135
136 usr_rcu_id = srcu_read_lock(&usr->qdev_lock);
137 if (!qdev) {
138 srcu_read_unlock(&usr->qdev_lock, usr_rcu_id);
139 return -ENODEV;
140 }
141
142 qdev_rcu_id = srcu_read_lock(&qdev->dev_lock);
143 if (qdev->in_reset) {
144 srcu_read_unlock(&qdev->dev_lock, qdev_rcu_id);
145 srcu_read_unlock(&usr->qdev_lock, usr_rcu_id);
146 return -ENODEV;
147 }
148
149 switch (cmd) {
150 case QAIC_IOCTL_MANAGE:
151 ret =
qaic_manage_ioctl(qdev, usr, arg);
152 break;
153 default:
154 ret = -ENOTTY;
155 }
156
157 srcu_read_unlock(&qdev->dev_lock, qdev_rcu_id);
158 srcu_read_unlock(&usr->qdev_lock, usr_rcu_id);
159 return ret;
160 }
161
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org