Received: by 2002:ab2:c01:0:b0:1ef:a04a:229c with SMTP id b1csp11347lqb; Sat, 9 Mar 2024 23:20:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXXZ3ZUw3EltpU31Ad3OzVYRYQc02mbP8WtKM30t4JuxPSX6yvGEmxt3wARBmjaLShAg9e2iARj3RYXDNJTAYYjBxW83XyaJgdPUCXU9w== X-Google-Smtp-Source: AGHT+IGE135sak3GMkgQWSa0cDdaAiBlPgv6HZLECs8xGCey6OTyFDMnSHsk633yLu8fCiHtOtsA X-Received: by 2002:a05:6e02:965:b0:366:42ee:3ea9 with SMTP id q5-20020a056e02096500b0036642ee3ea9mr2043866ilt.22.1710055220007; Sat, 09 Mar 2024 23:20:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710055219; cv=pass; d=google.com; s=arc-20160816; b=Mwzpo8VZC9/tdkNe0ZIjKoQm3uhXuiVQ6xT15vC02ikEhaS2msZG5DkdOwMA8PMdgP /CeeVPYVoKM4B/W3Ei++bzSZw8Fp9G5DntCujOr2FZz9LQPzNnlM7StUkGtABCc2yc9k YzJXiuXe0GugdWjgtAqroOiQtfP5Dyhgi0wsYD7cHpJbZ2Uol9PQKMVSdP9RWBjILzN3 iBbT9MSiigSolofC0IMWY7N4L3Qj4dUo0c5iBNg2uHracT84LsGDSjSNNENe9nQXLUbe VfszEeEWhgaIZruj130xKT6eJdH1PSwjjRvAugVfyd2AoZCAnnP88RBInsmSw7HrGBLe 3+LA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YWInrB/TFqy49zY2Y7KlOpCzV4hxxyyvlubXeL+ZoDk=; fh=FUA3LcRlm/8E0FA5zBAtxK6iUNFMG4XOTto0GH5B3b4=; b=04blG47mDFsagrMiFhcdBJfGKgnNaQxwqPAcxB6xEL1zoF6nYv625KtOqnw5dv2E8n wIHIcPVCwHVNV0MlJ++NOpTIl8m9G2lALbqueciKnuxf+sJRtYYUejLnadvVoY805UM8 RaTkHE694xZUib1dNDCdEnjzBVlpJZ8zAzZmT+ywc+zrDSKvNTNLZXAUPiQbCW9iU6mf t1XhpkEPdCl835GyXeq1lW4yIv4pAtABPSe2x0nRstzTqyhR4jEYxAtv1+aENmpmaXvn i57W4GVJQQJwluZPuGy3GiYb04lz7f2ssegIedyxfEFK1p7lZwKLHVxyLrLm25/NCOJI PRpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BUKVWLmK; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-98144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q28-20020a63f95c000000b005d3f4474fddsi2746367pgk.167.2024.03.09.23.20.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 23:20:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BUKVWLmK; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-98144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9DE38283323 for ; Sun, 10 Mar 2024 07:20:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62C3D17745; Sun, 10 Mar 2024 07:20:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BUKVWLmK" 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 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-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: <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