]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xen: Move xen_have_vector_callback definition to enlighten.c
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 2 May 2017 17:23:06 +0000 (13:23 -0400)
committerJuergen Gross <jgross@suse.com>
Wed, 3 May 2017 04:46:11 +0000 (06:46 +0200)
Commit 84d582d236dc ("xen: Revert commits da72ff5bfcb0 and
72a9b186292d") defined xen_have_vector_callback in enlighten_hvm.c.
Since guest-type-neutral code refers to this variable this causes
build failures when CONFIG_XEN_PVHVM is not defined.

Moving xen_have_vector_callback definition to enlighten.c resolves
this issue.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten.c
arch/x86/xen/enlighten_hvm.c

index 41d324c7261d970b5e11be4562464cf2da8033c9..a5ffcbb20cc006adb1635436b6fa020a07fbb9d9 100644 (file)
@@ -57,6 +57,9 @@ EXPORT_SYMBOL_GPL(xen_start_info);
 
 struct shared_info xen_dummy_shared_info;
 
+__read_mostly int xen_have_vector_callback;
+EXPORT_SYMBOL_GPL(xen_have_vector_callback);
+
 /*
  * Point at some empty memory to start with. We map the real shared_info
  * page as soon as fixmap is up and running.
index 078c512b8720995fb28003b5afa52376fc674e0f..a6d014f47e525fc6852da8a554c0967bc1063fa0 100644 (file)
@@ -18,9 +18,6 @@
 #include "mmu.h"
 #include "smp.h"
 
-__read_mostly int xen_have_vector_callback;
-EXPORT_SYMBOL_GPL(xen_have_vector_callback);
-
 void __ref xen_hvm_init_shared_info(void)
 {
        int cpu;