From: Grygorii Strashko <[email protected]> Factor out COMPAT HVM DM code under ifdefs in preparation for making HVM COMPAT code optional.
Signed-off-by: Grygorii Strashko <[email protected]> Reviewed-by: Jason Andryuk <[email protected]> --- changes in v2: - no changes xen/arch/x86/hvm/dm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/hvm/dm.c b/xen/arch/x86/hvm/dm.c index 3b53471af0d9..f6dd1634428a 100644 --- a/xen/arch/x86/hvm/dm.c +++ b/xen/arch/x86/hvm/dm.c @@ -623,6 +623,7 @@ int dm_op(const struct dmop_args *op_args) return rc; } +#ifdef CONFIG_COMPAT #include <compat/hvm/dm_op.h> CHECK_dm_op_create_ioreq_server; @@ -680,6 +681,7 @@ int compat_dm_op( return rc; } +#endif /* CONFIG_COMPAT */ /* * Local variables: -- 2.34.1
