From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (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 F33B77A for ; Wed, 20 Apr 2022 06:23:36 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KjrCG05VpzFqQb; Wed, 20 Apr 2022 14:20:58 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 20 Apr 2022 14:23:27 +0800 Subject: Re: [PATCH] mm/swap: Fix lost swap bits in unuse_pte() To: kernel test robot , Peter Xu CC: , , , , , , , , , , , , , , , References: <202204201313.QYiDBRbL-lkp@intel.com> From: Miaohe Lin Message-ID: Date: Wed, 20 Apr 2022 14:23:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <202204201313.QYiDBRbL-lkp@intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected On 2022/4/20 13:56, kernel test robot wrote: > Hi Peter, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on hnaz-mm/master] > > url: https://github.com/intel-lab-lkp/linux/commits/Peter-Xu/mm-swap-Fix-lost-swap-bits-in-unuse_pte/20220420-053845 > base: https://github.com/hnaz/linux-mm master > config: s390-randconfig-r023-20220420 (https://download.01.org/0day-ci/archive/20220420/202204201313.QYiDBRbL-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bac6cd5bf85669e3376610cfc4c4f9ca015e7b9b) > 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 s390 cross compiling tool for clang build > # apt-get install binutils-s390x-linux-gnu > # https://github.com/intel-lab-lkp/linux/commit/355ac3eb45402f7aab25b76af029d4390af05238 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Peter-Xu/mm-swap-Fix-lost-swap-bits-in-unuse_pte/20220420-053845 > git checkout 355ac3eb45402f7aab25b76af029d4390af05238 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > The variable name is newpte. But it's written as new_pte latter. Many thanks for report! BTW: Since this is not a formal patch (no compile tested). Is Reported-by tag still needed? Thanks! > All errors (new ones prefixed by >>): > >>> mm/swapfile.c:1824:2: error: use of undeclared identifier 'new_pte'; did you mean 'newpte'? > new_pte = pte_mkold(mk_pte(page, vma->vm_page_prot)); > ^~~~~~~ > newpte > mm/swapfile.c:1786:14: note: 'newpte' declared here > pte_t *pte, newpte; > ^ > mm/swapfile.c:1826:26: error: use of undeclared identifier 'new_pte' > pte = pte_mksoft_dirty(new_pte); > ^ > mm/swapfile.c:1828:23: error: use of undeclared identifier 'new_pte' > pte = pte_mkuffd_wp(new_pte); > ^ > mm/swapfile.c:1829:36: error: use of undeclared identifier 'new_pte'; did you mean 'newpte'? > set_pte_at(vma->vm_mm, addr, pte, new_pte); > ^~~~~~~ > newpte > mm/swapfile.c:1786:14: note: 'newpte' declared here > pte_t *pte, newpte; > ^ > 4 errors generated. ... > 1839 > From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6477724801429707416==" MIME-Version: 1.0 From: Miaohe Lin To: kbuild-all@lists.01.org Subject: Re: [PATCH] mm/swap: Fix lost swap bits in unuse_pte() Date: Wed, 20 Apr 2022 14:23:27 +0800 Message-ID: In-Reply-To: <202204201313.QYiDBRbL-lkp@intel.com> List-Id: --===============6477724801429707416== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 2022/4/20 13:56, kernel test robot wrote: > Hi Peter, > = > Thank you for the patch! Yet something to improve: > = > [auto build test ERROR on hnaz-mm/master] > = > url: https://github.com/intel-lab-lkp/linux/commits/Peter-Xu/mm-swap-F= ix-lost-swap-bits-in-unuse_pte/20220420-053845 > base: https://github.com/hnaz/linux-mm master > config: s390-randconfig-r023-20220420 (https://download.01.org/0day-ci/ar= chive/20220420/202204201313.QYiDBRbL-lkp(a)intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bac6= cd5bf85669e3376610cfc4c4f9ca015e7b9b) > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install s390 cross compiling tool for clang build > # apt-get install binutils-s390x-linux-gnu > # https://github.com/intel-lab-lkp/linux/commit/355ac3eb45402f7aa= b25b76af029d4390af05238 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Peter-Xu/mm-swap-Fix-lost-swap-b= its-in-unuse_pte/20220420-053845 > git checkout 355ac3eb45402f7aab25b76af029d4390af05238 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W= =3D1 O=3Dbuild_dir ARCH=3Ds390 SHELL=3D/bin/bash > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = The variable name is newpte. But it's written as new_pte latter. Many thank= s for report! BTW: Since this is not a formal patch (no compile tested). Is Reported-by t= ag still needed? Thanks! > All errors (new ones prefixed by >>): > = >>> mm/swapfile.c:1824:2: error: use of undeclared identifier 'new_pte'; di= d you mean 'newpte'? > new_pte =3D pte_mkold(mk_pte(page, vma->vm_page_prot)); > ^~~~~~~ > newpte > mm/swapfile.c:1786:14: note: 'newpte' declared here > pte_t *pte, newpte; > ^ > mm/swapfile.c:1826:26: error: use of undeclared identifier 'new_pte' > pte =3D pte_mksoft_dirty(new_pte); > ^ > mm/swapfile.c:1828:23: error: use of undeclared identifier 'new_pte' > pte =3D pte_mkuffd_wp(new_pte); > ^ > mm/swapfile.c:1829:36: error: use of undeclared identifier 'new_pte'; = did you mean 'newpte'? > set_pte_at(vma->vm_mm, addr, pte, new_pte); > ^~~~~~~ > newpte > mm/swapfile.c:1786:14: note: 'newpte' declared here > pte_t *pte, newpte; > ^ > 4 errors generated. ... > 1839 = >=20 --===============6477724801429707416==--