From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE4E8D637DF for ; Thu, 14 Nov 2024 04:20:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 59A696B0082; Wed, 13 Nov 2024 23:20:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 54ACA6B0088; Wed, 13 Nov 2024 23:20:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 412C86B0089; Wed, 13 Nov 2024 23:20:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 20B196B0088 for ; Wed, 13 Nov 2024 23:20:50 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id C245C1A038F for ; Thu, 14 Nov 2024 04:20:49 +0000 (UTC) X-FDA: 82783399062.11.A298E6E Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by imf28.hostedemail.com (Postfix) with ESMTP id 73F65C024C for ; Thu, 14 Nov 2024 04:20:02 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DLE0atj7; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731557870; a=rsa-sha256; cv=none; b=INj0YMF+RxK9a7NHbDpRiwPYMpxrKnR3eLT0sYVcpI8Ur2o/wv2OlIdYUJkO38cVmFYQJs HjqIvI4OHaY0A3yBIeWpjuZDu2TC704PKwUBeT3c2dmoRXqGDun9KscsxkJpMvlAi3lmUX Tx1zajZTpO3a3zsjC0S2YRuXZ1O6rP4= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DLE0atj7; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731557870; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=kJIhIpxdtwW4zgqlndLmprbweYQq3kOOZUPfVAMTwDE=; b=24bUZYnUMK26TyLuEQj56bgwnl1ERVRrLAPHoU2FeyX0z3nGNqOxSEcV9v6kxmQSlvTHVe B5pDwjb7Jq0yRoFfp1Fa3ZfRID2E1QFW+MlHkKYUWFSOK6sibyXr0Ip7W+sNSYePM25IC8 t0z1+Y+a4ClgYlSjdPbV0uu0cE1rpik= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1731558047; x=1763094047; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YVIWZls2hfJ7VYSlPL8sAB0nPPFY4ogRaKErX/qfjPU=; b=DLE0atj7oHr9nx7G9Ro7kJYjRvtkiE5uDi7d5d8EFcl3oAazP1hC+iJ/ WSogfKs/UcnDl6WUYemFrVUrDFTDbzh0akDyUA3v9E8G20YTZq7nigYgo 1K1ZhE0M2jdrdlrMXLY3DzcC1Riywbp/wyCQMZB8B4ddm+lCKCjqI+rlD nTd77TW63YLKHAn02uRfdl41hNxgS9NiiXAskoYW2g6DXdPpyNk8scNZw DT+W+uMEjsQAyJtrxVzc+cV5ONlcvAz/EX4wB9elNx4rO+GPhcyf83uWX ttNnnJ8O2uEukHA+8Lpo9yqJpgiTedMHv4lI8Zo4xV7aLUeJcT45HkS78 A==; X-CSE-ConnectionGUID: cubnx5/wT6iFCge8j6Zfcw== X-CSE-MsgGUID: wTwAH11sRdKqprnFBVE93w== X-IronPort-AV: E=McAfee;i="6700,10204,11255"; a="35407491" X-IronPort-AV: E=Sophos;i="6.12,153,1728975600"; d="scan'208";a="35407491" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2024 20:20:45 -0800 X-CSE-ConnectionGUID: UrnCjMjPTr2ogMm3HDdJkA== X-CSE-MsgGUID: B5mR+kraRmOUlR81jExqDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,153,1728975600"; d="scan'208";a="92875745" Received: from lkp-server01.sh.intel.com (HELO b014a344d658) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 13 Nov 2024 20:20:43 -0800 Received: from kbuild by b014a344d658 with local (Exim 4.96) (envelope-from ) id 1tBRLU-00006X-1t; Thu, 14 Nov 2024 04:20:40 +0000 Date: Thu, 14 Nov 2024 12:20:23 +0800 From: kernel test robot To: Michal Wajdeczko , intel-xe@lists.freedesktop.org Cc: oe-kbuild-all@lists.linux.dev, Michal Wajdeczko , Matthew Wilcox , Alexander Viro , Andrew Morton , Linux Memory Management List , Rodrigo Vivi , Matthew Brost , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 1/4] iov_iter: Provide copy_iomem_to|from_iter() Message-ID: <202411141227.4kDiZIXM-lkp@intel.com> References: <20241112200454.2211-2-michal.wajdeczko@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241112200454.2211-2-michal.wajdeczko@intel.com> X-Stat-Signature: uwce68u5qjiefxdge9dunfre7emy7jee X-Rspamd-Queue-Id: 73F65C024C X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83zRphfYP0EnPXHW1vAMh7wpPwjO0yrMIhWjruwOlmLNNYcgyV4fqeW6de9ra1s0hRLIC/PUAabqMDbj4XCShItTidCbOe7MDbTBW0GRInFIO13quJ7doMSf6BZLlBIb747vC54gD0LpZuueEuLVuPYwiu1m8XEPQbAkPQjLzGGyETOpdRLUo7ftIqM8BTNphwJCGLLV2DVOxZmqon2WdE3X3NFO1Q0LmrD1E6aJ8PVNjpUKgX0IDto2WAfF2iYeUSqzdatbpGinCRh/Lsy2Pw8I20SG/QH+w/7cZ7V2T50ft+Gt4dZoAt0Q12VAlr+fYSNZV+4SCOLc/G20PnExLJ+91cyNCQ8D/ZEvE8qyPEteQEQlIpYFmDz0eqhRu2+ejABX0ui+4NkoJiVjv0I7QA7oMzdfcxxh+RcpXM5LCjx2UQ8g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Michal, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-xe/drm-xe-next] [also build test WARNING on brauner-vfs/vfs.all akpm-mm/mm-nonmm-unstable linus/master v6.12-rc7 next-20241113] [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/Michal-Wajdeczko/iov_iter-Provide-copy_iomem_to-from_iter/20241113-080831 base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next patch link: https://lore.kernel.org/r/20241112200454.2211-2-michal.wajdeczko%40intel.com patch subject: [PATCH v2 1/4] iov_iter: Provide copy_iomem_to|from_iter() config: arm-randconfig-r113-20241113 (https://download.01.org/0day-ci/archive/20241114/202411141227.4kDiZIXM-lkp@intel.com/config) compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6) reproduce: (https://download.01.org/0day-ci/archive/20241114/202411141227.4kDiZIXM-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/202411141227.4kDiZIXM-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) lib/iov_iter.c:373:47: sparse: sparse: cast removes address space '__iomem' of expression lib/iov_iter.c:386:47: sparse: sparse: cast removes address space '__iomem' of expression >> lib/iov_iter.c:349:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *from @@ got void * @@ lib/iov_iter.c:349:9: sparse: expected void const volatile [noderef] __iomem *from lib/iov_iter.c:349:9: sparse: got void * lib/iov_iter.c:330:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *from @@ got void * @@ lib/iov_iter.c:330:9: sparse: expected void const volatile [noderef] __iomem *from lib/iov_iter.c:330:9: sparse: got void * >> lib/iov_iter.c:362:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *to @@ got void *to @@ lib/iov_iter.c:362:9: sparse: expected void volatile [noderef] __iomem *to lib/iov_iter.c:362:9: sparse: got void *to >> lib/iov_iter.c:338:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *to @@ got void * @@ lib/iov_iter.c:338:9: sparse: expected void volatile [noderef] __iomem *to lib/iov_iter.c:338:9: sparse: got void * vim +349 lib/iov_iter.c 333 334 static __always_inline 335 size_t memcpy_iomem_from_iter(void *iter_from, size_t progress, size_t len, 336 void *to, void *priv2) 337 { > 338 memcpy_toio(to + progress, iter_from, len); 339 return 0; 340 } 341 342 static __always_inline 343 size_t copy_iomem_to_user_iter(void __user *iter_to, size_t progress, 344 size_t len, void *from, void *priv2) 345 { 346 unsigned char buf[SMP_CACHE_BYTES]; 347 size_t chunk = min(len, sizeof(buf)); 348 > 349 memcpy_fromio(buf, from + progress, chunk); 350 chunk -= copy_to_user_iter(iter_to, progress, chunk, buf, priv2); 351 return len - chunk; 352 } 353 354 static __always_inline 355 size_t copy_iomem_from_user_iter(void __user *iter_from, size_t progress, 356 size_t len, void *to, void *priv2) 357 { 358 unsigned char buf[SMP_CACHE_BYTES]; 359 size_t chunk = min(len, sizeof(buf)); 360 361 chunk -= copy_from_user_iter(iter_from, progress, chunk, buf, priv2); > 362 memcpy_toio(to, buf, chunk); 363 return len - chunk; 364 } 365 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki