tools/misc: don't include xg_save_restore.h from xen-mfndump.c
authorJuergen Gross <jgross@suse.com>
Fri, 28 Aug 2020 15:07:23 +0000 (17:07 +0200)
committerWei Liu <wl@xen.org>
Wed, 9 Sep 2020 10:57:25 +0000 (10:57 +0000)
commita547703b243767185d69731a922c5b77cf2b4a2b
tree5447efb19503cdb3715ce415149187535b7c495c
parent76020cc98b0c6da6241e51979071df8ab0643930
tools/misc: don't include xg_save_restore.h from xen-mfndump.c

xen-mfndump.c is including the libxc private header xg_save_restore.h.
Avoid that by moving the definition of is_mapped() to xen-mfndump.c
(it is used there only) and by duplicating the definition of
M2P_SIZE() in xen-mfndump.c.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libxc/xg_save_restore.h
tools/misc/xen-mfndump.c