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 F05AEC021BE for ; Thu, 27 Feb 2025 04:54:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 672D5280015; Wed, 26 Feb 2025 23:54:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 622F1280005; Wed, 26 Feb 2025 23:54:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4EA3E280015; Wed, 26 Feb 2025 23:54:19 -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 327DD280005 for ; Wed, 26 Feb 2025 23:54:19 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id A84AA1C7B52 for ; Thu, 27 Feb 2025 04:54:18 +0000 (UTC) X-FDA: 83164508196.13.9AC9C9E Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by imf18.hostedemail.com (Postfix) with ESMTP id C9A5E1C0009 for ; Thu, 27 Feb 2025 04:54:15 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Gz22PiZj; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.198.163.18 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740632056; a=rsa-sha256; cv=none; b=1vdHDKRHFG10g6MQ3TI3J0xkS/xNilTDAQUMD09MugNhuBbSoiyBv4ZAR2rMk3+It3/yj2 0SaST9sa5ylNHh6I1x7YkpLKOCyKtXHByGz9fjp1Nk7caWmIxAJXFwQxuMnbsx2K0zMD5A /ZNmPoEvjs/382FSwV9T8QrqMXgxvRk= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Gz22PiZj; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.198.163.18 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=1740632056; 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=S0fua8pJWVYAE6c+V5bZFqB6/2TMCD3lVBiq5Rw5E8A=; b=xruWoEpFQEFaur/wf9HrA9CdB1jk7kcP1te3nv3mnLm4RLPEmeeyZvK8PIzpI9duTFlsJF tSxc0qnbX1MGPD9uXiIyZYCQIdcbi0q8PjKa8srzprQXCYQPyTu6F2ugl/eo9cE5fXcTll FwX+OArSG85awdKLMFJXGBDrCOEDGCE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740632056; x=1772168056; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NQl3Kropd5OekMlh1r+3EeI5CMMdc9zeGRnG8UmjcIk=; b=Gz22PiZj8BHc3UtHbX9pGocxUK0aY7vC60G3QHE4iNbUNONXpgj2x6/u xm+BlUqFda/14cXwmzq55Tca1xj12+UcLZuV1jJjYE5NRlWXdFgBW2viq 4RresKLZqlDD9er5Mtnj7IpKptFRj9ARJfGstxAQXHZ7gTfrzwOQq1eRD T5zmDS6nsF1C5rgmOw1SYDtMN/fbBsarS9TfS45etWsTUZxhaaiUfhNs6 0UHjoYR6MFWf80aryQn/lLBpcWzcm9Ul4OsxAZEVEGd6KH8XOt+JPLwig DbhzLWJ1nRbnxQoAasw0/ozt2KG3iYJQluZ0weC9HCqAFnJAdKuvnKOuW Q==; X-CSE-ConnectionGUID: iniHvwVwSka/5kicf+nY4A== X-CSE-MsgGUID: Z1lv6MB0QH6KZQ+u1TqNPw== X-IronPort-AV: E=McAfee;i="6700,10204,11357"; a="40747907" X-IronPort-AV: E=Sophos;i="6.13,319,1732608000"; d="scan'208";a="40747907" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2025 20:54:14 -0800 X-CSE-ConnectionGUID: g0+f+jFrTBCBy3FZz0evSA== X-CSE-MsgGUID: NWB5NZXkR5eKpZmGLK4J/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,319,1732608000"; d="scan'208";a="116940829" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by orviesa006.jf.intel.com with ESMTP; 26 Feb 2025 20:54:11 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tnVuS-000Cre-2c; Thu, 27 Feb 2025 04:54:08 +0000 Date: Thu, 27 Feb 2025 12:53:29 +0800 From: kernel test robot To: zhongjinji@honor.com, akpm@linux-foundation.org Cc: 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: <202502271248.bHUExwvw-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-Server: rspam02 X-Rspamd-Queue-Id: C9A5E1C0009 X-Stat-Signature: p7ijrho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sxQdFh2R/TlhAwYJFH1odeEaw4SyrHR6WCXzVuDZnSFJtdyva+0XXDsiRcs8/wWTEahO017dzEatNDVySCJkMXk9AehL+i2kutNJxJKgK9wfHIf1OEPT3R11r5efifGSdSw3UptZg+SGCid3wvs6e/0ddeVmjhKVTVNFSvXEv1LoJ99E1r/Vfl3Rf/YtuDbNj1edezKA6sYGYpMmSe8w/PvwqNiIJ/19xICmeqzO40pJfUEKjNCD4XT+CrB3UUxC9HwM2SZQBK+Z+wWCNIMoh+HJc7+r4h4DUqRHKzGwibXOC+ccEJ4akcVodzBlaaG736MjAOUTPmFbGSJ1DY4QMGl0opKRP506Bqr9A4V3Qqw62tQXOG7yMjvxC8QQfbutcijGA== 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 warnings: [auto build test WARNING 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-006-20250227 (https://download.01.org/0day-ci/archive/20250227/202502271248.bHUExwvw-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/20250227/202502271248.bHUExwvw-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/202502271248.bHUExwvw-lkp@intel.com/ All warnings (new ones prefixed by >>): mm/page_alloc.c:6262:17: error: field name not in record or union initializer 6262 | .procname = "highatomic_reserve_ratio", | ^ mm/page_alloc.c:6262:17: note: (near initialization for 'page_alloc_sysctl_table') mm/page_alloc.c:6263:17: error: field name not in record or union initializer 6263 | .data = &highatomic_reserve_ratio, | ^ mm/page_alloc.c:6263:17: note: (near initialization for 'page_alloc_sysctl_table') mm/page_alloc.c:6263:35: error: initialization of 'const char *' from incompatible pointer type 'int *' [-Werror=incompatible-pointer-types] 6263 | .data = &highatomic_reserve_ratio, | ^ mm/page_alloc.c:6263:35: note: (near initialization for 'page_alloc_sysctl_table[5].procname') mm/page_alloc.c:6264:17: error: field name not in record or union initializer 6264 | .maxlen = sizeof(highatomic_reserve_ratio), | ^ mm/page_alloc.c:6264:17: note: (near initialization for 'page_alloc_sysctl_table') >> mm/page_alloc.c:6264:35: warning: initialization of 'const char *' from 'long unsigned int' makes pointer from integer without a cast [-Wint-conversion] 6264 | .maxlen = sizeof(highatomic_reserve_ratio), | ^~~~~~ mm/page_alloc.c:6264:35: note: (near initialization for 'page_alloc_sysctl_table[6].procname') mm/page_alloc.c:6265:17: error: field name not in record or union initializer 6265 | .mode = 0644, | ^ mm/page_alloc.c:6265:17: note: (near initialization for 'page_alloc_sysctl_table') >> mm/page_alloc.c:6265:35: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 6265 | .mode = 0644, | ^~~~ mm/page_alloc.c:6265:35: note: (near initialization for 'page_alloc_sysctl_table[7].procname') mm/page_alloc.c:6266:17: error: field name not in record or union initializer 6266 | .proc_handler = proc_dointvec_minmax, | ^ mm/page_alloc.c:6266:17: note: (near initialization for 'page_alloc_sysctl_table') mm/page_alloc.c:6266:35: error: initialization of 'const char *' from incompatible pointer type 'int (*)(const struct ctl_table *, int, void *, size_t *, loff_t *)' {aka 'int (*)(const struct ctl_table *, int, void *, long unsigned int *, long long int *)'} [-Werror=incompatible-pointer-types] 6266 | .proc_handler = proc_dointvec_minmax, | ^~~~~~~~~~~~~~~~~~~~ mm/page_alloc.c:6266:35: note: (near initialization for 'page_alloc_sysctl_table[8].procname') mm/page_alloc.c:6267:17: error: field name not in record or union initializer 6267 | .extra1 = SYSCTL_ZERO, | ^ mm/page_alloc.c:6267:17: note: (near initialization for 'page_alloc_sysctl_table') mm/page_alloc.c:6228:59: warning: missing braces around initializer [-Wmissing-braces] 6228 | static const struct ctl_table page_alloc_sysctl_table[] = { | ^ mm/page_alloc.c:6269:9: error: expected identifier or '(' before '{' token 6269 | { | ^ mm/page_alloc.c:6275:10: error: expected identifier or '(' before ',' token 6275 | }, | ^ mm/page_alloc.c:6174:12: warning: 'lowmem_reserve_ratio_sysctl_handler' defined but not used [-Wunused-function] 6174 | static int lowmem_reserve_ratio_sysctl_handler(const struct ctl_table *table, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/suspend.h:5, from mm/page_alloc.c:28: include/linux/swap.h:590:12: warning: 'folio_alloc_swap' defined but not used [-Wunused-function] 590 | static int folio_alloc_swap(struct folio *folio, gfp_t gfp_mask) | ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +6264 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