Content-Type: multipart/mixed; boundary="===============0697801893469517168==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 2/2] fsi: sbefifo: implement FSI_SBEFIFO_READ_TIMEOUT ioctl Date: Wed, 15 Dec 2021 15:41:38 +0800 Message-ID: <202112151543.C2qA1wIs-lkp@intel.com> In-Reply-To: <20211215005833.222841-2-amitay@ozlabs.org> List-Id: --===============0697801893469517168== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Amitay, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linux/master] [also build test WARNING on linus/master v5.16-rc5 next-20211214] [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/Amitay-Isaacs/fsi-sbefifo-= Use-specified-value-of-start-of-response-timeout/20211215-090038 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = 136057256686de39cc3a07c2e39ef6bc43003ff6 config: h8300-randconfig-s032-20211214 (https://download.01.org/0day-ci/arc= hive/20211215/202112151543.C2qA1wIs-lkp(a)intel.com/config) compiler: h8300-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/0day-ci/linux/commit/abe81bc06079f76e9a9f4ebe6= cc0a963ee5b6985 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Amitay-Isaacs/fsi-sbefifo-Use-spec= ified-value-of-start-of-response-timeout/20211215-090038 git checkout abe81bc06079f76e9a9f4ebe6cc0a963ee5b6985 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH=3Dh= 8300 SHELL=3D/bin/bash drivers/fsi/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/fsi/fsi-sbefifo.c:956:31: sparse: sparse: incorrect type in init= ializer (different address spaces) @@ expected void [noderef] __user **= argp @@ got void [noderef] __user * @@ drivers/fsi/fsi-sbefifo.c:956:31: sparse: expected void [noderef] __= user **argp drivers/fsi/fsi-sbefifo.c:956:31: sparse: got void [noderef] __user * vim +956 drivers/fsi/fsi-sbefifo.c 952 = 953 static long sbefifo_user_ioctl(struct file *file, unsigned int cmd, = unsigned long arg) 954 { 955 struct sbefifo_user *user =3D file->private_data; > 956 void __user **argp =3D (void __user *)arg; 957 int rc =3D -ENOTTY; 958 = 959 if (!user) 960 return -EINVAL; 961 = 962 mutex_lock(&user->file_lock); 963 switch (cmd) { 964 case FSI_SBEFIFO_READ_TIMEOUT: 965 rc =3D sbefifo_read_timeout(user, argp); 966 break; 967 } 968 mutex_unlock(&user->file_lock); 969 return rc; 970 } 971 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0697801893469517168==--