All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: James Morse <james.morse@arm.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [morse:virtual_cpu_hotplug/rfc/v1 2/32] arch/x86/kernel/acpi/boot.c:821:15: error: implicit declaration of function 'acpi_register_lapic'; did you mean 'acpi_register_ioapic'?
Date: Sun, 5 Feb 2023 12:25:53 +0800	[thread overview]
Message-ID: <202302051237.XWuXpEWo-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git virtual_cpu_hotplug/rfc/v1
head:   81295db7555df74bd02dab0b7e87b512d3a3de34
commit: 2be7d920d7bc2cca18c93b27d9bca407309b2c34 [2/32] ACPI: Move ACPI_HOTPLUG_CPU to be enabled per architecture
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20230205/202302051237.XWuXpEWo-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=2be7d920d7bc2cca18c93b27d9bca407309b2c34
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse virtual_cpu_hotplug/rfc/v1
        git checkout 2be7d920d7bc2cca18c93b27d9bca407309b2c34
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/x86/kernel/acpi/boot.c: In function 'acpi_map_cpu':
>> arch/x86/kernel/acpi/boot.c:821:15: error: implicit declaration of function 'acpi_register_lapic'; did you mean 'acpi_register_ioapic'? [-Werror=implicit-function-declaration]
     821 |         cpu = acpi_register_lapic(physid, acpi_id, ACPI_MADT_ENABLED);
         |               ^~~~~~~~~~~~~~~~~~~
         |               acpi_register_ioapic
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for ACPI_HOTPLUG_CPU
   Depends on [n]: ACPI [=y] && ACPI_PROCESSOR [=y] && HOTPLUG_CPU [=n]
   Selected by [y]:
   - X86 [=y] && ACPI [=y]


vim +821 arch/x86/kernel/acpi/boot.c

009cbadb6e9364 arch/x86/kernel/acpi/boot.c  Sam Ravnborg     2008-02-01  815  
febf2407418a2d arch/x86/kernel/acpi/boot.c  Vitaly Kuznetsov 2017-02-06  816  int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, u32 acpi_id,
febf2407418a2d arch/x86/kernel/acpi/boot.c  Vitaly Kuznetsov 2017-02-06  817  		 int *pcpu)
^1da177e4c3f41 arch/i386/kernel/acpi/boot.c Linus Torvalds   2005-04-16  818  {
73fea175303926 arch/i386/kernel/acpi/boot.c Ashok Raj        2006-09-26  819  	int cpu;
ee943a82b69745 arch/x86/kernel/acpi/boot.c  Rusty Russell    2008-12-31  820  
febf2407418a2d arch/x86/kernel/acpi/boot.c  Vitaly Kuznetsov 2017-02-06 @821  	cpu = acpi_register_lapic(physid, acpi_id, ACPI_MADT_ENABLED);
7e1f85f96def94 arch/x86/kernel/acpi/boot.c  Jiang Liu        2013-09-02  822  	if (cpu < 0) {
14fad24d0520c6 arch/x86/kernel/acpi/boot.c  Heiner Kallweit  2021-05-13  823  		pr_info("Unable to map lapic to logical cpu number\n");
7e1f85f96def94 arch/x86/kernel/acpi/boot.c  Jiang Liu        2013-09-02  824  		return cpu;
73fea175303926 arch/i386/kernel/acpi/boot.c Ashok Raj        2006-09-26  825  	}
73fea175303926 arch/i386/kernel/acpi/boot.c Ashok Raj        2006-09-26  826  
d8191fa4a33fdc arch/x86/kernel/acpi/boot.c  Alex Chiang      2010-02-22  827  	acpi_processor_set_pdc(handle);
0271f91003d370 arch/x86/kernel/acpi/boot.c  Haicheng Li      2010-02-04  828  	acpi_map_cpu2node(handle, cpu, physid);
73fea175303926 arch/i386/kernel/acpi/boot.c Ashok Raj        2006-09-26  829  
73fea175303926 arch/i386/kernel/acpi/boot.c Ashok Raj        2006-09-26  830  	*pcpu = cpu;
7e1f85f96def94 arch/x86/kernel/acpi/boot.c  Jiang Liu        2013-09-02  831  	return 0;
^1da177e4c3f41 arch/i386/kernel/acpi/boot.c Linus Torvalds   2005-04-16  832  }
d02dc27db0dc74 arch/x86/kernel/acpi/boot.c  Hanjun Guo       2015-01-04  833  EXPORT_SYMBOL(acpi_map_cpu);
^1da177e4c3f41 arch/i386/kernel/acpi/boot.c Linus Torvalds   2005-04-16  834  

:::::: The code at line 821 was first introduced by commit
:::::: febf2407418a2d6c042fcd77b206040449cb9a70 x86/ACPI: keep x86_cpu_to_acpiid mapping valid on CPU hotplug

:::::: TO: Vitaly Kuznetsov <vkuznets@redhat.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

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

                 reply	other threads:[~2023-02-05  4:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202302051237.XWuXpEWo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=james.morse@arm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.