diff options
author | Jan Beulich <jbeulich@suse.com> | 2012-12-07 13:47:48 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2012-12-07 13:47:48 +0100 |
commit | 57b4fcf14eb2bb243045ed320ca5809c201be3ee (patch) | |
tree | e5d11062523169d8d57c16d7373b52e5dfc6a417 /xen/arch/x86/hvm/hvm.c | |
parent | 3e7fcd51276a6df669f1338947157d7408268b91 (diff) | |
download | xen-57b4fcf14eb2bb243045ed320ca5809c201be3ee.tar.gz xen-57b4fcf14eb2bb243045ed320ca5809c201be3ee.tar.bz2 xen-57b4fcf14eb2bb243045ed320ca5809c201be3ee.zip |
x86: mark certain items static
..., and at once constify the data items among them.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/hvm/hvm.c')
-rw-r--r-- | xen/arch/x86/hvm/hvm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index b6026d7953..40c1ab219f 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -4117,10 +4117,10 @@ long do_hvm_op(unsigned long op, XEN_GUEST_HANDLE_PARAM(void) arg) struct domain *d; /* Interface types to internal p2m types */ - p2m_type_t memtype[] = { - p2m_ram_rw, /* HVMMEM_ram_rw */ - p2m_ram_ro, /* HVMMEM_ram_ro */ - p2m_mmio_dm /* HVMMEM_mmio_dm */ + static const p2m_type_t memtype[] = { + [HVMMEM_ram_rw] = p2m_ram_rw, + [HVMMEM_ram_ro] = p2m_ram_ro, + [HVMMEM_mmio_dm] = p2m_mmio_dm }; if ( copy_from_guest(&a, arg, 1) ) |