From: kernel test robot <lkp@intel.com>
To: Bibo Mao <maobibo@loongson.cn>,
Huacai Chen <chenhuacai@kernel.org>,
Jianmin Lv <lvjianmin@loongson.cn>
Cc: oe-kbuild-all@lists.linux.dev, loongarch@lists.linux.dev,
linux-kernel@vger.kernel.org, lixianglai@loongson.cn,
WANG Xuerui <kernel@xen0n.name>
Subject: Re: [PATCH v2] LoongArch: Fix cpu hotplug issue
Date: Tue, 22 Oct 2024 06:01:49 +0800 [thread overview]
Message-ID: <202410220508.9OO5jJgk-lkp@intel.com> (raw)
In-Reply-To: <20241021080418.644342-1-maobibo@loongson.cn>
Hi Bibo,
kernel test robot noticed the following build errors:
[auto build test ERROR on 42f7652d3eb527d03665b09edac47f85fb600924]
url: https://github.com/intel-lab-lkp/linux/commits/Bibo-Mao/LoongArch-Fix-cpu-hotplug-issue/20241021-160525
base: 42f7652d3eb527d03665b09edac47f85fb600924
patch link: https://lore.kernel.org/r/20241021080418.644342-1-maobibo%40loongson.cn
patch subject: [PATCH v2] LoongArch: Fix cpu hotplug issue
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20241022/202410220508.9OO5jJgk-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241022/202410220508.9OO5jJgk-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/202410220508.9OO5jJgk-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/loongarch/kernel/setup.c: In function 'topo_add_cpu':
>> arch/loongarch/kernel/setup.c:383:9: error: '__cpu_logical_map' undeclared (first use in this function); did you mean 'cpu_logical_map'?
383 | __cpu_logical_map[possible_cpus] = physid;
| ^~~~~~~~~~~~~~~~~
| cpu_logical_map
arch/loongarch/kernel/setup.c:383:9: note: each undeclared identifier is reported only once for each function it appears in
arch/loongarch/kernel/setup.c: In function 'topo_init':
arch/loongarch/kernel/setup.c:391:9: error: '__cpu_logical_map' undeclared (first use in this function); did you mean 'cpu_logical_map'?
391 | __cpu_logical_map[0] = loongson_sysconf.boot_cpu_id;
| ^~~~~~~~~~~~~~~~~
| cpu_logical_map
vim +383 arch/loongarch/kernel/setup.c
364
365 int topo_add_cpu(int physid)
366 {
367 int cpu;
368
369 if (!bsp_added && (physid == loongson_sysconf.boot_cpu_id)) {
370 bsp_added = true;
371 return 0;
372 }
373
374 cpu = topo_get_cpu(physid);
375 if (cpu >= 0) {
376 pr_warn("Adding duplicated physical cpuid 0x%x\n", physid);
377 return -EEXIST;
378 }
379
380 if (possible_cpus >= nr_cpu_ids)
381 return -ERANGE;
382
> 383 __cpu_logical_map[possible_cpus] = physid;
384 cpu = possible_cpus++;
385 return cpu;
386 }
387
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-10-21 22:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 8:04 Bibo Mao
2024-10-21 14:32 ` Huacai Chen
2024-10-22 1:17 ` maobibo
2024-10-22 1:31 ` Huacai Chen
2024-10-28 12:37 ` maobibo
2024-10-29 10:36 ` Huacai Chen
2024-10-29 11:48 ` maobibo
2024-10-30 8:12 ` Huacai Chen
2024-10-30 8:25 ` maobibo
2024-10-30 8:34 ` Huacai Chen
2024-10-30 8:47 ` maobibo
2024-10-30 8:59 ` Huacai Chen
2024-10-30 9:10 ` maobibo
2024-10-30 9:20 ` Huacai Chen
2024-10-29 11:52 ` maobibo
2024-10-21 22:01 ` kernel test robot [this message]
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=202410220508.9OO5jJgk-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenhuacai@kernel.org \
--cc=kernel@xen0n.name \
--cc=linux-kernel@vger.kernel.org \
--cc=lixianglai@loongson.cn \
--cc=loongarch@lists.linux.dev \
--cc=lvjianmin@loongson.cn \
--cc=maobibo@loongson.cn \
--cc=oe-kbuild-all@lists.linux.dev \
/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
all inboxes | Powered by JetHome®