Hi Zhou, I love your patch! Perhaps something to improve: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on soc/for-next linux/master linus/master v5.11-rc4 next-20210120] [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] url: https://github.com/0day-ci/linux/commits/Zhou-Wang/uacce-Add-uacce_ctrl-misc-device/20210121-172139 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git f6f1f8e6e3eea25f539105d48166e91f0ab46dd1 config: nios2-randconfig-r023-20210121 (attached as .config) compiler: nios2-linux-gcc (GCC) 9.3.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/0day-ci/linux/commit/4dc40d891a7e60ed79e6b9460a38a142d3d1a965 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Zhou-Wang/uacce-Add-uacce_ctrl-misc-device/20210121-172139 git checkout 4dc40d891a7e60ed79e6b9460a38a142d3d1a965 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> drivers/misc/uacce/uacce.c:511:5: warning: no previous prototype for 'uacce_ctrl_open' [-Wmissing-prototypes] 511 | int uacce_ctrl_open(struct inode *inode, struct file *file) | ^~~~~~~~~~~~~~~ >> drivers/misc/uacce/uacce.c:525:5: warning: no previous prototype for 'uacce_ctrl_release' [-Wmissing-prototypes] 525 | int uacce_ctrl_release(struct inode *inode, struct file *file) | ^~~~~~~~~~~~~~~~~~ drivers/misc/uacce/uacce.c: In function 'uacce_ctrl_unl_ioctl': drivers/misc/uacce/uacce.c:626:6: warning: unused variable 'ret' [-Wunused-variable] 626 | int ret; | ^~~ vim +/uacce_ctrl_open +511 drivers/misc/uacce/uacce.c 510 > 511 int uacce_ctrl_open(struct inode *inode, struct file *file) 512 { 513 struct uacce_pin_container *p; 514 515 p = kzalloc(sizeof(*p), GFP_KERNEL); 516 if (!p) 517 return -ENOMEM; 518 file->private_data = p; 519 520 xa_init(&p->array); 521 522 return 0; 523 } 524 > 525 int uacce_ctrl_release(struct inode *inode, struct file *file) 526 { 527 struct uacce_pin_container *priv = file->private_data; 528 struct pin_pages *p; 529 unsigned long idx; 530 531 xa_for_each(&priv->array, idx, p) { 532 unpin_user_pages(p->pages, p->nr_pages); 533 xa_erase(&priv->array, p->first); 534 vfree(p->pages); 535 kfree(p); 536 } 537 538 xa_destroy(&priv->array); 539 kfree(priv); 540 541 return 0; 542 } 543 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip