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 D5BADC36013 for ; Fri, 28 Mar 2025 13:15:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8670C280142; Fri, 28 Mar 2025 09:15:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7EFB228013E; Fri, 28 Mar 2025 09:15:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 66D1F280142; Fri, 28 Mar 2025 09:15:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 42C9D28013E for ; Fri, 28 Mar 2025 09:15:54 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 7F03CC015B for ; Fri, 28 Mar 2025 13:15:55 +0000 (UTC) X-FDA: 83271007470.15.2E46BB3 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by imf19.hostedemail.com (Postfix) with ESMTP id 7334C1A0013 for ; Fri, 28 Mar 2025 13:15:52 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=O6Ny+Aw2; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 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=1743167753; 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=UjwAuOTk/s4tQpGJ36/2okWSn3hKrzNnI3DSYO/GAXo=; b=U9akOPVWv6EV7ryepoxVousZzF+3n2o/10LAQc9p2Ny5RgujHcbv/bAg1bpg6TjtEPJ3lW 5DjUjcVHEOCsXcXP26XIAvt8IMge+Wz1OoP/9re0HEZnx9PLcWvZVjJJ5Dl1CHVElE55YM fUvaU9D1L2j/ztk9GWDIYfkBZdavVy8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1743167753; a=rsa-sha256; cv=none; b=kncG+0ERKkwpZwZGRcYOGz7LLa40qs2/Ju8Pl3uCCdUdn6k6zh9OdH3Up7kxnPMcIlxEuO ECA5Lj3/4klioeub6BpomqPtMcPS2Nx7Ggs5RaiQ716WxSTPEuYKpp2YBuOVRuJl7HIwVx bG0RANSZKWBhXWKcVhcPq+CIRc5v7UU= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=O6Ny+Aw2; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1743167753; x=1774703753; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QwSIXy+3yg65uEoLr+hIy5mMBOunDFf0avciADMFhc0=; b=O6Ny+Aw2P+oA+nFsw9QOsroQX9sYl7th0ixey6+hcF7SYaJiu4xmp6IV EabVEgkVovisqUSoZKpP2X7mdG0WZeqRxRu5O33ZQf++4GhSJIjwJI1X2 QAfRmBzsTgTsCXmEyG3CTqNqjfVIDkagfzXW51bSqCzJhCmOHGvTpTLTE G7mD+7jCDPyIcnIdWP4eksLNQWoc4pRffhP3F8B0PBuRwdVx3jOr40k4Z moXY2+gZX94TZwr4QaPN8H47NQPhZZXJFLAsV1G7QPXb/dZlZurKxlRCt wRWN1bDGqOfEOOTNe+Cqhms+w5usNDccxmimj09LbABzHJRfT1ni6UNqQ Q==; X-CSE-ConnectionGUID: 8k8v4niAQh6Fw9rUertbzg== X-CSE-MsgGUID: qA7CNOF3RiWb+6KH9LjKnQ== X-IronPort-AV: E=McAfee;i="6700,10204,11387"; a="44657838" X-IronPort-AV: E=Sophos;i="6.14,283,1736841600"; d="scan'208";a="44657838" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2025 06:15:51 -0700 X-CSE-ConnectionGUID: EwJ9838WTrSb5sfy554dUg== X-CSE-MsgGUID: g0gX6VhxRGS1RHFNcamB7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,283,1736841600"; d="scan'208";a="129583228" Received: from lkp-server02.sh.intel.com (HELO e98e3655d6d2) ([10.239.97.151]) by fmviesa003.fm.intel.com with ESMTP; 28 Mar 2025 06:15:46 -0700 Received: from kbuild by e98e3655d6d2 with local (Exim 4.96) (envelope-from ) id 1ty9Ym-0007SU-10; Fri, 28 Mar 2025 13:15:44 +0000 Date: Fri, 28 Mar 2025 21:15:06 +0800 From: kernel test robot To: Yuquan Wang , Jonathan.Cameron@huawei.com, dan.j.williams@intel.com, rppt@kernel.org, rafael@kernel.org, lenb@kernel.org, akpm@linux-foundation.org, alison.schofield@intel.com, rrichter@amd.com, bfaccini@nvidia.com, haibo1.xu@intel.com, david@redhat.com Cc: oe-kbuild-all@lists.linux.dev, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, chenbaozi@phytium.com.cn, Yuquan Wang Subject: Re: [PATCH v2] mm: numa_memblks: introduce numa_add_reserved_memblk Message-ID: <202503282026.QNaOAK79-lkp@intel.com> References: <20250328092132.2695299-1-wangyuquan1236@phytium.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250328092132.2695299-1-wangyuquan1236@phytium.com.cn> X-Stat-Signature: 5exnkpbkitgdud9aoa4u96xey75xa7nd X-Rspam-User: X-Rspamd-Queue-Id: 7334C1A0013 X-Rspamd-Server: rspam08 X-HE-Tag: 1743167752-552171 X-HE-Meta: U2FsdGVkX1+eEG9ryAAE96/GzRnDSgNcIu8tnXNKDOJMZ5kJPq4gpOcr0BO6Ml8q4G7gQEYvvXkPvY86TFbNX9nV9Ca3pAh+HfNY8PYtRvzdjS3EZ3hrH09AFvQqn6PMbjkCry5iH/rKC8wQoHIL6wAz2JcwG9sIHlUA55phe85Ax765oJjNU5w0O7HRUdoJPvMy7+8oq+Cmpk/x5QIkH6/xt0QRVEqnGbdkiBmmTDrH6QVDk4J/6Zh98/uFWukUMR+4PSg0gj4SXJIeahYWV1ZetpPqhDuUVZPeHxzKtehkxD4Jdm2Z/H2uMeKsVXkx1sPwOV/xK6CiFZnBrKL0wGFUHw9J4080ttU+O2WlFfqjkpZArFUdg9VwedASA9r3DHnU03yeLL+bzbO3wcgABk1lGHtS/CsiIItKEZUcZtwRlClarEDVisR3Estqv3D8WWf6mar64HrzJl3dheRLSOQljbXVLqZvcaW+DClyxaK38KKIlLUZMQFv8vKW40zgazusvYdw3l0dNS4a4GpcpcfmLqhGOfyB5huFD08TjDR+ua/9VHLE+CbMH6LzbYLFIoD3pIugbDoFu9PUGP1/FLnIyBFSXhRjHzYlZvter2Hg1IoNyrFK9Tbnk7qA4D0m5p6TzYcxO+nQlCG/+RFMnRVOleZgUVGW/hTm5znMOYm1q6fRa/zQn6zlbjah8sTqPiM+ZyLmtCZUd6Xe7Mkw2MTEiOKmngLj6ikgxAZIcdqFff7YuhKP+600qP2KXDf4ccDWUkIHxRI/p8qhB0AlyF/eKfDHGLnoZUDEFP3nUtUQ6unlR3PnsN6tfN8SGIIswNeCkub08v9IJ9wparCDnvqpEMhzIkfQN8/Pp5i67zdgOPNS+X+txmnxR9H/BPc+mZGvyBt4EsA4gmzY2qKSuQBVltPRa6w7AgQZzMYKElDIhpKQpuxSHwSpzLe9utn12t4BvPNDrWAbkFnvAUw Kckliusp rmpcx1O80cg+OkfY8M/4Uxb1ECXbYHAm30x9KG1q9nIKX06Gr1ypuZR4z532BK57ApF7ojE1fKWyhZchKlB/7EXG6Pby5tnLH82GEgWxP25Zv5GVqpxMeBU03S9q+0BZtWGJBGaH5CzQ1qB3sOuveZ4uDG5HKJurEG3HA65FZaKricz/rs+gZBb3ocHPxjzoLYNQOjTNN0ALry0vrFpWuF83/FhxoSKtODY2hlaO2nz2v1b2p0ewmLnbnPAVX9nnn6a+i5dWwacQXdI8FdD+d2xbCAbyCcIzAOaVitQLPtr5agh8r9hl4r4nwz4vQpUKEhDxXY/PArneNp7TtICO5p2LDqpA7u3wQX+UBmCAPqYcIj0LjNK6y7yfo9ql9b/1Bd0e6o2sE0PvS3OrmGWXUkcqCuAHZrXl2FhG3vCurFlXbL3e6AW9ynhCbHQ== 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 Yuquan, 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/Yuquan-Wang/mm-numa_memblks-introduce-numa_add_reserved_memblk/20250328-172428 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20250328092132.2695299-1-wangyuquan1236%40phytium.com.cn patch subject: [PATCH v2] mm: numa_memblks: introduce numa_add_reserved_memblk config: loongarch-randconfig-002-20250328 (https://download.01.org/0day-ci/archive/20250328/202503282026.QNaOAK79-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250328/202503282026.QNaOAK79-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/202503282026.QNaOAK79-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/build_bug.h:5, from include/linux/container_of.h:5, from include/linux/list.h:5, from include/linux/module.h:12, from drivers/acpi/numa/srat.c:10: drivers/acpi/numa/srat.c: In function 'acpi_parse_cfmws': >> drivers/acpi/numa/srat.c:461:13: error: implicit declaration of function 'numa_add_reserved_memblk' [-Wimplicit-function-declaration] 461 | if (numa_add_reserved_memblk(node, start, end) < 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:57:52: note: in definition of macro '__trace_if_var' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ drivers/acpi/numa/srat.c:461:9: note: in expansion of macro 'if' 461 | if (numa_add_reserved_memblk(node, start, end) < 0) { | ^~ vim +/numa_add_reserved_memblk +461 drivers/acpi/numa/srat.c 431 432 static int __init acpi_parse_cfmws(union acpi_subtable_headers *header, 433 void *arg, const unsigned long table_end) 434 { 435 struct acpi_cedt_cfmws *cfmws; 436 int *fake_pxm = arg; 437 u64 start, end; 438 int node; 439 440 cfmws = (struct acpi_cedt_cfmws *)header; 441 start = cfmws->base_hpa; 442 end = cfmws->base_hpa + cfmws->window_size; 443 444 /* 445 * The SRAT may have already described NUMA details for all, 446 * or a portion of, this CFMWS HPA range. Extend the memblks 447 * found for any portion of the window to cover the entire 448 * window. 449 */ 450 if (!numa_fill_memblks(start, end)) 451 return 0; 452 453 /* No SRAT description. Create a new node. */ 454 node = acpi_map_pxm_to_node(*fake_pxm); 455 456 if (node == NUMA_NO_NODE) { 457 pr_err("ACPI NUMA: Too many proximity domains while processing CFMWS.\n"); 458 return -EINVAL; 459 } 460 > 461 if (numa_add_reserved_memblk(node, start, end) < 0) { 462 /* CXL driver must handle the NUMA_NO_NODE case */ 463 pr_warn("ACPI NUMA: Failed to add memblk for CFMWS node %d [mem %#llx-%#llx]\n", 464 node, start, end); 465 } 466 node_set(node, numa_nodes_parsed); 467 468 /* Set the next available fake_pxm value */ 469 (*fake_pxm)++; 470 return 0; 471 } 472 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki