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 780EAC282C6 for ; Mon, 3 Mar 2025 23:18:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E138B6B0088; Mon, 3 Mar 2025 18:17:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DC3DA6B0089; Mon, 3 Mar 2025 18:17:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C8BD86B008A; Mon, 3 Mar 2025 18:17:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id AC2946B0088 for ; Mon, 3 Mar 2025 18:17:59 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5324481120 for ; Mon, 3 Mar 2025 23:17:59 +0000 (UTC) X-FDA: 83181804678.05.3601B8E Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by imf19.hostedemail.com (Postfix) with ESMTP id 54D281A0014 for ; Mon, 3 Mar 2025 23:17:56 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XE47LiXd; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 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=1741043877; 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=i/UORJ0ISuEbMI7t3bIfa94a6B+v6p+xddG3ZgHd+kM=; b=agW0sETgUU/5HypKW1f+NZD4aeRqSbhFqIPb2/NY8OP6ZP1DDHGrqefvXmA3s4y/iCtR03 5piVZFQDOKu39NTTXxF6jVej3Glz6B90klJbwpBvA9o0QL6dB3vGd4aYzxf2FinmcPqfNe AUp3xaWR7bTS/NCVfee0GluESwwzRQ4= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XE47LiXd; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1741043877; a=rsa-sha256; cv=none; b=FrMvb64me23XjeJmD5VdeboOD26D9MRNLe3JCpQTLdO/AyM40Yrh1vzqLZ7qMglbfaeEMo P6C7YUqjFjI0FpK8WEThmTuW96n8XkDmsBE8Ae2eWaYjAA2axy93sJFyz4CGR440D5DWN0 bqorLUuTcbDoc47hluloRaTmD9awPV4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741043877; x=1772579877; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SFd9xqY4gRWrEeaGvoL5BbS0dlM1B0xqzUuSgE6I/jU=; b=XE47LiXdL2z5EiSLWmFGA5J9yuHOKjO1aF9Y+qZz89tbkA9rCxxzON0M 6pTgoBJ0u0CYdvsk2YIGTvVFe1PO6M0Qh0GhwxH21OGxOZI0Awbsmh4/L ZPQ0ku1U2155WV2aIAXsJic4WrtJzsvnBkZr/VKlPoa0md0I2gwjZPCLa 3n63i7X+W/BAYG/hVDnZqp6beFH+z04AqE3xvGC6LFAMJU0M3Jw2jH9Su Tf8AMkezmPA0d3LyFCm6Mil3/X1sO9+AktT5q4Wi9EuzWhIM3UHdmUYzH GBmGN1EJnBinBIC+Rn+uWCkBDAip/Et6sukKVTlYT5OTdBjvDUDDkhAfh A==; X-CSE-ConnectionGUID: andL+amWQWObwxiURMy0xQ== X-CSE-MsgGUID: 0HUi7AIEQw+TM0/6iyOqOA== X-IronPort-AV: E=McAfee;i="6700,10204,11362"; a="41793234" X-IronPort-AV: E=Sophos;i="6.13,330,1732608000"; d="scan'208";a="41793234" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2025 15:17:55 -0800 X-CSE-ConnectionGUID: sEVzVHs+QoeNAc8uMv0Xmw== X-CSE-MsgGUID: WUITPo2qQcmI9dGrnWUvPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="118717350" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by orviesa007.jf.intel.com with ESMTP; 03 Mar 2025 15:17:53 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tpF2k-000J1o-1t; Mon, 03 Mar 2025 23:17:50 +0000 Date: Tue, 4 Mar 2025 07:17:30 +0800 From: kernel test robot To: Lorenzo Stoakes , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , "Liam R . Howlett" , Vlastimil Babka , Jann Horn , linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/7] mm/mremap: thread state through move page table operation Message-ID: <202503040721.0r47FGNO-lkp@intel.com> References: <4cc18ebfc0cb32e9e42d86503cef3265108343e4.1740911247.git.lorenzo.stoakes@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4cc18ebfc0cb32e9e42d86503cef3265108343e4.1740911247.git.lorenzo.stoakes@oracle.com> X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 54D281A0014 X-Rspam-User: X-Stat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JkCjzMRoft3WKVttRnZI0JAeC27SvRCE0fDHTDEvKWuHTapwTaQurrxowQgVl9sUVWqdei7G/kwWX1n6f9nSws1CWV0SacrEGHiutcRd3g5MFcEZbcBoRlursbXJJCCwYTaH3LA7jbdqhT7hb6WLEVxli536a3F33Z22SqeLv8QytNuekV98NV6iikErDmkJzO5ylFu7ztD4j+5a9kxcvsYLn2dTCJClIUklBO+GN5QSM8WFCSKSGIIgYYmtuBnJSqgvBJ/YKoEZwXJaUHB+t0oRHODKMSrfV488YgTEJGHzbMMEv4IrqWQGPkzVVQrNCGLCSgVmtrYL0636C5fidBH/2atA== 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 Lorenzo, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master v6.14-rc5 next-20250303] [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/Lorenzo-Stoakes/mm-mremap-correctly-handle-partial-mremap-of-VMA-starting-at-0/20250303-192101 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/4cc18ebfc0cb32e9e42d86503cef3265108343e4.1740911247.git.lorenzo.stoakes%40oracle.com patch subject: [PATCH 7/7] mm/mremap: thread state through move page table operation config: x86_64-buildonly-randconfig-001-20250304 (https://download.01.org/0day-ci/archive/20250304/202503040721.0r47FGNO-lkp@intel.com/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250304/202503040721.0r47FGNO-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/202503040721.0r47FGNO-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/mremap.c:11: In file included from include/linux/mm.h:2302: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from mm/mremap.c:12: include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~ ^ ~~~ include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 49 | NR_ZONE_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~~~~~~ ^ ~~~ >> mm/mremap.c:581:43: error: too few arguments to function call, expected 5, have 3 581 | move_huge_pud(pmc, old_entry, new_entry); | ~~~~~~~~~~~~~ ^ mm/mremap.c:478:13: note: 'move_huge_pud' declared here 478 | static bool move_huge_pud(struct vm_area_struct *vma, unsigned long old_addr, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 479 | unsigned long new_addr, pud_t *old_pud, pud_t *new_pud) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings and 1 error generated. vim +581 mm/mremap.c 552 553 /* 554 * Attempts to speedup the move by moving entry at the level corresponding to 555 * pgt_entry. Returns true if the move was successful, else false. 556 */ 557 static bool move_pgt_entry(struct pagetable_move_control *pmc, 558 enum pgt_entry entry, void *old_entry, void *new_entry) 559 { 560 bool moved = false; 561 bool need_rmap_locks = should_take_rmap_locks(pmc, entry); 562 563 /* See comment in move_ptes() */ 564 if (need_rmap_locks) 565 take_rmap_locks(pmc->old); 566 567 switch (entry) { 568 case NORMAL_PMD: 569 moved = move_normal_pmd(pmc, old_entry, new_entry); 570 break; 571 case NORMAL_PUD: 572 moved = move_normal_pud(pmc, old_entry, new_entry); 573 break; 574 case HPAGE_PMD: 575 moved = IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE) && 576 move_huge_pmd(pmc->old, pmc->old_addr, pmc->new_addr, old_entry, 577 new_entry); 578 break; 579 case HPAGE_PUD: 580 moved = IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE) && > 581 move_huge_pud(pmc, old_entry, new_entry); 582 break; 583 584 default: 585 WARN_ON_ONCE(1); 586 break; 587 } 588 589 if (need_rmap_locks) 590 drop_rmap_locks(pmc->old); 591 592 return moved; 593 } 594 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki