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 99900E7716F for ; Thu, 5 Dec 2024 02:06:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2B5056B0083; Wed, 4 Dec 2024 21:06:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2647A6B0085; Wed, 4 Dec 2024 21:06:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 12BD26B008C; Wed, 4 Dec 2024 21:06:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E21F46B0083 for ; Wed, 4 Dec 2024 21:06:23 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 67FE11C7D30 for ; Thu, 5 Dec 2024 02:06:23 +0000 (UTC) X-FDA: 82859265258.07.4B2FF36 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by imf09.hostedemail.com (Postfix) with ESMTP id 4AD3814000D for ; Thu, 5 Dec 2024 02:06:10 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ayAEB9T0; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733364367; a=rsa-sha256; cv=none; b=I9CJ6Fm7ACJQR+CJMK/eptvhhiGi77uBMdzJ40r4wsNTD2b931qP3+tOolyVFhJqKDn/r0 Itk+4+ed8cvQP4wJWmMIrDxjugV77xfyqObxFkjo07E2rXOxEZlia5KUJwG2ft+KatGLNS gMos/7V/M/3j4ZvwuSz7JbbJnh2DvNU= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ayAEB9T0; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 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=1733364367; 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=vIawvid2cjpXuFa3Rgi1gFhFdPb37xtIwjflJsRnEus=; b=U1cP95MdFt/sy9MnUcYfT1aUU1CR5F7EF5YoDg//JSJ2eNdGHxwa4LhKokGVFtoaL32nj1 UMjgZnGIk8yXg67zNQgE2PKZpZ2PpVBfB2K1hwbveswbi6tFAz+W6XwrlBgmvHxFPwZxL0 +Eyq/y55BXW+GN4NdbbRveWFl+oyJ7k= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1733364381; x=1764900381; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bBY4+YZT8ykO/aVTUVMWrYWcrY+HmAwOx3LiCluiIkI=; b=ayAEB9T0IlVn5GvtlqLzpinUnukPQ3MPrtGVPjn0RX9N80ii2lHkza2U PMkK+V3BnMbV10btceup5VlOr8z1CsLyrStPUeAkSZqOBwOzjyJ1uV1Pg 8d0VjVjZs+5n6dPztfZqFv40Dx4j5p83eL80JLjURBSPWp14zDRW8IYMX ranXrYKdvbOMfTvpFFPrBWRPm1s9VR9Pn/CJAxjSZyV3Ts0s9EkFPAMf4 DU9hpuuI0/MFdoRRDmEXQBuY+5Y2w7NHkFJCE9FqkfqEoWx8rKCo/2Ats r0zqouBJbjf6X/g+cCXWzVGu0Oa15DqUbIbHTdeFbxHXzcgrrhfzZ6mq6 w==; X-CSE-ConnectionGUID: PKLUpGyTSuKQExOyYnaoCw== X-CSE-MsgGUID: rxNDOF2aSZ6UJBbfIZUaTQ== X-IronPort-AV: E=McAfee;i="6700,10204,11276"; a="37595887" X-IronPort-AV: E=Sophos;i="6.12,209,1728975600"; d="scan'208";a="37595887" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2024 18:06:19 -0800 X-CSE-ConnectionGUID: GMx1CLYlQ/6HEfeM3/7vdA== X-CSE-MsgGUID: B52RsMKzTAOeoBgAyJJMXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,209,1728975600"; d="scan'208";a="93818258" Received: from lkp-server02.sh.intel.com (HELO 1f5a171d57e2) ([10.239.97.151]) by fmviesa007.fm.intel.com with ESMTP; 04 Dec 2024 18:06:16 -0800 Received: from kbuild by 1f5a171d57e2 with local (Exim 4.96) (envelope-from ) id 1tJ1FY-0003fl-0y; Thu, 05 Dec 2024 02:05:55 +0000 Date: Thu, 5 Dec 2024 10:05:16 +0800 From: kernel test robot To: Guillaume Morin , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org, guillaume@morinfr.org, Muchun Song , Andrew Morton , Peter Xu , David Hildenbrand , Eric Hagberg Subject: Re: [PATCH v1] hugetlb: support FOLL_FORCE|FOLL_WRITE Message-ID: <202412050943.6b8BLXfY-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Stat-Signature: u33fa63m8ue4gj8qmh8fpc3hj1iox4mi X-Rspam-User: X-Rspamd-Queue-Id: 4AD3814000D X-Rspamd-Server: rspam08 X-HE-Tag: 1733364370-276450 X-HE-Meta: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n9iPbNZoyVKJhLM8axf7JqRJVPTpcYyszj0ZfdfI383JQmCeL7sVWMmWOuf3ZGWmDM2ptMDF8ZzsExyDOgdwe6LkSHGRebDOXekRBtnXcMIPAJt38Y62FaTsHVto4yTd2PgyO1rUeFLTIO9PQiU4Tm0gdxKPTnn9qY6OzBCRvxFBBro1vp9w/6W7WVxlHznwFTD5dxNBCHAI6DKixG9ItDOi6RYT8IrCE539zHlIpeB2rBM5HsEEptuOV9RZ21egP7zXJ1gYFCUpu8bNa4A4ifsmhNive3NUn9XELxgSZXcg9TVxxnHCu6fLukG/ClWrdUd6xB2Z4xxJhoW0mkYG/AGmUHJIO/252JluTTgGKNeC5V8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, 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 Guillaume, 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.13-rc1 next-20241204] [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/Guillaume-Morin/hugetlb-support-FOLL_FORCE-FOLL_WRITE/20241205-022843 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/Z1Ce6j5WiBE3kaGf%40bender.morinfr.org patch subject: [PATCH v1] hugetlb: support FOLL_FORCE|FOLL_WRITE config: i386-buildonly-randconfig-002 (https://download.01.org/0day-ci/archive/20241205/202412050943.6b8BLXfY-lkp@intel.com/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241205/202412050943.6b8BLXfY-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/202412050943.6b8BLXfY-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/gup.c:7: In file included from include/linux/mm.h:2223: 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/gup.c:20: 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/gup.c:665:41: error: call to undeclared function 'pud_soft_dirty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 665 | return !vma_soft_dirty_enabled(vma) || pud_soft_dirty(pud); | ^ mm/gup.c:665:41: note: did you mean 'pmd_soft_dirty'? include/linux/pgtable.h:1427:19: note: 'pmd_soft_dirty' declared here 1427 | static inline int pmd_soft_dirty(pmd_t pmd) | ^ 3 warnings and 1 error generated. vim +/pud_soft_dirty +665 mm/gup.c 650 651 #ifdef CONFIG_PGTABLE_HAS_HUGE_LEAVES 652 /* FOLL_FORCE can write to even unwritable PUDs in COW mappings. */ 653 static inline bool can_follow_write_pud(pud_t pud, struct page *page, 654 struct vm_area_struct *vma, 655 unsigned int flags) 656 { 657 /* If the pud is writable, we can write to the page. */ 658 if (pud_write(pud)) 659 return true; 660 661 if (!can_follow_write_common(page, vma, flags)) 662 return false; 663 664 /* ... and a write-fault isn't required for other reasons. */ > 665 return !vma_soft_dirty_enabled(vma) || pud_soft_dirty(pud); 666 } 667 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki