* Re: [PATCH v9 4/7] x86/acpi: Add acpi_get_cpu_uid() implementation and update Xen users
[not found] <20260319065735.45954-5-fengchengwen@huawei.com>
@ 2026-03-21 2:01 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-21 2:01 UTC (permalink / raw)
To: Chengwen Feng, Bjorn Helgaas, Catalin Marinas, Will Deacon,
Rafael J . Wysocki
Cc: llvm, oe-kbuild-all, Jonathan Corbet, Shuah Khan, Huacai Chen,
WANG Xuerui, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
Dave Hansen, x86, H . Peter Anvin, Juergen Gross, Boris Ostrovsky,
Len Brown, Sunil V L, Mark Rutland, Jonathan Cameron, Kees Cook,
Yanteng Si, Sean Christopherson, Kai Huang, Tom Lendacky,
Thomas Huth
Hi Chengwen,
kernel test robot noticed the following build errors:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on tip/x86/core pci/next pci/for-linus linus/master v7.0-rc4 next-20260320]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Chengwen-Feng/arm64-acpi-Add-acpi_get_cpu_uid-and-switch-arm_cspmu-to-use-it/20260320-194713
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
patch link: https://lore.kernel.org/r/20260319065735.45954-5-fengchengwen%40huawei.com
patch subject: [PATCH v9 4/7] x86/acpi: Add acpi_get_cpu_uid() implementation and update Xen users
config: x86_64-buildonly-randconfig-005-20260321 (https://download.01.org/0day-ci/archive/20260321/202603210907.zP8613EA-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260321/202603210907.zP8613EA-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/202603210907.zP8613EA-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/xen/enlighten_hvm.c:165:6: error: call to undeclared function 'acpi_get_cpu_uid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
165 | if (acpi_get_cpu_uid(cpu, &cpu_uid) == 0)
| ^
1 error generated.
vim +/acpi_get_cpu_uid +165 arch/x86/xen/enlighten_hvm.c
151
152 static int xen_cpu_up_prepare_hvm(unsigned int cpu)
153 {
154 u32 cpu_uid;
155 int rc = 0;
156
157 /*
158 * If a CPU was offlined earlier and offlining timed out then the
159 * lock mechanism is still initialized. Uninit it unconditionally
160 * as it's safe to call even if already uninited. Interrupts and
161 * timer have already been handled in xen_cpu_dead_hvm().
162 */
163 xen_uninit_lock_cpu(cpu);
164
> 165 if (acpi_get_cpu_uid(cpu, &cpu_uid) == 0)
166 per_cpu(xen_vcpu_id, cpu) = cpu_uid;
167 else
168 per_cpu(xen_vcpu_id, cpu) = cpu;
169 xen_vcpu_setup(cpu);
170 if (!xen_have_vector_callback)
171 return 0;
172
173 if (xen_percpu_upcall) {
174 rc = xen_set_upcall_vector(cpu);
175 if (rc) {
176 WARN(1, "HVMOP_set_evtchn_upcall_vector"
177 " for CPU %d failed: %d\n", cpu, rc);
178 return rc;
179 }
180 }
181
182 if (xen_feature(XENFEAT_hvm_safe_pvclock))
183 xen_setup_timer(cpu);
184
185 rc = xen_smp_intr_init(cpu);
186 if (rc) {
187 WARN(1, "xen_smp_intr_init() for CPU %d failed: %d\n",
188 cpu, rc);
189 }
190 return rc;
191 }
192
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread