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 CBEB8C433EF for ; Mon, 28 Feb 2022 17:35:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 548458D0003; Mon, 28 Feb 2022 12:35:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4F7C18D0001; Mon, 28 Feb 2022 12:35:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3BEF58D0003; Mon, 28 Feb 2022 12:35:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id 2F8E68D0001 for ; Mon, 28 Feb 2022 12:35:23 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 0291F208AD for ; Mon, 28 Feb 2022 17:35:22 +0000 (UTC) X-FDA: 79192890126.03.69B0ADA Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf27.hostedemail.com (Postfix) with ESMTP id 9E5D240006 for ; Mon, 28 Feb 2022 17:35:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646069721; x=1677605721; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4h1YWtV6F2Q6sNCl+7xob39bvg1TMmI6b4u3dRROqA4=; b=AWVfydQ9I+OjocR1iItIbdMMfGcyKJu9zgNxwbcvJycQugROckayQmOg dtpbzFgkV3GV2Ro+QVxiIyIRl1VUB5XsZwv5GCYPELBLbYVEXxbnWlTc3 DsiT/ORMQsg/1bTLb/E4YeKw8GmjRcUtOm397tT/0AiAC4W3+3t3cjG57 Qvim+Ydi02ATUtKjhXXH85V6zFPXmW3iemS3P8Wf3Tr/JqJttveDB2PRP H2+Q2ezt/BZ3Pju+F/bFEW61hLtjY6pZcklmZu7g2KNlxR6rOkPaMhQbe K2RJUeSYqbzb6GUZCpKFjKYlLlBG/BkMgPiyODM3AQ79ekbiC1RVi5ayR w==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="277599711" X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="277599711" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2022 09:35:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="608524532" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 28 Feb 2022 09:35:14 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nOjvW-0007ZL-5q; Mon, 28 Feb 2022 17:35:14 +0000 Date: Tue, 1 Mar 2022 01:35:10 +0800 From: kernel test robot To: Muchun Song , dan.j.williams@intel.com, willy@infradead.org, jack@suse.cz, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, apopple@nvidia.com, shy828301@gmail.com, rcampbell@nvidia.com, hughd@google.com, xiyuyang19@fudan.edu.cn, kirill.shutemov@linux.intel.com, zwisler@kernel.org, hch@infradead.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-fsdevel@vger.kernel.org, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org, duanxiongchun@bytedance.com, smuchun@gmail.com, Muchun Song Subject: Re: [PATCH v3 4/6] mm: pvmw: add support for walking devmap pages Message-ID: <202202281913.ZakSkynK-lkp@intel.com> References: <20220228063536.24911-5-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220228063536.24911-5-songmuchun@bytedance.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 9E5D240006 X-Rspam-User: Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AWVfydQ9; spf=none (imf27.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: 3gg3wxbs834radmd9j3aqg9596ekgxxx X-HE-Tag: 1646069721-28835 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: Hi Muchun, Thank you for the patch! Yet something to improve: [auto build test ERROR on hnaz-mm/master] [also build test ERROR on next-20220225] [cannot apply to linus/master v5.17-rc6] [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] url: https://github.com/0day-ci/linux/commits/Muchun-Song/Fix-some-bugs-related-to-ramp-and-dax/20220228-143753 base: https://github.com/hnaz/linux-mm master config: riscv-randconfig-r012-20220227 (https://download.01.org/0day-ci/archive/20220228/202202281913.ZakSkynK-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/0day-ci/linux/commit/4b08af172f30c61ae5f43ec23642e2767371247e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Muchun-Song/Fix-some-bugs-related-to-ramp-and-dax/20220228-143753 git checkout 4b08af172f30c61ae5f43ec23642e2767371247e # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> mm/page_vma_mapped.c:113:13: error: call to __compiletime_assert_258 declared with 'error' attribute: BUILD_BUG failed if ((pfn + HPAGE_PMD_NR - 1) < pvmw->pfn) ^ include/linux/huge_mm.h:105:26: note: expanded from macro 'HPAGE_PMD_NR' #define HPAGE_PMD_NR (1<:73:1: note: expanded from here __compiletime_assert_258 ^ 1 error generated. vim +/error +113 mm/page_vma_mapped.c 9188af981d385d Andrew Morton 2022-02-25 109 9188af981d385d Andrew Morton 2022-02-25 110 /* Returns true if the two ranges overlap. Careful to not overflow. */ 9188af981d385d Andrew Morton 2022-02-25 111 static bool check_pmd(unsigned long pfn, struct page_vma_mapped_walk *pvmw) 9188af981d385d Andrew Morton 2022-02-25 112 { 9188af981d385d Andrew Morton 2022-02-25 @113 if ((pfn + HPAGE_PMD_NR - 1) < pvmw->pfn) 9188af981d385d Andrew Morton 2022-02-25 114 return false; 9188af981d385d Andrew Morton 2022-02-25 115 if (pfn > pvmw->pfn + pvmw->nr_pages - 1) 9188af981d385d Andrew Morton 2022-02-25 116 return false; 9188af981d385d Andrew Morton 2022-02-25 117 return true; ace71a19cec5eb Kirill A. Shutemov 2017-02-24 118 } ace71a19cec5eb Kirill A. Shutemov 2017-02-24 119 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org