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 35B69C282C6 for ; Mon, 3 Mar 2025 23:31:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 87D086B0083; Mon, 3 Mar 2025 18:31:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 82C6D6B0085; Mon, 3 Mar 2025 18:31:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6F3D16B0088; Mon, 3 Mar 2025 18:31:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 508A56B0083 for ; Mon, 3 Mar 2025 18:31:01 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E2D6FC1113 for ; Mon, 3 Mar 2025 23:31:00 +0000 (UTC) X-FDA: 83181837480.30.4B8DEB6 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by imf28.hostedemail.com (Postfix) with ESMTP id 268ADC0008 for ; Mon, 3 Mar 2025 23:30:57 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=iJk8z5mY; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.198.163.17 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1741044658; 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=KrbzfmInYlW8g+2uzCYuGhcx2eVMHITpTiXlo0S65vc=; b=zPmoblOh0iDbQ25xP1w9NfjoA3vpm+kY/dI/HiwEQdT21jY4EH9LfLeOHPdCsgO9Lc871D ImSNQTrM7RfV2u6cVK7D30OrpA08TyMsRaYqC6BCgn5gGJCrwJUPUgiPVu7yBcsTEMepYp XNsZOLMT7y/flVhMf+YHD5GE25sKWNE= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=iJk8z5mY; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.198.163.17 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1741044658; a=rsa-sha256; cv=none; b=Y+iYdr8IZPkbCzIE9pTQZg60k4UShSDeia4OW8tyUZW2ATMNRTNFqM45K/svExUr28dvN0 yFyFdlA1mBg74Y/LT30xiG3T8hALnxn/k3FtCWrr8dlB+C2JXiZJtcV07Cvrf2vjymwxTD VRExcjCfeql1jllEszRy+ZJkC1wtjUc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741044658; x=1772580658; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jxbIi6utBMKjNCeA4xWPxd8lFamZ4p1d6PoAjO1pqIU=; b=iJk8z5mYGuM+4kowuCg9ROFELOR/h13saPYoDivDNbQJ5HBi86mcokt5 jfmdJQLxhARPcG4awIOyQBStay7AThbpce8qFwjhk6uNnDiC640gmehuK pcgqFYwr+0dFVSZAQSji0Vt6gDqI6Nloc2YBqqTMB4/x9SDaNixkvGj8j pJJ34/mo+fEBs6FTc5RXsV7UfTqPx2A8K3bESQ+tF+pbnXHT0CobntSAv FuI0JvjgUVTnBGjf5d0/xXMsn3jtPgaNfz+5tTqz6rePAkQS/NPWPXEEw +swCkXbuWR9E4zM+Ewz+B3jJGZ9emwTOtPxDVgkNVNc59iOp4Mrsw7FfZ g==; X-CSE-ConnectionGUID: JF6f+te2TQ+m6rob5eN5dQ== X-CSE-MsgGUID: yOTXM5RxRvaynYXMbYITtw== X-IronPort-AV: E=McAfee;i="6700,10204,11362"; a="41835544" X-IronPort-AV: E=Sophos;i="6.13,330,1732608000"; d="scan'208";a="41835544" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2025 15:30:56 -0800 X-CSE-ConnectionGUID: l0hflE1hSkitjuc8EeEKFw== X-CSE-MsgGUID: T7+sTy/8RxynuCDRXcPWig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,330,1732608000"; d="scan'208";a="117981115" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by fmviesa006.fm.intel.com with ESMTP; 03 Mar 2025 15:30:54 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tpFFL-000J2U-2R; Mon, 03 Mar 2025 23:30:51 +0000 Date: Tue, 4 Mar 2025 07:30:16 +0800 From: kernel test robot To: Lorenzo Stoakes , Andrew Morton Cc: 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: <202503040759.5zpJdC2i-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-Stat-Signature: zqxzjx8jzyog4guk5n77yqd1fzuig4g4 X-Rspamd-Queue-Id: 268ADC0008 X-R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nQOnKFNlM4cMjYgsBYfpVZJFuLhIoq6HFzqXjsPOYA/d91F4dbrZcDvsRSdPa8xIduKw8wUG1HnG+iNV1UfWdzdJVB9HOErHHJE2MR5dY5s0cawV462kbKVsquqlMI+PErn2UfGCMCfsEJSWPOXerJrxIU7YcUTndDfI35ICkElHCh5NCnAsnWCQH37p9ImipuEneTCBK+OMiaeIrErwBVs4UOF0jYMNU8QXcnvQ8iqETfr3lsA/PUHjrYHXv5VXjmI5+Ioff/9WkKY+1hET2lfdKoeQYhbp6wlurXCJ0iXZS7h4UobI4XOn7tOh7Qi9gqBjJA== 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 warnings: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING 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-005-20250304 (https://download.01.org/0day-ci/archive/20250304/202503040759.5zpJdC2i-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250304/202503040759.5zpJdC2i-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/202503040759.5zpJdC2i-lkp@intel.com/ All warnings (new ones prefixed by >>): mm/mremap.c: In function 'move_pgt_entry': mm/mremap.c:581:39: error: passing argument 1 of 'move_huge_pud' from incompatible pointer type [-Werror=incompatible-pointer-types] 581 | move_huge_pud(pmc, old_entry, new_entry); | ^~~ | | | struct pagetable_move_control * mm/mremap.c:478:50: note: expected 'struct vm_area_struct *' but argument is of type 'struct pagetable_move_control *' 478 | static bool move_huge_pud(struct vm_area_struct *vma, unsigned long old_addr, | ~~~~~~~~~~~~~~~~~~~~~~~^~~ >> mm/mremap.c:581:44: warning: passing argument 2 of 'move_huge_pud' makes integer from pointer without a cast [-Wint-conversion] 581 | move_huge_pud(pmc, old_entry, new_entry); | ^~~~~~~~~ | | | void * mm/mremap.c:478:69: note: expected 'long unsigned int' but argument is of type 'void *' 478 | static bool move_huge_pud(struct vm_area_struct *vma, unsigned long old_addr, | ~~~~~~~~~~~~~~^~~~~~~~ mm/mremap.c:581:55: warning: passing argument 3 of 'move_huge_pud' makes integer from pointer without a cast [-Wint-conversion] 581 | move_huge_pud(pmc, old_entry, new_entry); | ^~~~~~~~~ | | | void * mm/mremap.c:479:41: note: expected 'long unsigned int' but argument is of type 'void *' 479 | unsigned long new_addr, pud_t *old_pud, pud_t *new_pud) | ~~~~~~~~~~~~~~^~~~~~~~ mm/mremap.c:581:25: error: too few arguments to function 'move_huge_pud' 581 | move_huge_pud(pmc, old_entry, new_entry); | ^~~~~~~~~~~~~ mm/mremap.c:478:13: note: declared here 478 | static bool move_huge_pud(struct vm_area_struct *vma, unsigned long old_addr, | ^~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/move_huge_pud +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