KVM: s390: Constify intercept handler tables.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 20 Dec 2012 14:32:06 +0000 (15:32 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 7 Jan 2013 21:53:37 +0000 (19:53 -0200)
These tables are never modified.

Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/s390/kvm/intercept.c
arch/s390/kvm/priv.c

index 22798ec33fd16bd58e5a9726a6f5eec41d798d6a..0c08b3f1c1c569c6bfecb471a92f40cf93ac7611 100644 (file)
@@ -104,7 +104,7 @@ static int handle_lctl(struct kvm_vcpu *vcpu)
        return 0;
 }
 
-static intercept_handler_t instruction_handlers[256] = {
+static const intercept_handler_t instruction_handlers[256] = {
        [0x01] = kvm_s390_handle_01,
        [0x83] = kvm_s390_handle_diag,
        [0xae] = kvm_s390_handle_sigp,
index d768906f15c81b27b82698ae49368579a2169ef9..1aeb9335f9e26e4ee1130d8d8bac3efb5cd00fe7 100644 (file)
@@ -297,7 +297,7 @@ out_fail:
        return 0;
 }
 
-static intercept_handler_t priv_handlers[256] = {
+static const intercept_handler_t priv_handlers[256] = {
        [0x02] = handle_stidp,
        [0x10] = handle_set_prefix,
        [0x11] = handle_store_prefix,
@@ -405,7 +405,7 @@ static int handle_sckpf(struct kvm_vcpu *vcpu)
        return 0;
 }
 
-static intercept_handler_t x01_handlers[256] = {
+static const intercept_handler_t x01_handlers[256] = {
        [0x07] = handle_sckpf,
 };
 
This page took 0.028031 seconds and 5 git commands to generate.