From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 D4E938480; Sun, 10 Mar 2024 07:20:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710055207; cv=none; b=VN0QpDMaaYRE7hnrYFgzrmYHP1FitE/NNT4JEwhDa/z6zZJVwL6ci2VXrMX8UNG+PFm7xHKtlKIAZAvf63dv2IQ7YtnWacu/dScsLbgbx8XRLXXSW+KONI22biIBPnXXsRuoq+as9tUpGGr224/9WeC46XqbBMIKxMrNPK8DtBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710055207; c=relaxed/simple; bh=3EhUpcpxd3ve1kIYZvxRqF4hsYotNnSxvjMRam9Xd/0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=joV0jMnMzQCfR6nhLCmBCN4mu1mDoZOkL6V/JXFJjiTD9c+Iv0qwQXz6JX/peGcFMML44nNiaSlTQFWU+ofBcVdW4TbtWkvp/78epa+/6KNPrPoigCRO6/jm9Ict6dBnqJtiHVMZhjR6ECi+pDeSpdig8pU3TfXKf5OGCa+g0v4= 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=BUKVWLmK; arc=none smtp.client-ip=192.198.163.11 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="BUKVWLmK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710055204; x=1741591204; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3EhUpcpxd3ve1kIYZvxRqF4hsYotNnSxvjMRam9Xd/0=; b=BUKVWLmK/d0svGpQf+vH7oJmOzQYX6MAom3MC6VG2FOYQYISRLEw2bXl RfGuqEtyUPHKjR7bKSoL1u31T7sldm+pFXjJhZAe22cecDMFT+Jvq6vZ2 am7a/pxVx2JEotF3Mprrw61C7Pm+jfDPJEI6sWMgC8kGiSWQZ9RxusIbs JhO9a18gIG+W2sHxdL7U5y37/hlfCBvr3QTGr5Z2oQVO3MvwkncEhWrDF mbb7WKBZSSlIrethhL3TzGuu/5pHTq/Awxe8XmCIX+RsQJIevoBpN9bvI XwBDO6Og4ochFv0BfVdJ7uuGdxD07Wo2rTMbriO9QZ9mPsGppk5zDVcCl w==; X-IronPort-AV: E=McAfee;i="6600,9927,11008"; a="15376857" X-IronPort-AV: E=Sophos;i="6.07,114,1708416000"; d="scan'208";a="15376857" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2024 23:20:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,114,1708416000"; d="scan'208";a="10747039" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 09 Mar 2024 23:19:59 -0800 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1rjDTQ-00083D-2E; Sun, 10 Mar 2024 07:19:56 +0000 Date: Sun, 10 Mar 2024 15:19:56 +0800 From: kernel test robot To: Paul Cercueil , Jonathan Cameron , Christian =?iso-8859-1?Q?K=F6nig?= , Jonathan Corbet , Lars-Peter Clausen , Vinod Koul , Sumit Semwal Cc: oe-kbuild-all@lists.linux.dev, Nuno Sa , Michael Hennerich , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Paul Cercueil Subject: Re: [PATCH v8 3/6] iio: core: Add new DMABUF interface infrastructure Message-ID: <202403101535.uRqo6AIt-lkp@intel.com> References: <20240308170046.92899-4-paul@crapouillou.net> Precedence: bulk X-Mailing-List: linux-doc@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: <20240308170046.92899-4-paul@crapouillou.net> Hi Paul, kernel test robot noticed the following build warnings: [auto build test WARNING on jic23-iio/togreg] [also build test WARNING on vkoul-dmaengine/next lwn/docs-next linus/master v6.8-rc7 next-20240308] [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/Paul-Cercueil/dmaengine-Add-API-function-dmaengine_prep_peripheral_dma_vec/20240309-010421 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/20240308170046.92899-4-paul%40crapouillou.net patch subject: [PATCH v8 3/6] iio: core: Add new DMABUF interface infrastructure config: i386-randconfig-062-20240309 (https://download.01.org/0day-ci/archive/20240310/202403101535.uRqo6AIt-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240310/202403101535.uRqo6AIt-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/202403101535.uRqo6AIt-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/iio/industrialio-buffer.c:1765:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got int *user_req @@ drivers/iio/industrialio-buffer.c:1765:40: sparse: expected void const [noderef] __user *from drivers/iio/industrialio-buffer.c:1765:40: sparse: got int *user_req >> drivers/iio/industrialio-buffer.c:1988:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected int *user_req @@ got void [noderef] __user *_arg @@ drivers/iio/industrialio-buffer.c:1988:53: sparse: expected int *user_req drivers/iio/industrialio-buffer.c:1988:53: sparse: got void [noderef] __user *_arg drivers/iio/industrialio-buffer.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...): include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false vim +1765 drivers/iio/industrialio-buffer.c 1755 1756 static int iio_buffer_detach_dmabuf(struct iio_dev_buffer_pair *ib, 1757 int *user_req, bool nonblock) 1758 { 1759 struct iio_buffer *buffer = ib->buffer; 1760 struct iio_dev *indio_dev = ib->indio_dev; 1761 struct iio_dmabuf_priv *priv; 1762 struct dma_buf *dmabuf; 1763 int dmabuf_fd, ret = -EPERM; 1764 > 1765 if (copy_from_user(&dmabuf_fd, user_req, sizeof(dmabuf_fd))) 1766 return -EFAULT; 1767 1768 dmabuf = dma_buf_get(dmabuf_fd); 1769 if (IS_ERR(dmabuf)) 1770 return PTR_ERR(dmabuf); 1771 1772 mutex_lock(&buffer->dmabufs_mutex); 1773 1774 list_for_each_entry(priv, &buffer->dmabufs, entry) { 1775 if (priv->attach->dev == indio_dev->dev.parent 1776 && priv->attach->dmabuf == dmabuf) { 1777 list_del(&priv->entry); 1778 1779 /* Unref the reference from iio_buffer_attach_dmabuf() */ 1780 iio_buffer_dmabuf_put(priv->attach); 1781 ret = 0; 1782 break; 1783 } 1784 } 1785 1786 mutex_unlock(&buffer->dmabufs_mutex); 1787 dma_buf_put(dmabuf); 1788 1789 return ret; 1790 } 1791 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki