From: kernel test robot <lkp@intel.com>
To: Joerg Roedel <jroedel@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [joro:sev-es-kexec 8/12] arch/x86/kernel/sev.c:699:17: warning: no previous prototype for 'sev_jumptable_ap_park'
Date: Sat, 3 Jul 2021 07:26:27 +0800 [thread overview]
Message-ID: <202107030720.H2X5Jhfn-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2609 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git sev-es-kexec
head: 3467dc3cdbe65c619cd9b5c8db47da63b0655300
commit: 700d0a170431bd18f1f3e1d10befe530bce97567 [8/12] x86/sev: Park APs on AP Jump Table with GHCB protocol version 2
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git/commit/?id=700d0a170431bd18f1f3e1d10befe530bce97567
git remote add joro https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git
git fetch --no-tags joro sev-es-kexec
git checkout 700d0a170431bd18f1f3e1d10befe530bce97567
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/sev.c:699:17: warning: no previous prototype for 'sev_jumptable_ap_park' [-Wmissing-prototypes]
699 | void __noreturn sev_jumptable_ap_park(void)
| ^~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/sev.c:794:13: warning: no previous prototype for 'sev_es_setup_ap_jump_table_data' [-Wmissing-prototypes]
794 | void __init sev_es_setup_ap_jump_table_data(void *base, u32 pa)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/sev_jumptable_ap_park +699 arch/x86/kernel/sev.c
697
698 #ifdef CONFIG_HOTPLUG_CPU
> 699 void __noreturn sev_jumptable_ap_park(void)
700 {
701 local_irq_disable();
702
703 write_cr3(real_mode_header->trampoline_pgd);
704
705 /* Exiting long mode will fail if CR4.PCIDE is set. */
706 if (boot_cpu_has(X86_FEATURE_PCID))
707 cr4_clear_bits(X86_CR4_PCIDE);
708
709 asm volatile("xorq %%r15, %%r15\n"
710 "xorq %%r14, %%r14\n"
711 "xorq %%r13, %%r13\n"
712 "xorq %%r12, %%r12\n"
713 "xorq %%r11, %%r11\n"
714 "xorq %%r10, %%r10\n"
715 "xorq %%r9, %%r9\n"
716 "xorq %%r8, %%r8\n"
717 "xorq %%rsi, %%rsi\n"
718 "xorq %%rdi, %%rdi\n"
719 "xorq %%rsp, %%rsp\n"
720 "xorq %%rbp, %%rbp\n"
721 "ljmpl *%0" : :
722 "m" (real_mode_header->sev_real_ap_park_asm),
723 "b" (sev_es_jump_table_pa >> 4));
724 unreachable();
725 }
726 STACK_FRAME_NON_STANDARD(sev_jumptable_ap_park);
727
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 65226 bytes --]
reply other threads:[~2021-07-02 23:27 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=202107030720.H2X5Jhfn-lkp@intel.com \
--to=lkp@intel.com \
--cc=jroedel@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.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
all inboxes | Powered by JetHome®