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 1FDF9C3601E for ; Thu, 10 Apr 2025 07:04:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 71EB46B029E; Thu, 10 Apr 2025 03:04:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6CD676B02A0; Thu, 10 Apr 2025 03:04:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 595B06B02A4; Thu, 10 Apr 2025 03:04:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 3A5486B029E for ; Thu, 10 Apr 2025 03:04:18 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 241181C9062 for ; Thu, 10 Apr 2025 07:04:20 +0000 (UTC) X-FDA: 83317245480.16.1F82069 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by imf01.hostedemail.com (Postfix) with ESMTP id 6806840007 for ; Thu, 10 Apr 2025 07:04:17 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k5NB1kL4; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.198.163.10 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1744268658; a=rsa-sha256; cv=none; b=n05xFCUkcuVNuSL5kGPD3vARMNm4Up5ta3iZgniFtsUWXoKS7UOQcEJ3IL0wyu0H9eMdBx gCmCHv9psvU5sFdgXtJHIha7SbTAbk7zaBDUlLJD9tzVojhUPPficL2GUAQaKL3ajpcTpS RSgSn/wgiJXTW7YsDBuZVzpXjXWQA4w= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k5NB1kL4; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.198.163.10 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=1744268658; 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=Bh8gEnTLYgNxSprJyioIUkK1rQjuUy1er6MeIKYXydE=; b=0th2VlcyzJBqX0yA7726frxJ94OU88X8n0f4J0kCAXq75LWjeu2s3Fjt7rhHhMPlWC9J5u 9cGx8LnTOubob1mIw8PcmfGJyF8XGkxhRMxd8Gun7skSvS7sSgJLH407axiMqpuzJWNzeT p3SSaR0/Q1IPdfz0ycxOQXWLhU+ZP0U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1744268658; x=1775804658; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=a+gKW0Py71TalASop7ZxdQ6rsdM207Gm+oHvKtY/2NU=; b=k5NB1kL4JxN/IdJBKN1M3clVLUxl5RALDeVH8oyIyKHoI84TBJfY4768 8Gb83jehQeLR2yK39/9GzZye82RYlf7RgJDH4S60Ndqu0KqhPMscjT2p1 l9lmG1rqQPQxlUyLk+Zkvi5Wv+FOe0VMV0UEQ/0H1gB5pPhmqeOxk6RCG W3wWANDAbkpnH2PSnlxhC7SbnNQkJZki+cqo6BqyjjYASm0rtjMB38Xpk P9VD00RLa+/Zo4EK6DVjpgmoRckzix6ysGFnc3i1oIewInWWCsw7ltWC0 Fw+7NTer2t5ovSk7mnyjFodTT+zjrQN37d7tUxNcmZ7J9o/kk032K9iz/ w==; X-CSE-ConnectionGUID: U3vuNT3AR8Kt9pv494jQtw== X-CSE-MsgGUID: dzDHlAuGTcKdzlEgR8q8/Q== X-IronPort-AV: E=McAfee;i="6700,10204,11399"; a="57148365" X-IronPort-AV: E=Sophos;i="6.15,202,1739865600"; d="scan'208";a="57148365" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2025 00:04:16 -0700 X-CSE-ConnectionGUID: QW5AF7cFTy6leIoI2btU1Q== X-CSE-MsgGUID: k29QXuKITxe/4SVEciXV2Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,202,1739865600"; d="scan'208";a="133677191" Received: from lkp-server01.sh.intel.com (HELO b207828170a5) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 10 Apr 2025 00:04:13 -0700 Received: from kbuild by b207828170a5 with local (Exim 4.96) (envelope-from ) id 1u2lxK-0009jx-22; Thu, 10 Apr 2025 07:04:10 +0000 Date: Thu, 10 Apr 2025 15:03:52 +0800 From: kernel test robot To: Donet Tom , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, David Hildenbrand , Andrew Morton , Mike Rapoport Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Ritesh Harjani , rafael@kernel.org, Danilo Krummrich , Donet Tom Subject: Re: [PATCH 1/2] mm/memblock: Added a New Memblock Function to Check if the Current Node's Memblock Region Intersects with a Memory Block Message-ID: <202504101459.iFHlVGBA-lkp@intel.com> References: <50142a29010463f436dc5c4feb540e5de3bb09df.1744175097.git.donettom@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50142a29010463f436dc5c4feb540e5de3bb09df.1744175097.git.donettom@linux.ibm.com> X-Rspamd-Queue-Id: 6806840007 X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RoTU6 /diSI/H1 jHkJ6nogIxB8lmoK4wYyqcXtWwUHERo3v1sMOeiK3vdn4L5Q/28asiaVvC5lcZVrWILfCXCtpodyHWvboLFo8NTukl0O1EPb97uhJPaIvAakzSA/T5iQl2UTQ4oXSGrlvmM/mxBaCDPLj6o8F4V9mmURrQfzksXk+/mLqZLNtGNV6gOOjQY2a/R/30dMqQ1Uke+h1XjnRYp9q/iWBvYphxgST3wznVSkI7U7DnoFslH5YR80OMkAJ45P8MrdkgvgzpwqDz/h554k1RUcyV77Eh8cZ+e926ewSePpC5NUYDZOidwgPOTgUf9lJzU8UVtGzpnuInl2E3vv4PvMMMehoyd7tAOjHUGl9yXT4KfRQzUDZvs2Ah4g4PI8MzAc2BtdFHAJvKSTgvdEtC35c+mhOFCgC9y3gZS2AKhaedHyOhNtWZaydybAp3QnpwF6/NweQVudf7T0HXJajbPA= 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 Donet, 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/Donet-Tom/base-node-Use-curr_node_memblock_intersect_memory_block-to-Get-Memory-Block-NID-if-CONFIG_DEFERRED_STRUCT_PAGE_INIT-is-S/20250409-132924 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/50142a29010463f436dc5c4feb540e5de3bb09df.1744175097.git.donettom%40linux.ibm.com patch subject: [PATCH 1/2] mm/memblock: Added a New Memblock Function to Check if the Current Node's Memblock Region Intersects with a Memory Block config: csky-randconfig-001-20250410 (https://download.01.org/0day-ci/archive/20250410/202504101459.iFHlVGBA-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250410/202504101459.iFHlVGBA-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/202504101459.iFHlVGBA-lkp@intel.com/ All errors (new ones prefixed by >>): mm/memblock.c: In function 'curr_node_memblock_intersect_memory_block': >> mm/memblock.c:1943:22: error: 'struct memblock_region' has no member named 'nid' 1943 | if (r->nid == curr_nid) { | ^~ vim +1943 mm/memblock.c 1913 1914 /** 1915 * curr_node_memblock_intersect_memory_block: checks if the current node's memblock 1916 * region intersects with the memory block. 1917 * @start_pfn: memory block start pfn 1918 * @end_pfn: memory block end_pfn 1919 * @curr_nid: Current node 1920 * 1921 * This function takes the start and end PFN of a memory block, as well as the node ID 1922 * that is being registered. It then finds the memblock region of the current node and 1923 * checks if the passed memory block intersects with the memblock. If there is an 1924 * intersection, the function returns true; otherwise, it returns false. 1925 * 1926 * Return: 1927 * If the current node's memblock region intersects with the memory block, it returns 1928 * true; otherwise, it returns false. 1929 */ 1930 bool __init_memblock curr_node_memblock_intersect_memory_block(unsigned long start_pfn, 1931 unsigned long end_pfn, int curr_nid) 1932 { 1933 struct memblock_region *r; 1934 unsigned long r_start, r_end; 1935 unsigned long size = end_pfn - start_pfn; 1936 unsigned long r_size = 0; 1937 1938 for_each_mem_region(r) { 1939 r_start = PFN_DOWN(r->base); 1940 r_end = PFN_DOWN(r->base + r->size); 1941 r_size = r_end - r_start; 1942 > 1943 if (r->nid == curr_nid) { 1944 if (size > r_size) { 1945 /* 1946 * The memory block size is greater than the memblock 1947 * region size, meaning multiple memblocks can be present 1948 * within a single memory block. If the memblock's start 1949 * or end is within the memory block's start and end, It 1950 * indicates that the memblock is part of this memory block. 1951 * Therefore, the memory block can be added to the node 1952 * where the memblock resides. 1953 */ 1954 if (in_range(r_start, start_pfn, size) || 1955 in_range(r_end, start_pfn, size)) 1956 return true; 1957 } else { 1958 /* 1959 * The memory block size is less than or equal to the 1960 * memblock size, meaning multiple memory blocks can 1961 * be part of a single memblock region. If the memory 1962 * block's start or end is within the memblock's start 1963 * and end, it indicates that the memory block is part of 1964 * the memblock. Therefore, the memory block can be added 1965 * to the node where the memblock resides. 1966 */ 1967 if (in_range(start_pfn, r_start, r_size) || 1968 in_range(end_pfn, r_start, r_size)) 1969 return true; 1970 } 1971 } 1972 } 1973 return false; 1974 } 1975 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki