All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [intel-tdx:guest-kexec 1/8] arch/x86/kernel/acpi/boot.c:1186:2: error: call to undeclared function 'cpu_hotplug_not_supported'; ISO C99 and later do not support implicit function declarations
Date: Wed, 23 Aug 2023 20:18:56 +0800	[thread overview]
Message-ID: <202308232008.WJtnOzai-lkp@intel.com> (raw)

tree:   https://github.com/intel/tdx.git guest-kexec
head:   7d7a8fcef30fe2515b3cce811bd7b96a14e2a75f
commit: 602cc233a076ee5e78eb0bf5bc5e0519ecc15676 [1/8] cpu/hotplug, x86/acpi: Disable CPU hotplug for ACPI MADT wakeup
config: x86_64-randconfig-073-20230823 (https://download.01.org/0day-ci/archive/20230823/202308232008.WJtnOzai-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230823/202308232008.WJtnOzai-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/202308232008.WJtnOzai-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/kernel/acpi/boot.c:1186:2: error: call to undeclared function 'cpu_hotplug_not_supported'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           cpu_hotplug_not_supported();
           ^
   1 error generated.


vim +/cpu_hotplug_not_supported +1186 arch/x86/kernel/acpi/boot.c

  1167	
  1168	#ifdef CONFIG_X86_64
  1169	static int __init acpi_parse_mp_wake(union acpi_subtable_headers *header,
  1170					     const unsigned long end)
  1171	{
  1172		struct acpi_madt_multiproc_wakeup *mp_wake;
  1173	
  1174		if (!IS_ENABLED(CONFIG_SMP))
  1175			return -ENODEV;
  1176	
  1177		mp_wake = (struct acpi_madt_multiproc_wakeup *)header;
  1178		if (BAD_MADT_ENTRY(mp_wake, end))
  1179			return -EINVAL;
  1180	
  1181		acpi_table_print_madt_entry(&header->common);
  1182	
  1183		acpi_mp_wake_mailbox_paddr = mp_wake->base_address;
  1184	
  1185		/* Disable CPU onlining/offlining */
> 1186		cpu_hotplug_not_supported();
  1187	
  1188		acpi_wake_cpu_handler_update(acpi_wakeup_cpu);
  1189	
  1190		return 0;
  1191	}
  1192	#endif				/* CONFIG_X86_64 */
  1193	#endif				/* CONFIG_X86_LOCAL_APIC */
  1194	

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

                 reply	other threads:[~2023-08-23 12:20 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=202308232008.WJtnOzai-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=llvm@lists.linux.dev \
    --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.