public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>,
	Huacai Chen <chenhuacai@kernel.org>,
	Binbin Zhou <zhoubinbin@loongson.cn>
Cc: oe-kbuild-all@lists.linux.dev, loongarch@lists.linux.dev,
	linux-kernel@vger.kernel.org,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH 2/4] LoongArch: smp: Add all CPUs enabled by fdt to NUMA node 0
Date: Fri, 24 May 2024 06:17:44 +0800	[thread overview]
Message-ID: <202405240627.5Ey7vV8v-lkp@intel.com> (raw)
In-Reply-To: <20240521-loongarch-booting-fixes-v1-2-659c201c0370@flygoat.com>

Hi Jiaxun,

kernel test robot noticed the following build errors:

[auto build test ERROR on 124cfbcd6d185d4f50be02d5f5afe61578916773]

url:    https://github.com/intel-lab-lkp/linux/commits/Jiaxun-Yang/LoongArch-Fix-built-in-DTB-detection/20240522-041534
base:   124cfbcd6d185d4f50be02d5f5afe61578916773
patch link:    https://lore.kernel.org/r/20240521-loongarch-booting-fixes-v1-2-659c201c0370%40flygoat.com
patch subject: [PATCH 2/4] LoongArch: smp: Add all CPUs enabled by fdt to NUMA node 0
config: loongarch-randconfig-001-20240524 (https://download.01.org/0day-ci/archive/20240524/202405240627.5Ey7vV8v-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240524/202405240627.5Ey7vV8v-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/202405240627.5Ey7vV8v-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/loongarch/kernel/smp.c: In function 'fdt_smp_setup':
>> arch/loongarch/kernel/smp.c:287:17: error: implicit declaration of function 'set_cpuid_to_node'; did you mean 'set_cpu_numa_node'? [-Werror=implicit-function-declaration]
     287 |                 set_cpuid_to_node(cpuid, 0);
         |                 ^~~~~~~~~~~~~~~~~
         |                 set_cpu_numa_node
   cc1: some warnings being treated as errors


vim +287 arch/loongarch/kernel/smp.c

   259	
   260	static void __init fdt_smp_setup(void)
   261	{
   262	#ifdef CONFIG_OF
   263		unsigned int cpu, cpuid;
   264		struct device_node *node = NULL;
   265	
   266		for_each_of_cpu_node(node) {
   267			if (!of_device_is_available(node))
   268				continue;
   269	
   270			cpuid = of_get_cpu_hwid(node, 0);
   271			if (cpuid >= nr_cpu_ids)
   272				continue;
   273	
   274			if (cpuid == loongson_sysconf.boot_cpu_id) {
   275				cpu = 0;
   276			} else {
   277				cpu = cpumask_next_zero(-1, cpu_present_mask);
   278			}
   279	
   280			num_processors++;
   281			set_cpu_possible(cpu, true);
   282			set_cpu_present(cpu, true);
   283			__cpu_number_map[cpuid] = cpu;
   284			__cpu_logical_map[cpu] = cpuid;
   285	
   286			early_numa_add_cpu(cpu, 0);
 > 287			set_cpuid_to_node(cpuid, 0);
   288			numa_add_cpu(cpu);
   289		}
   290	
   291		loongson_sysconf.nr_cpus = num_processors;
   292		set_bit(0, loongson_sysconf.cores_io_master);
   293	#endif
   294	}
   295	

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

  reply	other threads:[~2024-05-23 22:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-21 20:12 [PATCH 0/4] LoongArch: Bootloader interface fixes Jiaxun Yang
2024-05-21 20:12 ` [PATCH 1/4] LoongArch: Fix built-in DTB detection Jiaxun Yang
2024-05-21 20:12 ` [PATCH 2/4] LoongArch: smp: Add all CPUs enabled by fdt to NUMA node 0 Jiaxun Yang
2024-05-23 22:17   ` kernel test robot [this message]
2024-05-21 20:12 ` [PATCH 3/4] LoongArch: Fix entry point in image header Jiaxun Yang
2024-05-21 20:12 ` [PATCH 4/4] LoongArch: Clear higher address bits in JUMP_VIRT_ADDR Jiaxun Yang

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=202405240627.5Ey7vV8v-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chenhuacai@kernel.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=stable@vger.kernel.org \
    --cc=zhoubinbin@loongson.cn \
    /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