From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.15 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796464567; b=RmdWxeYZk0vmzzlbWz2BNqcmowtsichUjuNdUQIQqMnJl6mHv1A0t+PcsJxd7eSx2KOS BJO4i3YgkeAWjDxJpSbUA+uaTpDRidOias9jfTwtG06zF06+jjHnymsbSRyx8cX0Yr185 TgoedKfyP9FmSVKys492BPZpNBDt0Btb0MolKyYi7GDzHem0N6q7T4faH2gCuBK9ZiNjv k1ueJnO2Z/47KtM7jXor0QIrl324zJewwNH3bJ9b9/f64G1cJaqEo6KgJnI9HaWAT4t5l eaG6fyzyjMU7KG+yOQ0zVv77GljhRKXddcJZlwb+OlBUf+8wLz4DTQxKjniuuvoKjUw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796464567; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=ueDF87IvorEW8M//q4ciXWB+L/j2gyF5vaM4+OB8Yys=; b=tPZqMhD2vxkeDAVBfQCPMhE9sAW0CgBl7Nrpj2/x/oTKf84+a5Z11pO42RP848h2AEYo dRBIFFzpZZ2zRFFpbFG9CiCmGOqlxj1Nk8xxx77wkkhrdbz7ldgB6C9DOmj9jpgSQ8RwL heqHcwfmbfX3zpTz1awEw0YB5DbjT/FhF1+6v2Z8fDlAbqUjIURyv040cGQuvNlKfnVSR w7HVugSZ2xixzEzWDRIKqXSFCJoajZlDeEprH7O6+cM01UXbpUVXlfNV2aV234Yhqttgq Fr7ukZuGisZ4IGeoxFPbSS9O3ajI6Mg5BV1J+koh8qUWCpMCJi95YjLbYFfiKyvusyg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=GhB+c+Pa; arc=none smtp.remote-ip=198.175.65.15 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB5C760A381B; Sat, 5 Dec 2026 09:56:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DB5C760A381B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=GhB+c+Pa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796464567; x=1828000567; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ueDF87IvorEW8M//q4ciXWB+L/j2gyF5vaM4+OB8Yys=; b=GhB+c+PaWNHZqFQ832hwtgtMvnQJTwnWzP6taIELYibZwzALOFufgCHs VV11aaW2A5K39U7X5pMaX9qRla5ig9/ZMpQTsHF87uAqlsq+uF22q4tV8 tSCgj9FpY18G2CkQTZ7kJZkODjsfZzfXw1ELHRUJKDI5VqkTlkxmIsEc2 1KO1Nb3rmN6x82smotmuxPc9MYgIWtk5CayCO0XC0Okaq58cQKWa7L+2g /pJckcCvv1Z6717CQbCUtFueMVOYIPQ7if9df46Ut+6/P90O+StqWfq+T akoJtFPNH48H7m8mLhn7jXZGpOnBD6I6RrVfhV1udIXvq1wpp2x7UGvmT w==; X-CSE-ConnectionGUID: LXTgrTg8QKmWFbYUTvm2dA== X-CSE-MsgGUID: tUrFTYB2TiupO7hkUKoBFQ== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="5442114" X-IronPort-AV: E=Sophos;i="6.29,80,1794902400"; d="scan'208";a="5442114" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2026 01:56:03 -0800 X-CSE-ConnectionGUID: yZRl4PXrS0mvid6E9q8RKg== X-CSE-MsgGUID: 2/k9hMfiSxSRepjg8yGuPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,80,1794902400"; d="scan'208";a="14292168" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by orviesa007.jf.intel.com with ESMTP; 05 Dec 2026 01:56:00 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xZmUm-00000001m1b-3YZ5; Sat, 05 Dec 2026 09:55:56 +0000 Date: Sat, 5 Dec 2026 17:55:00 +0800 From: kernel test robot To: Muchun Song , Oscar Salvador , David Hildenbrand , Mike Rapoport , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Muchun Song , "Liam R . Howlett" , Vlastimil Babka , Michal Hocko , Miaohe Lin , Naoya Horiguchi , Lance Yang , Qi Zheng Subject: Re: [PATCH 1/2] mm/vmemmap-optimization: track optimization state in shared vmemmap pages Message-ID: <20261204215615.prolt4W2-lkp@intel.com> References: <20261204065009.1392156-2-songmuchun@bytedance.com> X-Mailing-List: llvm@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261204065009.1392156-2-songmuchun@bytedance.com> Hi Muchun, kernel test robot noticed the following build errors: [auto build test ERROR on 1a7610248a3802e38124ce66b07eef12277be9a0] url: https://github.com/intel-lab-lkp/linux/commits/Muchun-Song/mm-vmemmap-optimization-track-optimization-state-in-shared-vmemmap-pages/20261204-145008 base: 1a7610248a3802e38124ce66b07eef12277be9a0 patch link: https://lore.kernel.org/r/20261204065009.1392156-2-songmuchun%40bytedance.com patch subject: [PATCH 1/2] mm/vmemmap-optimization: track optimization state in shared vmemmap pages config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20261204/20261204215615.prolt4W2-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204215615.prolt4W2-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/20261204215615.prolt4W2-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:31: In file included from include/linux/pgtable.h:6: In file included from arch/loongarch/include/asm/pgtable.h:75: >> include/linux/vmemmap-optimization.h:123:33: error: call to undeclared function 'folio_order'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | if (!vmemmap_optimizable_order(folio_order(folio))) | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 99 | set->sig[1] | set->sig[0]) == 0; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 101 | return (set->sig[1] | set->sig[0]) == 0; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:116:5: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 116 | (set1->sig[1] == set2->sig[1]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:116:21: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 116 | (set1->sig[1] == set2->sig[1]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here -- | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:20: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:3: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:187:1: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:177:27: note: expanded from macro '_SIG_SET_OP' 177 | case 2: set->sig[1] = op(set->sig[1]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:187:1: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:177:10: note: expanded from macro '_SIG_SET_OP' 177 | case 2: set->sig[1] = op(set->sig[1]); \ | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:198:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 198 | case 2: set->sig[1] = 0; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:211:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 211 | case 2: set->sig[1] = -1; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:242:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 242 | case 2: set->sig[1] = 0; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: In file included from include/linux/mm.h:36: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:7: include/linux/signal.h:255:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 255 | case 2: set->sig[1] = -1; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/loongarch/kernel/asm-offsets.c:11: >> include/linux/mm.h:1950:28: error: conflicting types for 'folio_order' 1950 | static inline unsigned int folio_order(const struct folio *folio) | ^ include/linux/vmemmap-optimization.h:123:33: note: previous implicit declaration is here 123 | if (!vmemmap_optimizable_order(folio_order(folio))) | ^ 49 warnings and 2 errors generated. make[3]: *** [scripts/Makefile.build:185: arch/loongarch/kernel/asm-offsets.s] Error 1 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1417: prepare0] Error 2 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:248: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:248: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/folio_order +123 include/linux/vmemmap-optimization.h 118 119 static inline bool folio_vmemmap_optimized(const struct folio *folio) 120 { 121 const struct page *page = folio_page(folio, VMEMMAP_OPTIMIZATION_NR_STRUCT_PAGES); 122 > 123 if (!vmemmap_optimizable_order(folio_order(folio))) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki