Content-Type: multipart/mixed; boundary="===============4164389643758523417==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 1/2] uio: add ioctl to uio Date: Thu, 17 Feb 2022 14:55:47 +0800 Message-ID: <202202171444.RSO1up2n-lkp@intel.com> In-Reply-To: <1645064962-94123-1-git-send-email-kanie@linux.alibaba.com> List-Id: --===============4164389643758523417== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Guixin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on mkp-scsi/for-next linux/master linus/master v5.= 17-rc4 next-20220216] [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/Guixin-Liu/uio-add-ioctl-t= o-uio/20220217-103120 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.gi= t e6cb9c167eeb8f90ab924666c573e69e85e700a0 config: arc-randconfig-r035-20220217 (https://download.01.org/0day-ci/archi= ve/20220217/202202171444.RSO1up2n-lkp(a)intel.com/config) compiler: arc-elf-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/8786f129af888d844bc38ed78= db7a6788e45655c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Guixin-Liu/uio-add-ioctl-to-uio/20= 220217-103120 git checkout 8786f129af888d844bc38ed78db7a6788e45655c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darc SHELL=3D/bin/bash drivers/uio/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/uio/uio.c:818:6: warning: no previous prototype for 'uio_ioctl' = [-Wmissing-prototypes] 818 | long uio_ioctl(struct file *filep, unsigned int cmd, unsigned lo= ng arg) | ^~~~~~~~~ vim +/uio_ioctl +818 drivers/uio/uio.c 817 = > 818 long uio_ioctl(struct file *filep, unsigned int cmd, unsigned long a= rg) 819 { 820 struct uio_listener *listener =3D filep->private_data; 821 struct uio_device *idev =3D listener->dev; 822 long retval =3D 0; 823 = 824 mutex_lock(&idev->info_lock); 825 if (!idev->info || !idev->info->ioctl) { 826 retval =3D -EINVAL; 827 goto out; 828 } 829 = 830 retval =3D idev->info->ioctl(idev->info, cmd, arg); 831 out: 832 mutex_unlock(&idev->info_lock); 833 return retval; 834 } 835 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4164389643758523417==--