public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chengwen Feng <fengchengwen@huawei.com>,
	Bjorn Helgaas <helgaas@kernel.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	"Rafael J . Wysocki" <rafael@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Huacai Chen <chenhuacai@kernel.org>,
	WANG Xuerui <kernel@xen0n.name>, Paul Walmsley <pjw@kernel.org>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Albert Ou <aou@eecs.berkeley.edu>,
	Alexandre Ghiti <alex@ghiti.fr>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H . Peter Anvin" <hpa@zytor.com>,
	Juergen Gross <jgross@suse.com>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	Len Brown <lenb@kernel.org>, Sunil V L <sunilvl@ventanamicro.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Jonathan Cameron <jonathan.cameron@huawei.com>,
	Kees Cook <kees@kernel.org>, Yanteng Si <si.yanteng@linux.dev>,
	Sean Christopherson <seanjc@google.com>,
	Kai Huang <kai.huang@intel.com>,
	Tom Lendacky <thomas.lendacky@amd.com>,
	Thomas Huth <thuth@redhat.com>
Subject: Re: [PATCH v9 4/7] x86/acpi: Add acpi_get_cpu_uid() implementation and update Xen users
Date: Sat, 21 Mar 2026 10:01:20 +0800	[thread overview]
Message-ID: <202603210907.zP8613EA-lkp@intel.com> (raw)
In-Reply-To: <20260319065735.45954-5-fengchengwen@huawei.com>

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

           reply	other threads:[~2026-03-21  2:07 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20260319065735.45954-5-fengchengwen@huawei.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=202603210907.zP8613EA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=boris.ostrovsky@oracle.com \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=chenhuacai@kernel.org \
    --cc=corbet@lwn.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=fengchengwen@huawei.com \
    --cc=helgaas@kernel.org \
    --cc=hpa@zytor.com \
    --cc=jgross@suse.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=kai.huang@intel.com \
    --cc=kees@kernel.org \
    --cc=kernel@xen0n.name \
    --cc=lenb@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=rafael@kernel.org \
    --cc=seanjc@google.com \
    --cc=si.yanteng@linux.dev \
    --cc=skhan@linuxfoundation.org \
    --cc=sunilvl@ventanamicro.com \
    --cc=tglx@kernel.org \
    --cc=thomas.lendacky@amd.com \
    --cc=thuth@redhat.com \
    --cc=will@kernel.org \
    --cc=x86@kernel.org \
    /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