From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6826A1C1AC0; Tue, 8 Oct 2024 21:22:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728422535; cv=none; b=A/exI3VjmhpSKs/w6IVCSfWxg9l2WOEjNTPs96wwcQfV7sd7T4b0bHteeEZoZb/b/aLH/eEZXq//GGyonu/IZs4UMGRUIq/DKs1kSkvxV4hE+WNSVXo5oeuYa760sFssqW7wcSmVtYCNMmCalUejcIVMBwmDc8iatsLN5B4JdSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728422535; c=relaxed/simple; bh=Bh+xK+qKuAd2TI9AIJjUI6bTu6iXh0GH/7H0qsy207A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VaKG2gufKER+TuihH09E3N7egPLrjdVpkZndYMEgIvWt9xeoD0tuQMBdvLAUsEpElQ/4WbJOHZOrZWpzljutcnu7BxlR/S3omfzd2zScQkSf4RHI3qpToYdq76agQyhG4HSmcQfN7VMAUPH8YDLDhiIkCKM3Rlja/uRTIRU1p4w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kOrceErb; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kOrceErb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728422534; x=1759958534; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Bh+xK+qKuAd2TI9AIJjUI6bTu6iXh0GH/7H0qsy207A=; b=kOrceErbG3l6z8NRR5xskJvXhV+T+VxkK4jpP44hHHncFWLbCWsIOMo+ WJLCbZ/+I17RFxR2Ats8GbIfjbmtSBGLo5YssE2cBvy80FtWA1guzoE5R NftIxYIljo0S3r6EEKxWRtGECeP388yyb0LtUtDw7hxJ1J3tdH5NprjPL QwZ+4OxiOxRlQWuSf7KuHojVdSsRe9xlAyUz3kKFHEqQHvbc+Ik3bypwO tnl/VUyP0s6jgiA6x10FmT3BomvPM84aX0CRLgn5UuTjHCMiKkfQ+ncI2 o5OgE+1lwET7ECEJ7qTfd1WRDNzWDPGPU5LKrwNBayGvJlX6tghYMBbJl g==; X-CSE-ConnectionGUID: 0y2ckAE/Tj+WxllfWY0wCg== X-CSE-MsgGUID: p5r7juEPSLK3SmWf7gekTw== X-IronPort-AV: E=McAfee;i="6700,10204,11219"; a="53073593" X-IronPort-AV: E=Sophos;i="6.11,188,1725346800"; d="scan'208";a="53073593" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2024 14:22:13 -0700 X-CSE-ConnectionGUID: 1KAYVdPASCyWQ1zp5/xwPQ== X-CSE-MsgGUID: fDmfUm0jQ6C+6O/XAo1cZg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,188,1725346800"; d="scan'208";a="80573533" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 08 Oct 2024 14:22:10 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1syHei-0008OB-0O; Tue, 08 Oct 2024 21:22:08 +0000 Date: Wed, 9 Oct 2024 05:21:59 +0800 From: kernel test robot To: Ekansh Gupta , srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, gregkh@linuxfoundation.org, quic_bkumar@quicinc.com, linux-kernel@vger.kernel.org, quic_chennak@quicinc.com, dri-devel@lists.freedesktop.org, arnd@arndb.de Subject: Re: [PATCH v1 1/4] misc: fastrpc: Add CRC support using invokeV2 request Message-ID: <202410090402.lospEFvZ-lkp@intel.com> References: <20241007084518.3649876-2-quic_ekangupt@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241007084518.3649876-2-quic_ekangupt@quicinc.com> Hi Ekansh, kernel test robot noticed the following build warnings: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on char-misc/char-misc-next char-misc/char-misc-linus linus/master v6.12-rc2 next-20241008] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ekansh-Gupta/misc-fastrpc-Add-CRC-support-using-invokeV2-request/20241007-164734 base: char-misc/char-misc-testing patch link: https://lore.kernel.org/r/20241007084518.3649876-2-quic_ekangupt%40quicinc.com patch subject: [PATCH v1 1/4] misc: fastrpc: Add CRC support using invokeV2 request config: alpha-randconfig-r112-20241008 (https://download.01.org/0day-ci/archive/20241009/202410090402.lospEFvZ-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.3.0 reproduce: (https://download.01.org/0day-ci/archive/20241009/202410090402.lospEFvZ-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202410090402.lospEFvZ-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/misc/fastrpc.c:1696:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] args @@ got struct fastrpc_invoke_args *[assigned] args @@ drivers/misc/fastrpc.c:1696:19: sparse: expected unsigned long long [usertype] args drivers/misc/fastrpc.c:1696:19: sparse: got struct fastrpc_invoke_args *[assigned] args >> drivers/misc/fastrpc.c:1716:18: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const *objp @@ got unsigned long long [addressable] [usertype] args @@ drivers/misc/fastrpc.c:1716:18: sparse: expected void const *objp drivers/misc/fastrpc.c:1716:18: sparse: got unsigned long long [addressable] [usertype] args drivers/misc/fastrpc.c:1734:23: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const *objp @@ got unsigned long long [addressable] [usertype] args @@ drivers/misc/fastrpc.c:1734:23: sparse: expected void const *objp drivers/misc/fastrpc.c:1734:23: sparse: got unsigned long long [addressable] [usertype] args drivers/misc/fastrpc.c: note: in included file (through include/linux/swait.h, include/linux/completion.h): include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true vim +1696 drivers/misc/fastrpc.c 1677 1678 static int fastrpc_copy_args(struct fastrpc_invoke *inv) 1679 { 1680 struct fastrpc_invoke_args *args = NULL; 1681 u32 nscalars; 1682 1683 /* nscalars is truncated here to max supported value */ 1684 nscalars = REMOTE_SCALARS_LENGTH(inv->sc); 1685 if (nscalars) { 1686 args = kcalloc(nscalars, sizeof(*args), GFP_KERNEL); 1687 if (!args) 1688 return -ENOMEM; 1689 1690 if (copy_from_user(args, (void __user *)(uintptr_t)inv->args, 1691 nscalars * sizeof(*args))) { 1692 kfree(args); 1693 return -EFAULT; 1694 } 1695 } > 1696 inv->args = args; 1697 1698 return 0; 1699 } 1700 1701 static int fastrpc_invoke(struct fastrpc_user *fl, char __user *argp) 1702 { 1703 struct fastrpc_invoke_v2 ioctl = {0}; 1704 struct fastrpc_invoke inv; 1705 int err; 1706 1707 if (copy_from_user(&inv, argp, sizeof(inv))) 1708 return -EFAULT; 1709 1710 err = fastrpc_copy_args(&inv); 1711 if (err) 1712 return err; 1713 1714 ioctl.inv = inv; 1715 err = fastrpc_internal_invoke(fl, false, &ioctl); > 1716 kfree(inv.args); 1717 1718 return err; 1719 } 1720 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki