From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EE10E10F1; Wed, 17 Sep 2025 06:27:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758090446; cv=none; b=SfLImPgPtRXOnVnVxUs7LvYzOTNi27e8Y6OQbc5a5bC8M2zGd7eLS5qhJRFC7aDX81e+1xWkpkxfk8hKrggni8R4DybzXXMsH59ITRdAEBf4VhuUeOdRTjL8366eRIonhOZrouksr8oOgDL2+oX80D4qY7ifZ7hA/9X/7Gp+pTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758090446; c=relaxed/simple; bh=utQYoc9TvKbBmAYxN3ZwWDjmnIsm3PfZ9d0qVdpAzJ4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TDUel5aEwyKzhegPTwWsvvrLuls4mixPoQxXrqPYn97fsC7Odt8rZE9sZU4O/3nStKGIZo9zOrXys2+MzjryEomQrC15IW3cCxcCUFI9bmbQEroPPYdYrIRa8MmH7e2lLeCl24m9CygzyCV9GFXtJ400uChGJQrMF4cgHWvi4eE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TCe2yhma; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TCe2yhma" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12B47C4CEF0; Wed, 17 Sep 2025 06:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758090445; bh=utQYoc9TvKbBmAYxN3ZwWDjmnIsm3PfZ9d0qVdpAzJ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TCe2yhmaqguYsu83tPrOSFI9FRrptfflH0ZiOod99Tk9oPx6kEUi3vlxDllcD6QZA 3s1Gj0jW1v1FJskd4TG8zYtg7CO64XsgqAw6BAKPYsb48Dgg1kzn852hHYBjIth1xW kXiY9A8hM/68a4dauB6o2d+UlFrraB4HloDnCALdH4X/BLsFDH4ChRZpnoEvgCx6UE aCiDhsaIth5rP9nvNvmIm2952PIQSa9R20S7zJ1W59osv3YBdgtClFfCtqJZr85dK0 cQEBRyNh32LO/zAJkMSGOIT+qPkZsLgQi104TIKv+e4YiB65wDmSqyKcjs6Xac/99m a892uAXCId7+Q== Date: Wed, 17 Sep 2025 09:27:22 +0300 From: Leon Romanovsky To: kernel test robot Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Marek Szyprowski , Jason Gunthorpe Subject: Re: [linux-next:master 7677/9696] mm/kmsan/hooks.c:372:6: error: too many arguments to function call, expected 3, have 4 Message-ID: <20250917062722.GA9072@unreal> References: <202509170638.AMGNCMEE-lkp@intel.com> <20250917061905.GA6464@unreal> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250917061905.GA6464@unreal> On Wed, Sep 17, 2025 at 09:19:05AM +0300, Leon Romanovsky wrote: > On Wed, Sep 17, 2025 at 06:15:12AM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 05af764719214d6568adb55c8749dec295228da8 > > commit: 6eb1e769b2c13a33cb2ca694454a7561d3d72c0a [7677/9696] kmsan: convert kmsan_handle_dma to use physical addresses > > I think that it is old report. > The commit in the DMA tree has different SHA and correct kmsan_handle_dma() callers: > b420b31f009f ("kmsan: convert kmsan_handle_dma to use physical addresses") Ohh, I found it, sending the fix. Thanks for the report. > > Thanks > > > config: x86_64-buildonly-randconfig-002-20250917 (https://download.01.org/0day-ci/archive/20250917/202509170638.AMGNCMEE-lkp@intel.com/config) > > compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250917/202509170638.AMGNCMEE-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/202509170638.AMGNCMEE-lkp@intel.com/ > > > > All errors (new ones prefixed by >>): > > > > >> mm/kmsan/hooks.c:372:6: error: too many arguments to function call, expected 3, have 4 > > 371 | kmsan_handle_dma(sg_page(item), item->offset, item->length, > > | ~~~~~~~~~~~~~~~~ > > 372 | dir); > > | ^~~ > > mm/kmsan/hooks.c:362:19: note: 'kmsan_handle_dma' declared here > > 362 | EXPORT_SYMBOL_GPL(kmsan_handle_dma); > > | ^~~~~~~~~~~~~~~~ > > include/linux/export.h:90:48: note: expanded from macro 'EXPORT_SYMBOL_GPL' > > 90 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL") > > | ^~~ > > include/linux/export.h:86:54: note: expanded from macro '_EXPORT_SYMBOL' > > 86 | #define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "") > > | ^~~ > > include/linux/export.h:76:21: note: expanded from macro '__EXPORT_SYMBOL' > > 76 | extern typeof(sym) sym; \ > > | ^~~ > > 1 error generated. > > > > > > vim +372 mm/kmsan/hooks.c > > > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 363 > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 364 void kmsan_handle_dma_sg(struct scatterlist *sg, int nents, > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 365 enum dma_data_direction dir) > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 366 { > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 367 struct scatterlist *item; > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 368 int i; > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 369 > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 370 for_each_sg(sg, item, nents, i) > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 371 kmsan_handle_dma(sg_page(item), item->offset, item->length, > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 @372 dir); > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 373 } > > 7ade4f10779cb4 Alexander Potapenko 2022-09-15 374 > > > > :::::: The code at line 372 was first introduced by commit > > :::::: 7ade4f10779cb46f5c29ced9b7a41f68501cf0ed dma: kmsan: unpoison DMA mappings > > > > :::::: TO: Alexander Potapenko > > :::::: CC: Andrew Morton > > > > -- > > 0-DAY CI Kernel Test Service > > https://github.com/intel/lkp-tests/wiki