* [joro:sev-es-kexec 9/12] arch/x86/kernel/sev.c:698:17: sparse: sparse: symbol 'sev_jumptable_ap_park' was not declared. Should it be static?
@ 2021-07-08 6:15 kernel test robot
2021-07-08 6:15 ` [RFC PATCH joro] x86/sev: sev_jumptable_ap_park() can be static kernel test robot
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-07-08 6:15 UTC (permalink / raw)
To: Joerg Roedel; +Cc: kbuild-all, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1935 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git sev-es-kexec
head: 3467dc3cdbe65c619cd9b5c8db47da63b0655300
commit: f5fa86f9ca509214e22902fd1865e813d0d856b3 [9/12] x86/sev: Use AP Jump Table blob to stop CPU
config: x86_64-randconfig-s021-20210702 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git/commit/?id=f5fa86f9ca509214e22902fd1865e813d0d856b3
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 f5fa86f9ca509214e22902fd1865e813d0d856b3
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/sev.c:698:17: sparse: sparse: symbol 'sev_jumptable_ap_park' was not declared. Should it be static?
arch/x86/kernel/sev.c:888:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *base @@ got unsigned short [noderef] [usertype] __iomem *[assigned] jump_table @@
arch/x86/kernel/sev.c:888:41: sparse: expected void *base
arch/x86/kernel/sev.c:888:41: sparse: got unsigned short [noderef] [usertype] __iomem *[assigned] jump_table
arch/x86/kernel/sev.c:881:32: sparse: sparse: dereference of noderef expression
arch/x86/kernel/sev.c:882:32: sparse: sparse: dereference of noderef expression
Please review and possibly fold the followup patch.
---
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: 41421 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [RFC PATCH joro] x86/sev: sev_jumptable_ap_park() can be static
2021-07-08 6:15 [joro:sev-es-kexec 9/12] arch/x86/kernel/sev.c:698:17: sparse: sparse: symbol 'sev_jumptable_ap_park' was not declared. Should it be static? kernel test robot
@ 2021-07-08 6:15 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-08 6:15 UTC (permalink / raw)
To: Joerg Roedel; +Cc: kbuild-all, linux-kernel
arch/x86/kernel/sev.c:698:17: warning: symbol 'sev_jumptable_ap_park' was not declared. Should it be static?
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
sev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/sev.c b/arch/x86/kernel/sev.c
index bac9bb4fa54e0..3afddbd831b7a 100644
--- a/arch/x86/kernel/sev.c
+++ b/arch/x86/kernel/sev.c
@@ -695,7 +695,7 @@ static bool __init sev_es_setup_ghcb(void)
return true;
}
-void __noreturn sev_jumptable_ap_park(void)
+static void __noreturn sev_jumptable_ap_park(void)
{
local_irq_disable();
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-08 6:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-08 6:15 [joro:sev-es-kexec 9/12] arch/x86/kernel/sev.c:698:17: sparse: sparse: symbol 'sev_jumptable_ap_park' was not declared. Should it be static? kernel test robot
2021-07-08 6:15 ` [RFC PATCH joro] x86/sev: sev_jumptable_ap_park() can be static kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).