]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
x86/pv: Compile out emul-gate-op in !CONFIG_PV32 builds
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 May 2020 10:17:32 +0000 (11:17 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 May 2020 14:24:03 +0000 (15:24 +0100)
The caller is already guarded by is_pv_32bit_vcpu().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/Makefile

index cf28434ba91460d65b080db4754124a1f2f9cae9..75b01b0062d82a54f9ca04470a41cf2bbc8d16d8 100644 (file)
@@ -2,7 +2,7 @@ obj-y += callback.o
 obj-y += descriptor-tables.o
 obj-y += domain.o
 obj-y += emulate.o
-obj-y += emul-gate-op.o
+obj-$(CONFIG_PV32) += emul-gate-op.o
 obj-y += emul-inv-op.o
 obj-y += emul-priv-op.o
 obj-$(CONFIG_GRANT_TABLE) += grant_table.o