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 348B5C021BE for ; Thu, 27 Feb 2025 05:26:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A3CD280007; Thu, 27 Feb 2025 00:26:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 72A5D280005; Thu, 27 Feb 2025 00:26:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5CAC5280007; Thu, 27 Feb 2025 00:26:35 -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 3A3D0280005 for ; Thu, 27 Feb 2025 00:26:35 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D41E2120458 for ; Thu, 27 Feb 2025 05:26:34 +0000 (UTC) X-FDA: 83164589508.02.A403768 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by imf27.hostedemail.com (Postfix) with ESMTP id AC7CD40003 for ; Thu, 27 Feb 2025 05:26:31 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ZbCBjKOo; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 198.175.65.16 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=1740633992; a=rsa-sha256; cv=none; b=a/20R9l4+UX7QK6XZxRBKV3+UnLXIqqC0hl7aCHkGlwi5I2pV9JLLXZuaOb4czcsAk4OSQ QoYHlE1BvGZtEs5UOBWAOcDkKR7TnteFk15baftIN4coB94pBtAyDBw7FhgyFqTR1G9U4I Bwam5MyDDLifQ/UAfekp6tVzy1HzQ5g= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ZbCBjKOo; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 198.175.65.16 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=1740633992; 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=A6peoiMU/8bR9r+WIllYgjB7HW/Dg+QTCdw71MvJi5s=; b=QitKZqrnMvpjuSI2+7gt58eZ751j4qwHynL2aCiDEyextNNluXRkLywEGBz3G3g07d8uJO kEzAiPikY3hNWZTA/T3i0Z+xljbK1cs589dn4WjFUIxC5N2/1O+IKJbrL61QAUfWfzl14R OCoXcFH8w7ArEIeC1+NdpWRKYCPb5wA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740633992; x=1772169992; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QsLOmOWrH2QCKP0gkojxfG4ZAlKdqpTNrpKXybsyags=; b=ZbCBjKOouRkkezPUleFQCrVpPPyUaxNF8pjmItC54sTui7IhrmCkBlkF zPjVl68JI6RIQy/wVCgVaAh6AeuxOOFl4BGnPuozVXujnfB/yrHTHMXwq X+bQZhU5tdqv59othXqou+hsxBcGy4lHUGSqUTc0EnXMPA2CJXzMSWxO/ pkHK4PKwA+NB7hf2GjkDBWd4SDZJUe8vestmub7RtQZPhEqxLiUdUW5GE RDtM+uoaZpMTjw/+swsl6mIW89esb5PgXPAJl79cYveC0cxXVeQ4uWXSm 0O3COj77Sa/Hb1sz7mbu2L0P5JuXupspINQYE5c2b7sUYL9bTTXizO/MU Q==; X-CSE-ConnectionGUID: d0uxTu3mSta/2qKCx6HdJA== X-CSE-MsgGUID: 19ZhsdU3QGilMyZJghsxZA== X-IronPort-AV: E=McAfee;i="6700,10204,11357"; a="41639216" X-IronPort-AV: E=Sophos;i="6.13,319,1732608000"; d="scan'208";a="41639216" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2025 21:26:30 -0800 X-CSE-ConnectionGUID: 8YA5gkAtSqucOs2B0u928A== X-CSE-MsgGUID: 9wyp9ikvRE+TXckO1c0Wuw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,319,1732608000"; d="scan'208";a="117409621" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by fmviesa010.fm.intel.com with ESMTP; 26 Feb 2025 21:26:28 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tnWPh-000Ct8-0F; Thu, 27 Feb 2025 05:26:25 +0000 Date: Thu, 27 Feb 2025 13:25:26 +0800 From: kernel test robot To: zhongjinji@honor.com, akpm@linux-foundation.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, yuzhao@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, rientjes@google.com, vbabka@suse.cz, zhongjinji@honor.com, yipengxiang@honor.com, liulu.liu@honor.com, feng.han@honor.com Subject: Re: [PATCH] mm/page_alloc: make the maximum number of highatomic pageblocks resizable Message-ID: <202502271250.KUfFnxnl-lkp@intel.com> References: <20250226024126.3718-1-zhongjinji@honor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250226024126.3718-1-zhongjinji@honor.com> X-Rspamd-Queue-Id: AC7CD40003 X-Stat-Signature: b86ysjmtiwmgkb4onw9jazo1mjg9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ZTSHeWBQcJYJjZc8D7HMojWp63NJt9PcjLMh5vatMvn++qWSqZoyDCekVGtw+NNxQ82QE7qLPrmCUophpk16yQRaBhe6U0sx1p2ZNd+KzLa28LJ3x3hSgqFDEte6AQjdAEAmDS9Vih51Y2ZFTI1tX4mSvSIMjGp+jm0YYhJyxoC6wMAlyTDRwJvqlgcBs5dJayaBD8MH0R36CbnL9y7NjyFbL4x3dgTcuuViShfW996fbC0/eEC7ccgWh6SNUDuus4+UxJXej2yy7gOXS8gchmSgROIhbaVemry8wghnkQeCbfhWrGPSzEpk/A491coeQ3OCBah0Cxpz/BDTKRbWtfZsUUe75ScM8dx50Tns+mmdZSMDDMV3JoEIqMKyuYrc40wIy+xUF2o8YNXoyry0itqhr6FghOGF4Ptw== 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, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/zhongjinji-honor-com/mm-page_alloc-make-the-maximum-number-of-highatomic-pageblocks-resizable/20250226-121712 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20250226024126.3718-1-zhongjinji%40honor.com patch subject: [PATCH] mm/page_alloc: make the maximum number of highatomic pageblocks resizable config: x86_64-buildonly-randconfig-001-20250227 (https://download.01.org/0day-ci/archive/20250227/202502271250.KUfFnxnl-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/20250227/202502271250.KUfFnxnl-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/202502271250.KUfFnxnl-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/page_alloc.c:19: 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/page_alloc.c:44: 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/page_alloc.c:2854:2: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion] 2854 | __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events' 139 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ mm/page_alloc.c:2971:3: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion] 2971 | __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events' 139 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ mm/page_alloc.c:4743:2: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion] 4743 | __count_zid_vm_events(PGALLOC, zone_idx(zone), nr_account); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events' 139 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ >> mm/page_alloc.c:6262:3: error: field designator cannot initialize a non-struct, non-union type 'const struct ctl_table[]' 6262 | .procname = "highatomic_reserve_ratio", | ^ mm/page_alloc.c:6263:3: error: field designator cannot initialize a non-struct, non-union type 'const struct ctl_table[]' 6263 | .data = &highatomic_reserve_ratio, | ^ mm/page_alloc.c:6264:3: error: field designator cannot initialize a non-struct, non-union type 'const struct ctl_table[]' 6264 | .maxlen = sizeof(highatomic_reserve_ratio), | ^ mm/page_alloc.c:6265:3: error: field designator cannot initialize a non-struct, non-union type 'const struct ctl_table[]' 6265 | .mode = 0644, | ^ mm/page_alloc.c:6266:3: error: field designator cannot initialize a non-struct, non-union type 'const struct ctl_table[]' 6266 | .proc_handler = proc_dointvec_minmax, | ^ mm/page_alloc.c:6267:3: error: field designator cannot initialize a non-struct, non-union type 'const struct ctl_table[]' 6267 | .extra1 = SYSCTL_ZERO, | ^ >> mm/page_alloc.c:6268:3: error: expected ';' at end of declaration 6268 | }, | ^ | ; >> mm/page_alloc.c:6269:2: error: expected identifier or '(' 6269 | { | ^ >> mm/page_alloc.c:6303:1: error: extraneous closing brace ('}') 6303 | }; | ^ 6 warnings and 9 errors generated. vim +6262 mm/page_alloc.c 6227 6228 static const struct ctl_table page_alloc_sysctl_table[] = { 6229 { 6230 .procname = "min_free_kbytes", 6231 .data = &min_free_kbytes, 6232 .maxlen = sizeof(min_free_kbytes), 6233 .mode = 0644, 6234 .proc_handler = min_free_kbytes_sysctl_handler, 6235 .extra1 = SYSCTL_ZERO, 6236 }, 6237 { 6238 .procname = "watermark_boost_factor", 6239 .data = &watermark_boost_factor, 6240 .maxlen = sizeof(watermark_boost_factor), 6241 .mode = 0644, 6242 .proc_handler = proc_dointvec_minmax, 6243 .extra1 = SYSCTL_ZERO, 6244 }, 6245 { 6246 .procname = "watermark_scale_factor", 6247 .data = &watermark_scale_factor, 6248 .maxlen = sizeof(watermark_scale_factor), 6249 .mode = 0644, 6250 .proc_handler = watermark_scale_factor_sysctl_handler, 6251 .extra1 = SYSCTL_ONE, 6252 .extra2 = SYSCTL_THREE_THOUSAND, 6253 }, 6254 { 6255 .procname = "percpu_pagelist_high_fraction", 6256 .data = &percpu_pagelist_high_fraction, 6257 .maxlen = sizeof(percpu_pagelist_high_fraction), 6258 .mode = 0644, 6259 .proc_handler = percpu_pagelist_high_fraction_sysctl_handler, 6260 .extra1 = SYSCTL_ZERO, 6261 }, > 6262 .procname = "highatomic_reserve_ratio", 6263 .data = &highatomic_reserve_ratio, 6264 .maxlen = sizeof(highatomic_reserve_ratio), 6265 .mode = 0644, 6266 .proc_handler = proc_dointvec_minmax, 6267 .extra1 = SYSCTL_ZERO, > 6268 }, > 6269 { 6270 .procname = "lowmem_reserve_ratio", 6271 .data = &sysctl_lowmem_reserve_ratio, 6272 .maxlen = sizeof(sysctl_lowmem_reserve_ratio), 6273 .mode = 0644, 6274 .proc_handler = lowmem_reserve_ratio_sysctl_handler, 6275 }, 6276 #ifdef CONFIG_NUMA 6277 { 6278 .procname = "numa_zonelist_order", 6279 .data = &numa_zonelist_order, 6280 .maxlen = NUMA_ZONELIST_ORDER_LEN, 6281 .mode = 0644, 6282 .proc_handler = numa_zonelist_order_handler, 6283 }, 6284 { 6285 .procname = "min_unmapped_ratio", 6286 .data = &sysctl_min_unmapped_ratio, 6287 .maxlen = sizeof(sysctl_min_unmapped_ratio), 6288 .mode = 0644, 6289 .proc_handler = sysctl_min_unmapped_ratio_sysctl_handler, 6290 .extra1 = SYSCTL_ZERO, 6291 .extra2 = SYSCTL_ONE_HUNDRED, 6292 }, 6293 { 6294 .procname = "min_slab_ratio", 6295 .data = &sysctl_min_slab_ratio, 6296 .maxlen = sizeof(sysctl_min_slab_ratio), 6297 .mode = 0644, 6298 .proc_handler = sysctl_min_slab_ratio_sysctl_handler, 6299 .extra1 = SYSCTL_ZERO, 6300 .extra2 = SYSCTL_ONE_HUNDRED, 6301 }, 6302 #endif > 6303 }; 6304 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki