Skip to content

Commit 3dbd820

Browse files
bostrovsjgross1
authored andcommitted
xen: Move xen_have_vector_callback definition to enlighten.c
Commit 84d582d ("xen: Revert commits da72ff5 and 72a9b18") 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>
1 parent e371fd7 commit 3dbd820

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/x86/xen/enlighten.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ EXPORT_SYMBOL_GPL(xen_start_info);
5757

5858
struct shared_info xen_dummy_shared_info;
5959

60+
__read_mostly int xen_have_vector_callback;
61+
EXPORT_SYMBOL_GPL(xen_have_vector_callback);
62+
6063
/*
6164
* Point at some empty memory to start with. We map the real shared_info
6265
* page as soon as fixmap is up and running.

‎arch/x86/xen/enlighten_hvm.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
#include "mmu.h"
1919
#include "smp.h"
2020

21-
__read_mostly int xen_have_vector_callback;
22-
EXPORT_SYMBOL_GPL(xen_have_vector_callback);
23-
2421
void __ref xen_hvm_init_shared_info(void)
2522
{
2623
int cpu;

0 commit comments

Comments
 (0)