All of lore.kernel.org
 help / color / mirror / Atom feed
* [joro:sev-es-client-v5.6-rc1 63/63] arch/x86/kernel/sev-es.c:39:1: sparse: sparse: symbol '__pcpu_scope_sev_es_in_nmi' was not declared. Should it be static?
@ 2020-02-14  0:03 kbuild test robot
  2020-02-14  0:03 ` [RFC PATCH joro] x86/sev-es: __pcpu_scope_sev_es_in_nmi can be static kbuild test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-02-14  0:03 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1641 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git sev-es-client-v5.6-rc1
head:   c4e912b6ad8a3783c5913ea783cb63a8dbb7cba3
commit: c4e912b6ad8a3783c5913ea783cb63a8dbb7cba3 [63/63] x86/sev-es: Add NMI state tracking
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-166-g7e4a5b6f-dirty
        git checkout c4e912b6ad8a3783c5913ea783cb63a8dbb7cba3
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> arch/x86/kernel/sev-es.c:39:1: sparse: sparse: symbol '__pcpu_scope_sev_es_in_nmi' was not declared. Should it be static?
   arch/x86/kernel/sev-es.c:272:20: sparse: sparse: incorrect type in assignment (different address spaces)
   arch/x86/kernel/sev-es.c:272:20: sparse:    expected unsigned short [usertype] *jump_table
   arch/x86/kernel/sev-es.c:272:20: sparse:    got void [noderef] <asn:2> *
   arch/x86/kernel/sev-es.c:279:17: sparse: sparse: incorrect type in argument 1 (different address spaces)
   arch/x86/kernel/sev-es.c:279:17: sparse:    expected void volatile [noderef] <asn:2> *addr
   arch/x86/kernel/sev-es.c:279:17: sparse:    got unsigned short [usertype] *jump_table
   arch/x86/kernel/sev-es.c:360:6: sparse: sparse: symbol 'sev_es_play_dead' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [RFC PATCH joro] x86/sev-es: __pcpu_scope_sev_es_in_nmi can be static
  2020-02-14  0:03 [joro:sev-es-client-v5.6-rc1 63/63] arch/x86/kernel/sev-es.c:39:1: sparse: sparse: symbol '__pcpu_scope_sev_es_in_nmi' was not declared. Should it be static? kbuild test robot
@ 2020-02-14  0:03 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-02-14  0:03 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]


Fixes: c4e912b6ad8a ("x86/sev-es: Add NMI state tracking")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
 sev-es.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/sev-es.c b/arch/x86/kernel/sev-es.c
index fa65e60ebc0813..b9fd28db1c5f71 100644
--- a/arch/x86/kernel/sev-es.c
+++ b/arch/x86/kernel/sev-es.c
@@ -36,7 +36,7 @@ struct ghcb boot_ghcb_page __bss_decrypted __aligned(PAGE_SIZE);
  */
 struct ghcb __initdata *boot_ghcb;
 static DEFINE_PER_CPU(unsigned long, cached_dr7) = DR7_RESET_VALUE;
-DEFINE_PER_CPU(bool, sev_es_in_nmi) = false;
+static DEFINE_PER_CPU(bool, sev_es_in_nmi) = false;
 /* Needed before per-cpu access is set up */
 static unsigned long early_dr7 = DR7_RESET_VALUE;
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-14  0:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-14  0:03 [joro:sev-es-client-v5.6-rc1 63/63] arch/x86/kernel/sev-es.c:39:1: sparse: sparse: symbol '__pcpu_scope_sev_es_in_nmi' was not declared. Should it be static? kbuild test robot
2020-02-14  0:03 ` [RFC PATCH joro] x86/sev-es: __pcpu_scope_sev_es_in_nmi can be static kbuild test robot

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.