Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tony Luck <tony.luck@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 3/4] ACPI/MRRM: Add "node" symlink to /sys/devices/system/memory/rangeX
Date: Tue, 11 Feb 2025 19:23:26 +0800	[thread overview]
Message-ID: <202502111945.ZftqkQvL-lkp@intel.com> (raw)
In-Reply-To: <20250210211223.6139-4-tony.luck@intel.com>

Hi Tony,

kernel test robot noticed the following build errors:

[auto build test ERROR on a64dcfb451e254085a7daee5fe51bf22959d52d3]

url:    https://github.com/intel-lab-lkp/linux/commits/Tony-Luck/ACPICA-Define-MRRM-ACPI-table/20250211-051427
base:   a64dcfb451e254085a7daee5fe51bf22959d52d3
patch link:    https://lore.kernel.org/r/20250210211223.6139-4-tony.luck%40intel.com
patch subject: [PATCH 3/4] ACPI/MRRM: Add "node" symlink to /sys/devices/system/memory/rangeX
config: x86_64-randconfig-003-20250211 (https://download.01.org/0day-ci/archive/20250211/202502111945.ZftqkQvL-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250211/202502111945.ZftqkQvL-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502111945.ZftqkQvL-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/acpi/acpi_mrrm.c:135:31: error: no member named 'node' in 'struct zone'
     135 |                                 node = node_devices[zone->node];
         |                                                     ~~~~  ^
   1 error generated.


vim +135 drivers/acpi/acpi_mrrm.c

   121	
   122	static __init int add_node_link(struct mrrm_mem_range_entry *entry)
   123	{
   124		struct node *node = NULL;
   125		int ret = 0;
   126		int nid;
   127	
   128		for_each_online_node(nid) {
   129			for (int z = 0; z < MAX_NR_ZONES; z++) {
   130				struct zone *zone = NODE_DATA(nid)->node_zones + z;
   131	
   132				if (!populated_zone(zone))
   133					continue;
   134				if (zone_intersects(zone, PHYS_PFN(entry->base), PHYS_PFN(entry->length))) {
 > 135					node = node_devices[zone->node];
   136					goto found;
   137				}
   138			}
   139		}
   140	found:
   141		if (node)
   142			ret = sysfs_create_link(&entry->dev.kobj, &node->dev.kobj, "node");
   143	
   144		return ret;
   145	}
   146	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

           reply	other threads:[~2025-02-11 11:23 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20250210211223.6139-4-tony.luck@intel.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202502111945.ZftqkQvL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox